/*
 * temas/entardecer.css — Modelo 6: entardecer.
 * Fundo verde-noite, texto creme e detalhes em dourado. A abertura começa no
 * fim de tarde e vira noite estrelada ao tocar no lacre.
 * As cores do tema invertem os tokens: --tinta é o texto claro e --papel o
 * fundo escuro; a faixa de confirmação destroca localmente.
 */

.tema-entardecer {
  --papel: #131C18;
  --papel-claro: #1A2520;
  --linha: #3A4A40;
  --linha-clara: #2A3630;
  --tinta: #EFE6D2;
  --tinta-suave: #B9B19E;
  --lacre: #DFA595;
  --ouro: #C9A66B;
  --ouro-texto: #D9BA80;
  --ramo: #8FA088;
  --sombra-leve: none;
  background: var(--papel);
  color: var(--tinta);
  color-scheme: dark;
}
.tema-entardecer .script { color: var(--ouro-texto); }
.tema-entardecer .rotulo { color: var(--ouro-texto); }

/* ---------- estrelas ---------- */

.ent-estrela { fill: #F4E7C6; animation: ent-pisca 3.2s ease-in-out infinite; }
.ent-estrela--1 { animation-delay: -0.8s; animation-duration: 4.1s; }
.ent-estrela--2 { animation-delay: -1.9s; animation-duration: 2.7s; }
.ent-estrela--3 { animation-delay: -2.6s; animation-duration: 5s; }
.ent-brilho { fill: #F3DDA8; animation: ent-pisca 4.5s ease-in-out infinite; }
.ent-brilho--2 { animation-delay: -2s; }
@keyframes ent-pisca { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.25; } }

/* ---------- abertura ---------- */

.ent-abertura {
  position: relative;
  max-width: none;
  isolation: isolate;
  color: #F6ECD8;
}
.ent-abertura > :not(.ent-ceu) { position: relative; z-index: 1; max-width: 26rem; width: 100%; }

.ent-ceu { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ent-ceu__noite,
.ent-ceu__tarde { position: absolute; inset: 0; }
.ent-ceu__noite { background: linear-gradient(180deg, #0B1210 0%, #131C18 55%, #1B2822 100%); }
.ent-ceu__tarde {
  background: linear-gradient(180deg, #2E3550 0%, #5B4A62 34%, #B7766A 66%, #E0A877 84%, #EFC48E 100%);
  transition: opacity 2.2s ease 0.3s;
}
.ent-ceu__estrelas {
  position: absolute;
  inset: 0 0 30% 0;
  width: 100%;
  height: 70%;
  opacity: 0;
  transition: opacity 1.6s ease 1.2s;
}
.ent-horizonte { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; }
.ent-sol {
  fill: #F6D9A2;
  transition: transform 2.2s cubic-bezier(0.5, 0, 0.3, 1) 0.2s, opacity 1.4s ease 1s;
}
.ent-mata { fill: #0E1512; }

.ent-abertura .abertura__lugares,
.ent-abertura .abertura__dica { color: #E9DCC4; }
.ent-abertura .rotulo { color: #F0DDB6; }
.ent-abertura .abertura__nome { color: #FFF4DE; text-shadow: 0 1px 12px rgba(30, 20, 30, 0.35); }

.ent-palco { position: relative; display: grid; place-items: center; min-height: 230px; }
.ent-lacre {
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 4px 14px rgba(240, 190, 110, 0.45));
  animation: ent-respira 2.6s ease-in-out infinite;
  touch-action: manipulation;
}
.ent-lacre:focus-visible { outline: 2px solid #F0DDB6; outline-offset: 5px; }
.ent-lacre .cera { display: block; overflow: visible; }
@keyframes ent-respira { 50% { transform: scale(1.04); filter: drop-shadow(0 4px 22px rgba(240, 190, 110, 0.7)); } }

.cera__metade { transform-box: fill-box; transition: transform 0.7s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.6s ease 0.15s; }
.cera__metade--esq { transform-origin: 30% 100%; }
.cera__metade--dir { transform-origin: 70% 100%; }

.ent-revela {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  pointer-events: none;
}
.ent-revela p { margin: 0; }
.ent-revela__nomes {
  font-size: clamp(2.6rem, 13vw, 3.2rem);
  line-height: 1.1;
  color: #E9CC92;
  text-shadow: 0 0 18px rgba(233, 204, 146, 0.45);
  opacity: 0;
  filter: blur(6px);
  transition: opacity 1.4s ease 1.5s, filter 1.4s ease 1.5s;
}
.ent-revela__data {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #D8CDB6;
  opacity: 0;
  transition: opacity 1s ease 2.2s;
}

/* aberto: o sol se põe, o céu escurece e as estrelas acendem */
.ent-abertura.abertura--aberta .ent-ceu__tarde { opacity: 0; }
.ent-abertura.abertura--aberta .ent-ceu__estrelas { opacity: 1; }
.ent-abertura.abertura--aberta .ent-sol { transform: translateY(70px); opacity: 0; }
.ent-abertura.abertura--aberta .ent-lacre { pointer-events: none; animation: none; }
.ent-abertura.abertura--aberta .cera__metade--esq { transform: translate(-18px, 44px) rotate(-26deg); opacity: 0; }
.ent-abertura.abertura--aberta .cera__metade--dir { transform: translate(18px, 50px) rotate(22deg); opacity: 0; }
.ent-abertura.abertura--aberta .ent-revela__nomes { opacity: 1; filter: none; }
.ent-abertura.abertura--aberta .ent-revela__data { opacity: 1; }
.ent-abertura .abertura__ver { background: #C9A66B; border-color: #C9A66B; color: #131C18; }
.ent-abertura.abertura--aberta .abertura__ver { animation: ent-surge 0.8s ease 2.3s both; }
@keyframes ent-surge { from { opacity: 0; } to { opacity: 1; } }

/* ---------- capa ---------- */

.ent-capa { position: relative; padding-top: 3.5rem; overflow: hidden; }
.ent-capa > :not(.ent-capa__estrelas) { position: relative; }
.ent-capa__estrelas { position: absolute; inset: 0; width: 100%; height: 60%; opacity: 0.7; pointer-events: none; }
.ent-lua { fill: #E9CC92; margin-bottom: 0.6rem; filter: drop-shadow(0 0 10px rgba(233, 204, 146, 0.4)); }

.ent-capa .capa__pais { color: var(--tinta); }
.ent-capa .capa__nomes .script { text-shadow: 0 0 22px rgba(217, 186, 128, 0.35); }
.ent-capa .capa__e { color: var(--tinta-suave); }
.ent-fio { width: 120px; height: 1px; margin: 0.6rem 0 0.2rem; background: linear-gradient(90deg, transparent, var(--ouro), transparent); }
.ent-capa .capa__data { font-size: 1.15rem; letter-spacing: 0.06em; }
.ent-capa .capa__data::first-letter { text-transform: uppercase; }
.ent-capa__hora { margin: 0; font-family: var(--fonte-titulo); font-style: italic; font-size: 1.15rem; color: var(--ouro-texto); }

.tema-entardecer .contagem__item { border-color: rgba(201, 166, 107, 0.45); }
.tema-entardecer .contagem__num { color: var(--ouro-texto); }

/* ---------- convite ---------- */

.tema-entardecer .saudacao { background: var(--papel-claro); border-color: var(--linha-clara); }
.tema-entardecer .saudacao__lugares { color: var(--ouro-texto); }
.tema-entardecer .evento { background: var(--papel-claro); border-color: rgba(201, 166, 107, 0.35); }
.tema-entardecer .evento__nota { color: var(--lacre); }
.tema-entardecer .depois { background: transparent; border-color: rgba(201, 166, 107, 0.35); }
.tema-entardecer .btn { background: var(--ouro); border-color: var(--ouro); color: var(--papel); }
.tema-entardecer .btn:hover { background: transparent; color: var(--ouro-texto); }
.tema-entardecer .btn--contorno { background: transparent; border-color: var(--ouro); color: var(--ouro-texto); }
.tema-entardecer .btn--contorno:hover { background: var(--ouro); color: var(--papel); }
.tema-entardecer a:not(.btn) { color: var(--tinta); }
.tema-entardecer a:not(.btn):hover { color: var(--ouro-texto); }

/* faixa de confirmação: um tom mais fundo, com os tokens destrocados */
.tema-entardecer .rsvp {
  --papel: #EFE6D2;
  --tinta: #0C1310;
  --rsvp-rotulo: #D9BA80;
  --rsvp-linha: #2F3C35;
  --rsvp-borda: #6B7A70;
  --rsvp-botao-texto: #131C18;
  border-top: 1px solid rgba(201, 166, 107, 0.3);
  border-bottom: 1px solid rgba(201, 166, 107, 0.3);
}

.tema-entardecer .duvida summary::after { color: var(--ouro-texto); }
.tema-entardecer .mural__recado { border-left-color: var(--ouro); }
.tema-entardecer .lacre__cera { fill: #A07A3E; }
.tema-entardecer .lacre__monograma { fill: #FFF4DE; }
.tema-entardecer .cota__qr { border-color: #FFFFFF; }

/* entrada das seções: surgem como luz acendendo */
.com-revelar .tema-entardecer [data-revelar] { opacity: 0; filter: blur(4px); transition: opacity 1.1s ease, filter 1.1s ease; }
.com-revelar .tema-entardecer [data-revelar].revelado { opacity: 1; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .ent-estrela, .ent-brilho, .ent-lacre { animation: none; }
  .ent-ceu__tarde, .ent-ceu__estrelas, .ent-sol, .ent-revela__nomes, .ent-revela__data, .cera__metade { transition: none; }
}
