/* ==========================================================================
   Pare de Tentar Ser Melhor — Custom Styles
   ========================================================================== */

/* ---------- Scroll animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Frases sussurradas */
.animate-whisper {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}

.animate-whisper.visible {
  opacity: 0.5;
  transform: translateY(0);
}

/* Frases de impacto */
.animate-impact {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.animate-impact.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Navigation glass ---------- */
.nav-glass {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

/* ---------- Selection ---------- */
::selection {
  background-color: #c9a84c;
  color: #070b14;
}

::-moz-selection {
  background-color: #c9a84c;
  color: #070b14;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #070b14;
}

::-webkit-scrollbar-thumb {
  background: #152238;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3050;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: #c9a84c;
  color: #070b14;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

/* ---------- WhatsApp pulse ---------- */
.whatsapp-float {
  animation: pulse-green 2.5s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5); }
}

/* ---------- FAQ details ---------- */
details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
}

details[open] {
  border-color: rgba(201, 168, 76, 0.15);
}

/* ==========================================================================
   EMOTION SECTION — Identificação Emocional
   ========================================================================== */

/* Fundo com gradiente orgânico diagonal */
.emotion-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, #0f1628 0%, #070b14 40%, #0c1018 70%, #0f1628 100%);
  pointer-events: none;
}

/* Glow dourado central que respira */
.emotion-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 55%);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-breathe 8s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Silhueta abstrata quase invisível */
.emotion-silhouette {
  position: absolute;
  top: 15%;
  right: -5%;
  width: 45%;
  height: 70%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201, 168, 76, 0.015) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(21, 34, 56, 0.08) 0%, transparent 60%);
  border-radius: 50% 40% 50% 60%;
  filter: blur(60px);
  pointer-events: none;
}

/* ---------- Micro-cards de rotina ---------- */
.emotion-card {
  padding: 14px 12px;
  background: rgba(15, 22, 40, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: 14px;
  text-align: center;
  color: #e8d5a3;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.6s ease, box-shadow 0.6s ease, transform 0.6s ease;
}

.emotion-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.06), inset 0 0 15px rgba(201, 168, 76, 0.02);
  transform: scale(1.04);
}

/* Cards respirando suavemente quando visíveis */
@keyframes card-breathe {
  0%, 100% { transform: scale(1); box-shadow: none; }
  50% { transform: scale(1.015); box-shadow: 0 0 15px rgba(201, 168, 76, 0.04); }
}

.emotion-card.visible {
  animation: card-breathe 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.5s);
}

/* ---------- Linha vertical dourada animada ---------- */
.golden-line-v {
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, rgba(201, 168, 76, 0.7), rgba(201, 168, 76, 0.2), transparent);
  transition: height 2s ease-out;
}

.golden-line-v.visible {
  height: 80px;
}

/* ---------- Glow atrás de frases de impacto ---------- */
.glow-behind {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 140px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-behind-pulse 4s ease-in-out infinite;
}

@keyframes glow-behind-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* ---------- Quote block ---------- */
.quote-block {
  padding: 28px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.35);
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  text-align: center;
}

.quote-block p {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 2;
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
}

.quote-block strong {
  color: #fff;
  font-style: normal;
  font-weight: 600;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-whisper,
  .animate-impact {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .whatsapp-float {
    animation: none;
  }

  .emotion-glow,
  .glow-behind,
  .emotion-card.visible,
  .golden-line-v {
    animation: none;
  }

  .golden-line-v.visible {
    height: 80px;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
