@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&display=swap");

:root {
  /* Paleta de Cores Vest.Rio */
  --vest-roxo: #9200D0;
  --vest-amarelo: #F2C029;
  --vest-laranja: #F2762E;
  --vest-laranja-claro: #F29727;

  /* --- Tema Claro (Branco) - Padrão --- */
  --fundo-base: #ffffff;
  --texto-principal: #1c1c1c;
  --texto-secundario: #555555;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(146, 0, 208, 0.08);
  --card-shadow: 0 10px 30px rgba(146, 0, 208, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --logo-border: rgba(146, 0, 208, 0.2);
  --logo-shadow: 0 12px 30px rgba(146, 0, 208, 0.12);
  --theme-btn-bg: rgba(146, 0, 208, 0.06);
  --theme-btn-color: var(--vest-roxo);

  /* Blobs suaves no claro */
  --blob-opacity: 0.05;
  --blob-scale: 1;

  /* Estilos do Botão CTA (Claro: Roxo) */
  --cta-bg: var(--vest-roxo);
  --cta-hover: #7300a3;
  --cta-text: #ffffff;
  --cta-shadow: 0 8px 20px rgba(146, 0, 208, 0.25);

  --indicator-bg: rgba(146, 0, 208, 0.12);
  --indicator-fill: var(--vest-roxo);

  /* Arredondamento e Indicadores */
  --card-radius: 16px;
  --btn-radius: 24px;
  --indicator-width: 40%;
}

/* --- Tema Escuro (Roxo) --- */
body.dark-mode {
  --fundo-base: #140022; /* Roxo ultra profundo para legibilidade superior */
  --texto-principal: #ffffff;
  --texto-secundario: #cca3ff;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  --logo-border: rgba(242, 192, 41, 0.3);
  --logo-shadow: 0 12px 30px rgba(242, 192, 41, 0.25);
  --theme-btn-bg: rgba(255, 255, 255, 0.05);
  --theme-btn-color: var(--vest-amarelo);

  /* Blobs mais brilhantes no escuro */
  --blob-opacity: 0.14;
  --blob-scale: 1.15;

  /* Estilos do Botão CTA (Escuro: Amarelo Vibrante) */
  --cta-bg: var(--vest-amarelo);
  --cta-hover: #d1a317;
  --cta-text: #140022;
  --cta-shadow: 0 8px 20px rgba(242, 192, 41, 0.3);

  --indicator-bg: rgba(255, 255, 255, 0.1);
  --indicator-fill: var(--vest-amarelo);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: -webkit-fill-available;
}

body {
  font-family: "Sora", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  background-color: var(--fundo-base);
  color: var(--texto-principal);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

/* 1. Plano de Fundo Dinâmico (Blobs) */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: var(--blob-opacity);
  transform: scale(var(--blob-scale));
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--vest-roxo);
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  bottom: -15%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  background: var(--vest-amarelo);
  animation: float-blob-2 30s infinite alternate ease-in-out;
}

.blob-3 {
  top: 30%;
  left: 40%;
  width: 50vw;
  height: 50vw;
  background: var(--vest-laranja);
  animation: float-blob-3 22s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 12vh) scale(1.15); }
}

@keyframes float-blob-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8vw, -10vh) scale(0.9); }
}

@keyframes float-blob-3 {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(calc(-50% + 6vw), calc(-50% - 8vh)) scale(1.1); }
}

/* 2. Barra Superior & Botão de Tema */
.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.25rem 1.25rem 0.5rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  transition: max-width 0.3s ease;
  z-index: 10;
}

.theme-toggle-btn {
  background: var(--theme-btn-bg);
  border: none;
  color: var(--theme-btn-color);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(8deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
}

/* Exibição condicional de ícones */
body:not(.dark-mode) .icon-sun {
  display: none;
}

body.dark-mode .icon-moon {
  display: none;
}

/* 3. Área de Perfil e Logo */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: max-width 0.3s ease;
}

.profile-area {
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.logo-frame {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--vest-roxo), var(--vest-amarelo), var(--vest-laranja));
  box-shadow: var(--logo-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  position: relative;
}

.logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--vest-roxo);
  border: 3px solid var(--fundo-base);
  transition: border-color 0.5s ease;
}

.profile-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--texto-principal);
  margin: 0;
  text-align: center;
  line-height: 1.35;
  transition: color 0.5s ease;
}

.profile-subtitle {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto-secundario);
  margin-top: 2px;
}

/* 4. Seção de Cursos */
.courses-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 1.75rem 0;
  color: var(--texto-principal);
  letter-spacing: -0.5px;
  transition: color 0.5s ease;
}

/* Container do Carrossel */
.carousel-container {
  width: 100%;
  margin-bottom: 2rem;
  position: relative;
}

.banners-carousel {
  display: flex;
  gap: 12px;
  width: 100%;
  transition: all 0.3s ease;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.banners-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Estilo do Card individual */
.course-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  scroll-snap-align: start;
  flex: 0 0 calc(50% - 6px); /* 2 cards por tela no mobile */
}

/* Moldura do Banner */
.banner-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: var(--card-backdrop-filter);
  -webkit-backdrop-filter: var(--card-backdrop-filter);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Efeito Sheen no banner */
.banner-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.6s ease;
  z-index: 2;
}

/* Botões do Carrossel */
.course-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--cta-bg);
  border: 1px solid transparent;
  box-shadow: var(--cta-shadow);
  color: var(--cta-text);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.72rem;
  padding: 0.5rem;
  border-radius: var(--btn-radius);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 68px;
  line-height: 1.3;
}

/* Hover nos botões (apenas no desktop) */
@media (hover: hover) {
  .course-card:hover .banner-wrapper {
    transform: translateY(-4px);
    border-color: var(--vest-roxo);
    box-shadow: 0 12px 25px rgba(146, 0, 208, 0.12);
  }

  body.dark-mode .course-card:hover .banner-wrapper {
    border-color: var(--vest-amarelo);
    box-shadow: 0 12px 25px rgba(242, 192, 41, 0.12);
  }

  .course-card:hover .banner-wrapper::before {
    left: 100%;
  }

  .course-card:hover .course-btn {
    transform: translateY(-2px);
    filter: brightness(1.08);
  }
}

/* Barra de progresso / scroll customizada */
.carousel-progress-wrapper {
  width: 80px; /* Aumentamos para 80px para maior conforto no arrasto */
  height: 16px; /* Área de hit invisível maior para facilitar o toque no celular */
  background: transparent;
  margin: 1.25rem auto 0;
  position: relative;
  cursor: pointer;
  touch-action: pan-x; /* Evita rolagem vertical indesejada da página ao arrastar */
  display: flex;
  align-items: center;
}

/* O trilho de fundo visual */
.carousel-progress-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px; /* Linha de fundo de 4px */
  background-color: var(--indicator-bg);
  border-radius: 10px;
  transition: background-color 0.5s ease;
}

.carousel-progress-bar {
  position: absolute;
  height: 4px; /* Indicador de progresso de 4px */
  width: var(--indicator-width);
  background-color: var(--indicator-fill);
  border-radius: 10px;
  transform: translateX(0);
  transition: transform 0.1s ease-out, background-color 0.5s ease;
  pointer-events: none; /* Permite cliques passarem para o wrapper */
}

/* Seções Extras (Suporte e Teste Vocacional) */
.extra-links-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.split-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--vest-amarelo); /* Destaque amarelo nos detalhes */
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-card:hover {
  transform: translateY(-2px);
  border-color: var(--vest-amarelo);
  box-shadow: 0 12px 25px rgba(242, 192, 41, 0.1);
}

.card-header {
  padding: 1.25rem 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  background: rgba(242, 192, 41, 0.03); /* Fundo com leve toque de amarelo */
}

body.dark-mode .card-header {
  background: rgba(242, 192, 41, 0.01);
}

.copy-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--texto-principal);
  margin: 0 0 4px 0;
  line-height: 1.35;
}

.copy-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texto-secundario);
  margin: 0;
  line-height: 1.45;
}

.card-body {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Botão WhatsApp */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--btn-radius);
  height: 48px;
  border: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.wsp-icon {
  width: 16px;
  height: 16px;
}

/* Botão do Teste Vocacional */
.site-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--vest-amarelo); /* Amarelo como detalhe principal */
  color: #140022; /* Texto escuro para contraste */
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--btn-radius);
  height: 48px;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(242, 192, 41, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 25px rgba(242, 192, 41, 0.3);
}

/* 5. Rodapé */
.footer {
  margin-top: auto;
  padding: 2.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.copyright {
  font-size: 0.72rem;
  color: var(--texto-secundario);
  margin: 0;
  text-align: center;
  transition: color 0.5s ease;
}

/* --- Layout Responsivo para Desktop --- */
@media (min-width: 769px) {
  :root {
    --indicator-width: 60%; /* 3 de 5 cards visíveis */
  }

  /* Blobs mais suaves e desfocados no desktop */
  .blob {
    filter: blur(170px);
  }

  body.dark-mode {
    --blob-opacity: 0.04; /* Ultra discreto e sofisticado */
  }

  .container {
    max-width: 800px;
    padding-bottom: 3rem;
  }

  .profile-title {
    font-size: 1.4rem;
  }

  .profile-subtitle {
    font-size: 0.95rem;
  }

  .top-bar {
    max-width: 800px;
  }

  .main-title {
    font-size: 1.8rem;
    margin-bottom: 2.25rem;
  }

  /* Transforma o carrossel em scroll horizontal também no Desktop */
  .banners-carousel {
    display: flex;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .banners-carousel::-webkit-scrollbar {
    display: none;
  }

  .course-card {
    flex: 0 0 calc((100% - 32px) / 3); /* Exibe precisamente 3 cards por tela no desktop */
    cursor: pointer;
  }

  /* Exibe o indicador de progresso horizontal no Desktop */
  .carousel-progress-wrapper {
    display: block;
  }

  .extra-links-container {
    width: 100%;
    max-width: 440px;
    margin: 0.5rem auto 0;
  }

  /* ==============================================================
     Área de customização exclusiva para o Desktop (Suporte e Site)
     Altere as regras abaixo para mudar fontes/margens apenas no PC
     ============================================================== */
  .split-card {
   
  }

  .card-header {
    text-align: center;
  }

  .copy-title {
    font-size: 1.5rem;
  }

  .copy-subtitle {
      font-size: 0.92rem;
      text-wrap: balance;
  }

  .card-body {
    /* Altere o preenchimento interno do corpo do card no desktop aqui */
  }

  .whatsapp-btn {
    /* Altere o tamanho, fontes ou arredondamento do botão WhatsApp no desktop aqui */
  }

  .site-btn {
    /* Altere o tamanho, fontes ou arredondamento do botão do Site no desktop aqui */
  }
}