/* ============================================
   MENOVITTA · Diagnóstico do Descompasso
   Identidade: roxo/lavanda Menovitta em fundo creme/lilás.
   Tipografia: Lora (corpo) + Playfair Display (display) + Cormorant Garamond (serif).
   ============================================ */

/* ============================================
   Transição entre telas
   ============================================ */
.screen {
  animation: fadeIn 0.4s ease-out;
}

.screen.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Botões de opção (perguntas single/multi)
   ============================================ */
.option-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  border: 1.5px solid #E5D9EA;
  border-radius: 0.75rem;
  color: #2A1E36;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
  font-family: 'Lora', Georgia, serif;
}

.option-btn:hover {
  background-color: #F3EAF7;
  border-color: #8B5FBF;
}

.option-btn.selected {
  border-color: #8B5FBF;
  background-color: #F3EAF7;
  color: #2D1B4E;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(139, 95, 191, 0.15);
}

/* Botão "escala" (0-10) — usado na pergunta de comprometimento */
.scale-btn {
  flex: 1;
  min-width: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1.5px solid #E5D9EA;
  border-radius: 0.5rem;
  color: #2A1E36;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  font-family: 'Lora', Georgia, serif;
}

.scale-btn:hover {
  background-color: #F3EAF7;
  border-color: #8B5FBF;
}

.scale-btn.selected {
  border-color: #8B5FBF;
  background-color: #8B5FBF;
  color: #ffffff;
  transform: scale(1.05);
}

/* ============================================
   Narrativas da Dra. Niquéria — fade-in linha por linha
   simula respiração de quem fala
   ============================================ */
.narrative-line {
  opacity: 0;
  animation: fadeInLine 0.6s ease-out forwards;
}

.narrative-line:nth-child(1) { animation-delay: 0.3s; }
.narrative-line:nth-child(2) { animation-delay: 1.5s; }
.narrative-line:nth-child(3) { animation-delay: 2.7s; }
.narrative-line:nth-child(4) { animation-delay: 3.9s; }
.narrative-line:nth-child(5) { animation-delay: 5.1s; }
.narrative-line:nth-child(6) { animation-delay: 6.3s; }

@keyframes fadeInLine {
  to { opacity: 1; }
}

/* ============================================
   Tela de loading — pontos pulando + flor pulsante
   ============================================ */
.loading-dots span {
  animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Flor florescente — em CSS puro, símbolo do renascimento na menopausa */
.flor-bloom {
  width: 100px;
  height: 100px;
  position: relative;
  margin: 0 auto;
}
.flor-bloom::before,
.flor-bloom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, #D78AB0 0%, #8B5FBF 50%, transparent 80%);
  border-radius: 50% 0 50% 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: bloom 3s ease-in-out infinite;
  filter: blur(1px);
  opacity: 0.85;
}
.flor-bloom::after {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #FFFFFF 0%, #D78AB0 60%, transparent 90%);
  animation-delay: -1.5s;
  filter: blur(0.5px);
}
@keyframes bloom {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(0.85); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(0.9); opacity: 0.75; }
}

/* ============================================
   Avatar da Dra. Niquéria — img + fallback "N"
   Quando /assets/dra-niqueria.png não existe (onerror no <img>),
   o JS já esconde a imagem e mostra as iniciais.
   ============================================ */
.niq-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ============================================
   Botão WhatsApp final — glow verde + pulso suave
   ============================================ */
.whatsapp-cta {
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.45);
  transition: all 0.2s;
  animation: pulse-whatsapp 2.4s ease-in-out infinite;
}

.whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(37, 211, 102, 0.7);
  animation-play-state: paused;
}

.whatsapp-cta:active {
  transform: scale(0.97);
}

@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 14px 38px -8px rgba(37, 211, 102, 0.6), 0 0 0 14px rgba(37, 211, 102, 0);
    transform: scale(1.02);
  }
}

/* ============================================
   Sequência de ancoragem visual (Tela 10)
   Cards aparecem 1 por vez com delay incremental
   ============================================ */
.anchor-card {
  opacity: 0;
  transform: translateY(20px);
  animation: anchorCardIn 0.6s ease-out forwards;
  box-shadow: 0 2px 8px rgba(45, 27, 78, 0.06);
}

.anchor-card[data-i="0"] { animation-delay: 0.2s; }
.anchor-card[data-i="1"] { animation-delay: 4.0s; }
.anchor-card[data-i="2"] { animation-delay: 8.0s; }
.anchor-card[data-i="3"] { animation-delay: 12.0s; }
.anchor-card[data-i="4"] { animation-delay: 16.0s; }

@keyframes anchorCardIn {
  to { opacity: 1; transform: translateY(0); }
}

#anchor-total {
  transition: all 0.4s;
}

/* ============================================
   Tipografia — overrides para serif elegante
   ============================================ */
em {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-style: italic;
}

h1, h2, h3, h4 {
  letter-spacing: -0.015em;
}

/* ============================================
   Scrollbar fino (estética)
   ============================================ */
body {
  scrollbar-width: thin;
  scrollbar-color: #B89DD9 transparent;
}

body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: #B89DD9; border-radius: 4px; }

/* ============================================
   Acessibilidade — respeita prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .whatsapp-cta { animation: none; }
}
