/* HEADER.CSS - Menu principal em todas as páginas */

:root {
  --primary-dark: #0d0d0f;
  --primary-dark-soft: #17191d;
  --accent-gold: #f0c75d;
  --accent-gold-strong: #d4af37;
  --silver: #dfe3ea;
  --text-dark: #111111;
  --white: #ffffff;
  --panel-bg: rgba(18, 20, 24, 0.96);
  --panel-border: rgba(240, 199, 93, 0.7);

  /* Logout/button colors (standardized) */
  --logout-red: #d32f2f;
  --logout-red-hover: #a61c1c;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at center, #262a30 0%, #101216 45%, #07080a 100%);
  color: var(--accent-gold);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(240, 199, 93, 0.4));
  animation: loader-pulse 1.4s ease-in-out infinite;
}

.loader-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(243, 213, 122, 0.22);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: loader-spin 0.75s linear infinite;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* HEADER BANNER */
.header-banner {
  background: linear-gradient(180deg, #0b0d10 0%, #111418 100%);
  padding: 0;
  position: relative;
  border-bottom: 5px solid var(--accent-gold-strong);
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.banner-stripe {
  background: linear-gradient(90deg,
    var(--primary-dark) 0%,
    var(--primary-dark) 8%,
    var(--accent-gold) 8%,
    var(--accent-gold) 14%,
    var(--primary-dark) 14%,
    var(--primary-dark) 20%,
    var(--accent-gold) 20%,
    var(--accent-gold) 26%,
    var(--primary-dark) 26%,
    var(--primary-dark) 100%);
  height: 12px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  gap: 30px;
}

.header-left {
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo-container {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MENU ABAS */
.menu-abas {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.menu-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.menu-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Botões de Admin/Players com destaque especial */
.aba-admin,
.aba-admin:hover,
.aba-admin:active,
.aba-admin:visited,
.aba-admin:focus {
  background: linear-gradient(180deg, #d8c371 0%, #d4af37 100%);
  border-color: var(--accent-gold-strong);
  color: var(--text-dark) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  text-decoration: none;
}

.aba-admin:hover,
.aba-admin:focus {
  background: linear-gradient(180deg, #f7dd8c 0%, #e0b53b 100%);
  border-color: var(--accent-gold);
  color: var(--text-dark) !important;
}

.aba {
  background-color: transparent;
  color: var(--accent-gold);
  padding: 8px 16px;
  border: 2px solid var(--accent-gold);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aba:hover {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  transform: scale(1.05);
}

.aba-active {
  background: linear-gradient(180deg, #f7dd8c 0%, #d4af37 100%);
  border: 2px solid var(--accent-gold);
  color: var(--text-dark);
  opacity: 1;
  box-shadow: 0 0 18px rgba(240, 199, 93, 0.4);
}

.banner-pink {
  background: linear-gradient(90deg, #c0901f 0%, #ebd78f 50%, #b8840f 100%);
  height: 22px;
}

/* Botão Logout no header */
.header-logout {
  background-color: var(--logout-red);
  color: white;
  border: 2px solid var(--logout-red);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

html, body {
  min-height: 100%;
  height: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main,
.main-content,
.container,
.container-principal,
.container-regras,
.main,
#app,
.body-content {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
}

.header-logout:hover {
  background-color: var(--logout-red-hover);
  border-color: var(--logout-red-hover);
  transform: translateY(-2px);
}

.site-footer {
  background: linear-gradient(180deg, #0d0d0f 0%, #121417 100%);
  border-top: 4px solid #d4af37;
  color: #f3f3f3;
  margin-top: 40px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #f2d77a;
  letter-spacing: 0.03em;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.footer-text,
.footer-credit {
  font-size: 14px;
  color: #e7e7e7;
}

.footer-credit strong {
  color: #f2d77a;
  font-weight: 700;
}

.footer-credit span {
  color: #d4af37;
  font-weight: 700;
}

/* Responsivo */
@media (max-width: 768px) {
  .header-content {
    padding: 10px 15px;
    gap: 15px;
  }

  .menu-abas {
    gap: 5px;
  }

  .aba {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .header-logo-container {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: row;
    padding: 8px 12px;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    position: relative; /* needed for absolute-positioned hamburger/menu */
  }

  /* ensure header-left doesn't push hamburger away */
  .header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .menu-hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: var(--accent-yellow);
    background: transparent;
    border: none;
    margin: 0;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10002;
  }

  /* Dropdown menu that appears under the header when hamburger is active */
  .menu-abas {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    background: var(--primary-dark);
    padding: 10px;
    border-radius: 8px;
    flex-direction: column;
    gap: 8px;
    z-index: 10001;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }

  .menu-abas.active {
    display: flex;
  }

  .aba {
    padding: 8px 10px;
    font-size: 0.8rem;
    text-align: left;
  }

  .header-logout {
    width: 100%;
    padding: 10px;
    font-size: 0.85rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .header-logo-container {
    width: 50px;
    height: 50px;
    margin-left: auto; /* keep logo to the right */
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 56px; /* ensure right area doesn't overlap absolute hamburger */
  }
}

/* ===== merged menu.css ===== */
/* ========================= */
/* MENU TOPO ESTILO MODERNO  */
/* ========================= */

.menu-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);

  width: 92%;
  max-width: 1100px;
  height: 65px;

  background: rgba(59, 59, 255, 0.85);
  backdrop-filter: blur(15px);

  border-radius: 16px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
  0 10px 35px rgba(0,0,0,0.45),
  inset 0 0 10px rgba(255,255,255,0.03);

  padding: 0 20px;

  z-index: 10000;

  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;

  transition: 0.3s;
}

/* Agrupa logo + links à esquerda */
.menu-esquerda {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Logo */
.menu-logo {
  font-size: 18px;
  font-weight: bold;
  color: white;
}

/* Links */
.menu-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.menu-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

/* Selected page style */
.menu-links a.selected {
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 10px;
}

/* For consistency with header .aba-active */
.menu-links a.selected::after { width: 0; }

.menu-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(135deg, #e5ff00, #ff0077);
  transition: 0.3s;
}

.menu-links a:hover {
  color: #d0ff00;
}

.menu-links a:hover::after {
  width: 100%;
}

/* Botão Sair */
.btn-logout-menu {
  background: var(--logout-red);
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-logout-menu:hover {
  background: var(--logout-red-hover);
  transform: scale(1.05);
}

/* Ícone hamburger */
.menu-hamburger {
  display: none; /* só aparece no mobile */
  font-size: 28px;
  cursor: pointer;
  color: white;
  transition: 0.3s;
}

/* Container principal */
.container {
  margin-top: 110px;
}

/* RESPONSIVO */
@media (max-width: 768px) {

  .menu-topo {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    height: auto;
    padding: 12px 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .menu-esquerda {
    display: flex;
    align-items: center;
    width: auto;
    gap: 10px;
  }

  .menu-hamburger {
    display: block;
    font-size: 30px;
    cursor: pointer;
    color: white;
    margin-left: auto;
  }

 .menu-links {
  display: none;
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);

  width: 90%;
  max-width: 320px;

  background: rgba(20, 20, 60, 0.98);
  backdrop-filter: blur(12px);

  border-radius: 16px;
  padding: 15px;

  flex-direction: column;
  gap: 10px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 9999;
}

.menu-links.active {
  display: flex;
}

  .menu-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
  }

  .container {
    margin-top: 110px;
  }
}

/* Segundo modelo visual do menu compartilhado */
.header-content {
  position: relative;
  padding: 18px 30px 20px;
}

.menu-abas {
  gap: 18px;
  padding: 6px;
  background: rgba(5, 6, 8, 0.78);
  border: 1px solid rgba(240, 199, 93, 0.3);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.menu-left,
.menu-right {
  gap: 2px;
}

.aba {
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #dfe3ea;
  font-size: 0.78rem;
}

.aba:hover {
  background: rgba(240, 199, 93, 0.14);
  border-color: rgba(240, 199, 93, 0.45);
  color: var(--accent-gold);
  transform: none;
}

.aba-active {
  background: linear-gradient(180deg, #f7dd8c 0%, #d4af37 100%);
  border-color: var(--accent-gold);
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(240, 199, 93, 0.28);
}

.aba-admin,
.aba-admin:hover,
.aba-admin:active,
.aba-admin:visited,
.aba-admin:focus {
  background: linear-gradient(180deg, #d8c371 0%, #d4af37 100%);
  border-color: var(--accent-gold-strong);
  color: var(--text-dark) !important;
}

@media (max-width: 480px) {
  .header-content {
    padding: 8px 12px;
  }

  .menu-abas {
    padding: 10px;
    border-radius: 12px;
  }

  .menu-left,
  .menu-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .aba {
    width: 100%;
    padding: 9px 10px;
  }
}

/* Modelo centralizado: identidade acima e navegação em faixa própria */
.header-content {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 16px 30px 18px;
}

.header-right {
  order: -1;
  justify-content: center;
  min-height: 62px;
}

.header-logo-container {
  width: 64px;
  height: 64px;
}

.header-left {
  width: 100%;
}

.menu-abas {
  justify-content: center;
  width: 100%;
}

.menu-left,
.menu-right {
  justify-content: center;
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
  }

  .header-right {
    order: initial;
    min-height: 0;
    justify-content: flex-end;
  }

  .header-left {
    width: auto;
  }

  .menu-abas {
    justify-content: initial;
    width: auto;
  }
}

/* Pequenos ajustes de transição para links e botões */
.menu-links a,
.btn-logout-menu,
.menu-hamburger {
  transition: all 0.3s ease;
}


.menu-logo img {
  height: 50px; /* ajusta a altura da logo */
  width: auto;
}

/* Mantém a logo inteira quando o cabeçalho fica estreito. */
.header-logo-container {
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}

@keyframes fadeMenu {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

