/* ===============================
   Global Mobile Nav (site-wide)
   - Does NOT change header/logo size
   - Desktop unaffected
   =============================== */

/* Keep header visible and clickable backgrounds on scroll */
/* REMOVED - Let ap-core.css handle the header background */

/* Do not force heights; let your theme control it */
.menu-area .heaader-inner-area,
.gamfi-header-section .heaader-inner-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Right cluster (greeting + hamburger) */
.ap-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* Mobile-only hamburger that lives INSIDE the header - MASSIVE EPIC NEON (almost logo size!) */
@media (max-width: 1400px) {
  .ap-hamburger {
    position: relative;
    width: 110px !important; 
    height: 110px !important;
    border-radius: 24px;
    border: 4px solid rgba(22,241,211,.9);
    background: linear-gradient(135deg, rgba(8,20,24,.95) 0%, rgba(22,241,211,.15) 100%);
    box-shadow: 
      0 0 20px rgba(22,241,211,.4),
      0 0 35px rgba(22,241,211,.2),
      inset 0 0 15px rgba(22,241,211,.2),
      inset 0 2px 5px rgba(255,255,255,.1);
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.3s ease;
  }
  .ap-hamburger::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(22,241,211,.2) 0%, transparent 60%);
    filter: blur(10px);
    z-index: -1;
    opacity: 0.6;
    animation: neonPulse 2s ease-in-out infinite;
  }
  @keyframes neonPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
  }
  .ap-hamburger:hover {
    border-color: rgba(22,241,211,1);
    background: linear-gradient(135deg, rgba(8,20,24,.95) 0%, rgba(22,241,211,.25) 100%);
    box-shadow: 
      0 0 40px rgba(22,241,211,.8),
      0 0 60px rgba(22,241,211,.6),
      0 0 90px rgba(22,241,211,.3),
      inset 0 0 30px rgba(22,241,211,.35);
  }
  .ap-hamburger:hover::before {
    opacity: 1;
    transform: scale(1.1);
  }
  .ap-hamburger .bars,
  .ap-hamburger .bars::before,
  .ap-hamburger .bars::after {
    content:""; display:block; position:relative;
    width: 40px; height: 4px; 
    background: #16f1d3;
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(22,241,211,.9);
  }
  .ap-hamburger .bars::before { position:absolute; top:-11px; left:0; }
  .ap-hamburger .bars::after  { position:absolute; top: 11px; left:0; }

  /* Optional: hide giant desktop nav list on phones; drawer will replace it */
  .menu-area nav { display: none; }
}

/* Drawer above header so links are clickable */
.offcanvas { z-index: 3000; }

/* Drawer link styles (neon-ish) */
.offcanvas .nav-link {
  color: #e9f7ff;
  padding: .5rem .25rem;
  border-radius: 8px;
}
.offcanvas .nav-link:hover {
  color: #0a1418;
  background: linear-gradient(90deg, #1df7ff 0%, #00e3a6 100%);
  box-shadow: 0 0 12px rgba(29,247,255,.25), inset 0 0 8px rgba(0,227,166,.25);
}

/* Green neon button (login) */
.ap-btn-neon {
  display:inline-flex; align-items:center; justify-content:center;
  width:100%; font-weight:700; color:#0a1418!important; border:0; border-radius:12px;
  padding:.7rem 1rem;
  background: linear-gradient(90deg, #1df7ff 0%, #00e3a6 100%);
  box-shadow: 0 0 18px rgba(29,247,255,.25), inset 0 0 10px rgba(0,227,166,.25);
}
.ap-btn-neon:hover { filter: brightness(1.04); }

/* RED neon button (logout) */
.ap-btn-danger {
  display:inline-flex; align-items:center; justify-content:center;
  width:100%; font-weight:700; color:#0a1418!important; border:0; border-radius:12px;
  padding:.7rem 1rem;
  background: linear-gradient(90deg, #ff5a5a 0%, #ff2e2e 100%);
  box-shadow: 0 0 18px rgba(255,90,90,.25), inset 0 0 10px rgba(255,46,46,.25);
}
.ap-btn-danger:hover { filter: brightness(1.05); }

/* ===============================
   Mobile Submenu Toggle Buttons
   =============================== */

/* Row containing main link + arrow button */
.mobile-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* Arrow toggle button - NEON STYLED */
.mobile-submenu-toggle {
  background: rgba(8, 20, 24, 0.6);
  border: 1px solid rgba(22, 241, 211, 0.5);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(22, 241, 211, 0.2);
}

.mobile-submenu-toggle:hover {
  background: rgba(22, 241, 211, 0.2);
  border-color: rgba(22, 241, 211, 0.8);
  box-shadow: 0 0 15px rgba(22, 241, 211, 0.4);
}

.mobile-submenu-toggle .arrow-down {
  color: #16f1d3;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.3s ease;
  display: block;
  text-shadow: 0 0 8px rgba(22, 241, 211, 0.6);
}

/* Rotate arrow when submenu is open */
.mobile-submenu-toggle.active .arrow-down {
  transform: rotate(180deg);
}

/* Submenu styling - CLOSED BY DEFAULT */
.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  display: none;
}

.mobile-submenu.open {
  display: block;
  max-height: 500px;
  opacity: 1;
  margin-top: 8px;
}

.mobile-submenu li {
  margin: 0;
}

.mobile-submenu li a {
  display: block;
  padding: 10px 16px 10px 24px;
  color: #16f1d3;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(22, 241, 211, 0.6);
}

.mobile-submenu li a:hover {
  background: rgba(22, 241, 211, 0.15);
  color: #1df7ff;
  padding-left: 28px;
  text-shadow: 0 0 15px rgba(22, 241, 211, 0.9), 0 0 25px rgba(22, 241, 211, 0.5);
  box-shadow: 0 0 10px rgba(22, 241, 211, 0.4);
}

/* Item with submenu spacing */
.mobile-menu-item-with-sub {
  margin-bottom: 8px;
}
