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

:root {
  --primary-dark: #1a1a5e;
  --accent-yellow: #ffdd00;
  --text-dark: #1a1a1a;
  --secondary-pink: #e64b8a;
  --white: #ffffff;

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

/* HEADER BANNER */
.header-banner {
  background-color: var(--primary-dark);
  padding: 0;
  position: relative;
  border-bottom: 8px solid var(--primary-dark);
  margin-bottom: 30px;
}

.banner-stripe {
  background: linear-gradient(90deg, 
    var(--primary-dark) 0%, 
    var(--primary-dark) 5%, 
    var(--accent-yellow) 5%, 
    var(--accent-yellow) 10%, 
    var(--primary-dark) 10%, 
    var(--primary-dark) 15%,
    var(--accent-yellow) 15%, 
    var(--accent-yellow) 20%,
    var(--primary-dark) 20%,
    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 {
  background-color: var(--secondary-pink);
  border-color: var(--secondary-pink);
  color: var(--white);
}

.aba-admin:hover {
  background-color: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: var(--text-dark);
}

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

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

.aba-active {
  background-color: var(--accent-yellow);
  border: 2px solid var(--accent-yellow);
  color: var(--text-dark);
  opacity: 1;
}

.banner-pink {
  background-color: var(--secondary-pink);
  height: 25px;
}

/* 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;
}

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

/* 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;
  }

  .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;
  }
}

/* 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;
}

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

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

