/* ==========================================
   HEADER COMPONENT (v1/css/components/header.css)
   ========================================== */
/* Remove body animation and define content-only transition */
/* Ensures custom font rendering finishes smoothly */
html {
  font-display: block;
}


/* Smooth Page Load Transition */


.suits{letter-spacing:0.6em; font-size:0.95rem; color:var(--gold);}
.suits .red{color:var(--red-bright);}

header {
  position: relative;
  text-align: center;
  padding: 2.6rem 1.5rem 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.14), transparent 65%), var(--black);
  border-bottom: 1px solid var(--line);
  z-index: 5000;
}

.crown {
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
  display: block;
  text-shadow: 0 0 14px rgba(201, 162, 39, 0.5);
}

.wordmark {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-shadow: 0 0 24px rgba(201, 162, 39, 0.25);
}

.tagline-row {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.rule-h {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
}

/* NAVIGATION */
nav {
  margin-top: 1.9rem;
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2.2vw, 2rem);
  padding-bottom: 1.3rem;
  flex-wrap: wrap;
  align-items: center;
}

/* NAVEGAÇÃO */
nav a {
  font-family: 'Oswald', sans-serif; /* Força a fonte desde o primeiro instante */
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 0.4rem 0.1rem;
  position: relative;
  /* Transição restrita APENAS a cor e background, evitando animações de tamanho */
  transition: color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
}



nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

nav a:hover,
nav a.current {
  color: var(--gold-light);
}

nav a:hover::after,
nav a.current::after {
  transform: scaleX(1);
}



/* BOTÃO ENTRAR (CTA) */
nav a.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background: var(--gold);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  font-weight: 500;
  line-height: 1; /* Mantém a altura interna travada */
  height: 32px;  /* Define uma altura fixa para impedir variação */
  text-decoration: none;
  /* Garante que não haverá animação de tamanho */
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a.cta-link:hover {
  background: var(--gold-light);
  color: var(--black);
}

nav a.cta-link::after {
  display: none !important; /* Desativa a barra inferior de hover dos outros links */
}

/* DROPDOWN MENU */
.nav-drop {
  position: relative;
}

.nav-drop-btn {
  background: none;
  border: none;
  color: var(--grey);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0.1rem;
}

.nav-drop-btn:hover {
  color: var(--gold-light);
}

.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  min-width: 140px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  z-index: 20;
}

.nav-drop.open .nav-drop-menu {
  display: block;
}

.nav-drop-menu a {
  display: block;
  padding: 0.6rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

/* CONTAINER & BOTÃO DO USUÁRIO NO MENU */
.nav-user {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-dropdown {
  position: relative;
}

.user-menu-trigger {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold-light, #e8c85a);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.user-menu-trigger:hover {
  background: var(--gold, #c9a227);
  color: #12100e;
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}

.user-menu-trigger[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* CAIXA SUSPENSA DO USUÁRIO */
.user-dropdown-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: #141210;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
  padding: 0.35rem 0;
  z-index: 1000;
  flex-direction: column;
}

.user-dropdown-list.is-open {
  display: flex;
}

.dropdown-header {
  padding: 0.3rem 0.8rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-role-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  color: #c9a227;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-dropdown-list .dropdown-item {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  color: #d8d0c5;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
}

.user-dropdown-list .dropdown-item:hover {
  background: rgba(201, 162, 39, 0.15);
  color: #ffffff;
}

.user-dropdown-list .dropdown-item.logout-action {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ff8080;
  margin-top: 0.2rem;
}

.user-dropdown-list .dropdown-item.logout-action:hover {
  background: rgba(180, 40, 40, 0.25);
  color: #ff9999;
}