/* ==================================================
   AUREN — ESTILO PRINCIPAL (HEADER + HERO + FOOTER)
   ================================================== */

/* =========================
   1) RESET & BASE GLOBAL
   ========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================
   2) BODY / TIPO / CORES
   ========================= */
body {
  margin: 0;                  /* remove respiro padrão */
  padding-top: 65px;
  font-family: 'Inter', sans-serif;
  background-color: #1a1a1a;
  color: #e0e0e0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   3) HEADER (DESKTOP — ORIGINAL)
   ========================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 65px;
  z-index: 1000;
  background-color: #000000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-start;  
  align-items: center;
  box-sizing: border-box;
  padding-right: 0;
  --hdr-btn-img:   url("../images/navegation/btn-painel-jogador.png");
  --hdr-btn-img-h: url("../images/navegation/btn-painel-jogador-hover.png");
  --hdr-btn-w: 200px;
  --hdr-btn-h: 65px;
}

/* --- GRUPO DA ESQUERDA (LOGO + NAV) --- */
.header-left {
  display: flex;
  align-items: center;
  height: 100%;
}
.header-logo {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}
.header-logo img {
  height: 45px;
  width: auto;
  vertical-align: middle;
  transition: opacity 0.2s ease-in-out;
}
.header-logo a:hover img { opacity: 0.8; }

/* --- NAVEGAÇÃO PRINCIPAL --- */
.header-nav { margin-left: 20px; height: 100%; }
.header-nav ul {
  margin: 0; padding: 0; list-style: none; display: flex; height: 100%;
}
.header-nav ul li { display: flex; align-items: center; height: 100%; }
.header-nav a {
  display: flex; align-items: center; height: 100%;
  padding: 0 18px; color: #cccccc; text-decoration: none;
  font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700;
  transition: color 0.2s ease-in-out; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.header-nav a:hover { color: #ffffff; }

.header-actions{
  position: static;            
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: auto;
  justify-content: flex-end;
  justify-self: end;
  place-self: center end;
  padding: 0;
  gap: 0;
}

/* esconder ícone de login */
.header-actions .icon-button { display: none !important; }

.header-actions .action-button.primary{
  background-image: var(--hdr-btn-img);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;

  display: block;
  width: var(--hdr-btn-w);
  height: var(--hdr-btn-h);

  line-height: 0;
  margin: 0;                 
  text-indent: -9999px;      
  overflow: hidden; white-space: nowrap;
  border: none; outline: none; padding: 0;

  color: transparent; filter: none;
  transition: transform .15s ease;
  cursor: pointer;
}
.header-actions .action-button.primary:hover{
  background-image: var(--hdr-btn-img-h);
}
.header-actions .action-button.primary:active{
  transform: translateY(0) scale(.98);
}

/* =========================
   4) SUBMENU (DESKTOP — ORIGINAL)
   ========================= */
.header-nav .has-submenu { position: relative; }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 100%; width: auto;
  padding: 10px 0; background-color: #000; border-radius: 0;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all 0.25s ease-out; pointer-events: none; z-index: 10;
}
.has-submenu:hover > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.submenu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.submenu li a {
  display: block; padding: 10px 18px; text-decoration: none; transition: color 0.2s ease;
  white-space: nowrap; font-family: 'Merriweather', serif; font-size: 13px; color: #a7a7a7; text-align: left;
}
.submenu li a:hover { background-color: transparent; color: #ffffff; }
.submenu-item-title {
  display: block; font-family: 'Cinzel Decorative', serif; font-size: 14px; color: #ffffff; text-align: left;
}

/* =========================
   5) HERO SECTION (cover sem bordas pretas)
   ========================= */
.hero-section {
  height: 95vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 8vh;
  box-sizing: border-box;

  background:
    radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,.45) 0%, rgba(0,0,0,.12) 40%, transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.35) 100%),
    url('../images/backgrounds/bg-hero-section.png');
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 100% 100%, 100% 100%, cover;
  background-color: #0d0e11;

  position: relative;
  overflow: hidden;
  isolation: isolate;

  /* Variáveis EXCLUSIVAS do CTA do HERO */
  --hero-cta-img:   url("../images/navegation/cta-hero-section.png");
  --hero-cta-img-h: url("../images/navegation/cta-hero-section-hover.png");
  --hero-cta-img-a: url("../images/navegation/cta-hero-section-click.png");
  --hero-cta-w: clamp(220px, 28vw, 360px);
  --hero-cta-h: clamp(64px, 8vw, 120px);
}

.hero-content { text-align: center; text-shadow: 2px 2px 8px rgba(0,0,0,.8); }

.hero-logo {
  display: block; max-width: 350px; height: auto; margin: 2rem auto;
}

/* Título e subtítulo */
.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 900;
  font-family: 'Strange', sans-serif;
  background-image: linear-gradient(180deg, #fefae0 5%, #f7c552 50%, #8c6317 95%);
  color: transparent; -webkit-background-clip: text; background-clip: text;
  text-shadow: 0px 3px 8px rgba(0, 0, 0, 0.4);
  animation: subtlePulseGlow 6s ease-in-out infinite;
}
.hero-subtitle {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 2.5rem; font-family: 'Strange', sans-serif;
  background-image: linear-gradient(165deg, #e6cba9 10%, #b07c4f 40%, #8a623f 70%, #c8a57c 95%);
  color: transparent; -webkit-background-clip: text; background-clip: text;
}

/* =========================
   5.1) CTA — imagem 
   ========================= */

/* Botão legado baseado em <img> */
.cta-button { display: inline-block; border: none; background: none; padding: 0; }
.cta-button img{
  max-width: 320px; height: auto; display: block;
  filter: drop-shadow(0px 0px 8px rgba(255, 100, 100, 0.5));
  transition: filter 0.3s ease-in-out;
}
.cta-button:hover img { filter: drop-shadow(0px 0px 18px rgba(255, 180, 180, 0.9)); }

/* utilitário de acessibilidade */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,1px,1px); white-space:nowrap; border:0;
}

/* Versão NOVA (3 estados) — exclusiva do HERO */
.hero-section .cta-button.play-cta{
  display:inline-block;
  width: var(--hero-cta-w);
  height: var(--hero-cta-h);
  background-image: var(--hero-cta-img);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 8px rgba(255, 100, 100, 0.5));
  transition: transform .18s ease, filter .2s ease;
  text-indent: -9999px;
  overflow: hidden; white-space: nowrap;
}
.hero-section .cta-button.play-cta:hover{
  background-image: var(--hero-cta-img-h);
  transform: translateY(-1px);
  filter: drop-shadow(0 0 18px rgba(255, 180, 180, 0.9));
}
.hero-section .cta-button.play-cta:active{
  background-image: var(--hero-cta-img-a);
  transform: translateY(0) scale(.98);
}
.hero-section .cta-button.play-cta img{ display:none !important; }

/* Animação leve do título */
@keyframes subtlePulseGlow {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.15); }
  100% { filter: brightness(1); }
}

/* =========================
   6) OVERLAY — ROSAS CAINDO
   ========================= */
:root{
  --rose-img: url("../images/animation/roses.png");
  --rose-count: 52;
}

.rose-fall{
  position:absolute; inset:0;
  pointer-events:none;
  z-index: 3;
}

.rose{
  position:absolute;
  top:-12vh; left:0;
  width: var(--size); height: var(--size);
  background: var(--rose-img) center/contain no-repeat;
  opacity: 0;
  transform: translate3d(var(--xStart), -12vh, 0) rotate(var(--rotStart));
  animation: roseFall var(--dur) linear var(--delay) infinite;
  filter: var(--fx, drop-shadow(0 8px 16px rgba(0,0,0,.35)));
  z-index: var(--z, 0);
}

.rose-fall[data-q="low"] .rose{ --fx: none; }
.rose-fall[data-q="mid"] .rose{ --fx: drop-shadow(0 6px 10px rgba(0,0,0,.30)); }
.rose-fall[data-paused="true"] .rose { animation-play-state: paused; }

@keyframes roseFall{
  0%{
    opacity: 0;
    transform: translate3d(var(--xStart), -12vh, 0) rotate(var(--rotStart));
  }
  10%{ opacity: .95; }
  50%{
    transform:
      translate3d(
        calc(var(--xStart) + (var(--drift) * .5)),
        50vh,
        0
      )
      rotate(calc(var(--rotStart) + (var(--rotDelta) * .5)));
  }
  100%{
    opacity: .95;
    transform:
      translate3d(
        calc(var(--xStart) + var(--drift)),
        110vh,
        0
      )
      rotate(calc(var(--rotStart) + var(--rotDelta)));
  }
}

/* Acessibilidade — reduz movimento */
@media (prefers-reduced-motion: reduce){
  .rose { animation: none !important; opacity:.15; }
}

/* ==================================================
   7) RESPONSIVIDADE — APENAS HERO SECTION
   ================================================== */

@media (max-width: 768px){ /* sem alterar altura/largura do hero */ }

.hero-title    { font-size: clamp(28px, 5.2vw, 52px); }
.hero-subtitle { font-size: clamp(16px, 2.4vw, 26px); }
.cta-button img{ width: clamp(220px, 28vw, 360px); }

@media (max-width: 1024px) { .hero-logo { max-width: 320px; margin: 1.75rem auto; } }
@media (max-width: 768px)  { .hero-logo { max-width: 300px; margin: 1.5rem auto; } }
@media (max-width: 560px)  { .hero-logo { max-width: 260px; } }
@media (max-width: 380px)  { .hero-logo { max-width: 220px; } }

/* ==================================================
   8) EFEITO DE FOGO NO SUBTÍTULO
   ================================================== */
.hero-subtitle.beta-fire{
  /* neutraliza o gradiente padrão do .hero-subtitle para o span cuidar do fill */
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: inherit;
  color: inherit;
  text-align: center;
  pointer-events: none; /* não rouba clique do botão abaixo */
}

.beta-fire .fire-text{
  --flameHue: 26; /* 10–20 = mais vermelho | 26–38 = laranja | 45–55 = amarelo */
  position: relative;
  display: inline-block;
  font-weight: 900;
  letter-spacing: .06em;

  background:
    linear-gradient(180deg,
      hsl(var(--flameHue) 100% 95%) 0%,
      hsl(var(--flameHue) 95% 68%) 35%,
      hsl(var(--flameHue) 90% 52%) 60%,
      hsl(var(--flameHue) 88% 40%) 100%);
  background-size: 100% 180%;
  background-position: 50% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 10px rgba(255,180,80,.55),
    0 0 24px rgba(255,120,40,.40),
    0 0 50px rgba(255,70,10,.30);

  animation:
    fireFill 3.6s ease-in-out infinite alternate,
    fireFlicker 90ms steps(2,end) infinite;

  filter: url(#fire-warp);
}

.beta-fire .fire-text::before{
  content:"";
  position:absolute; left:-.15em; right:-.15em; bottom:-.25em;
  height: 1.8em;
  background:
    radial-gradient(60% 120% at 50% 100%, rgba(255,170,60,.55) 0%, transparent 60%),
    radial-gradient(45% 120% at 20% 100%, rgba(255,100,20,.48) 0%, transparent 65%),
    radial-gradient(45% 120% at 80% 100%, rgba(255,100,20,.48) 0%, transparent 65%);
  filter: blur(8px) saturate(1.25);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: lick 1.35s ease-in-out infinite;
}

.beta-fire .fire-text::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-.1em; height: 1.8em;
  background:
    radial-gradient(2px 2px at 20% 90%, rgba(255,230,160,.95) 0 50%, transparent 55%),
    radial-gradient(2px 2px at 42% 95%, rgba(255,210,140,.9) 0 50%, transparent 55%),
    radial-gradient(2px 2px at 63% 92%, rgba(255,220,160,.9) 0 50%, transparent 55%),
    radial-gradient(2px 2px at 77% 96%, rgba(255,240,180,.95) 0 50%, transparent 55%),
    radial-gradient(2px 2px at 88% 93%, rgba(255,210,140,.9) 0 50%, transparent 55%);
  filter: blur(0.6px);
  mix-blend-mode: screen;
  opacity: .95;
  pointer-events: none;
  animation: embers 2.2s linear infinite;
}

/* animações */
@keyframes fireFill{
  0%   { background-position: 50% 100%; }
  100% { background-position: 50% 0%;   }
}
@keyframes fireFlicker{
  0%   { text-shadow:
           0 0 8px rgba(255,190,90,.50),
           0 0 22px rgba(255,130,50,.38),
           0 0 46px rgba(255,70,10,.28); }
  100% { text-shadow:
           0 0 10px rgba(255,170,70,.60),
           0 0 28px rgba(255,110,35,.42),
           0 0 56px rgba(255,70,10,.34); }
}
@keyframes lick{
  0%   { transform: translateY(0) scaleY(1);   opacity:.95; }
  50%  { transform: translateY(-6%) scaleY(1.08); opacity:1; }
  100% { transform: translateY(0) scaleY(1);   opacity:.9; }
}
@keyframes embers{
  0%   { transform: translateY(0) scale(1);   opacity:.95; }
  70%  { transform: translateY(-50%) scale(1.05); opacity:.7; }
  100% { transform: translateY(-80%) scale(1.12); opacity:0; }
}

/* acessibilidade do foco (se um dia tornar clicável) */
.beta-fire .fire-text:focus-visible{
  outline: 2px solid rgba(255,220,130,.5);
  outline-offset: 4px;
}
