/* ================================================================
   Encontro/style.css — Identidade Visual: Primeiro Encontro 🗺️
   Importa shared.css pela tag HTML. Aqui ficam apenas os estilos
   únicos desta página (SVG do coração, camadas de texto, etc.).
   ================================================================ */

/* --- Identidade de cor desta página --- */
:root {
  --page-accent:    #f97316;  /* laranja vibrante — o calor do encontro */
  --accent-primary: #f97316;  /* laranja quente para o gradiente do texto */
  --neon-red:       #ef4444;  /* vermelho vivo para acentos */
}

/* Cursor de mãozinha — toda a tela é clicável para avançar */
body {
  cursor: pointer;
}

/* --- Layout Principal da Jornada --- */
.viewport {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Desloca o conteúdo para baixo da navegação fixa */
  padding-top: max(3.75rem, 8vh);
}

.interaction-zone {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Coração SVG ao Fundo (Indicador de Progresso Visual) --- */
.heart-container {
  position: absolute;
  width: clamp(15rem, 55vmin, 40.625rem);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;            /* fica atrás da camada de texto */
  opacity: 0.3;          /* opacidade base — funciona como fundo sutil */
  transition: opacity 1s ease-in-out, filter 1s ease-in-out;
  pointer-events: none;
}

/* Quando o coração está completamente cheio — pulsa com brilho */
.heart-container.full {
  opacity: 0.8;
  animation: heartPulse 1.5s infinite ease-in-out;
}

@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2.5rem rgba(255, 30, 86, 0.4));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5rem rgba(255, 30, 86, 0.8));
  }
}

#heart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Transição suave do preenchimento líquido do coração */
#heart-liquid {
  transition: y 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Camada de Mensagem Central --- */
.message-layer {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: min(800px, 90vw);
  text-align: center;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Container de texto com blur de vidro */
.typography-reveal {
  padding: 3rem 2rem;
  border-radius: 2rem;
  background: rgba(2, 2, 2, 0.5);
  backdrop-filter: blur(0.625rem);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.5);
}

/* Texto principal da mensagem de jornada */
#journey-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--neon-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.625rem 1.25rem rgba(255, 30, 86, 0.2));
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Subtexto complementar da mensagem */
#journey-subtext {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-dim);
  margin-top: clamp(0.5rem, 2vh, 1rem);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(1vh);
  animation: var(--load-anim, none);
}

/* Classe ativada via JS para animar a entrada do subtexto */
.show-sub {
  --load-anim: loadFadeIn 0.8s forwards 0.2s;
}

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

/* --- Elementos de UI e Transições --- */

/* Classe utilitária para ocultar elementos suavemente */
.hidden {
  opacity: 0 !important;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

/* Camada introdutória — visível apenas no carregamento */
.intro-layer {
  position: absolute;
  z-index: 20;
  width: 90%;
  max-width: min(800px, 90vw);
  text-align: center;
  transition: opacity 0.8s ease;
}

/* Texto de introdução com gradiente e entrada animada */
.intro-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, var(--neon-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.625rem 1.25rem rgba(255, 30, 86, 0.2));
  animation: loadFadeIn 1.2s forwards;
}

/* Container do aviso de próximo toque */
.prompt-container {
  position: absolute;
  bottom: 5vh;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 50;
  pointer-events: none;
}

/* Indicador pulsante de "toque para avançar" */
#click-prompt {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  animation: pulseOpacity 2s infinite;
  transition: opacity 0.5s ease;
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* --- Responsividade --- */
@media (max-width: 48em) {
  .top-nav { padding: 0 1rem; }
  .heart-container { width: min(85vw, 65vh); }
  .typography-reveal { padding: clamp(1rem, 3vh, 2rem) 1.5rem; }
  #journey-text, .intro-text { font-size: clamp(1.8rem, 8vw, 2.5rem); }
}
