/**
 * Full-Page Mobile Menu - Simple & Functional
 * Function over fashion - user can see and tap everything easily
 */

/* Hamburger button - ALWAYS visible on mobile */
.menu-toggle {
  display: block !important; /* Show by default */
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer !important;
  padding: 1rem;
  color: #1F2937;
  position: fixed !important; /* FIXED positioning - outside normal flow */
  top: 15px !important;
  right: 20px !important;
  z-index: 999999 !important; /* Above EVERYTHING */
  pointer-events: auto !important; /* Force clickable */
  width: 60px !important;
  height: 60px !important;
  touch-action: manipulation !important; /* Prevent iOS issues */
  -webkit-tap-highlight-color: rgba(19, 127, 236, 0.3) !important;
}

.menu-toggle:active {
  color: #137fec;
}

/* Hide hamburger on desktop (768px = Tailwind md breakpoint) */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Full-page mobile menu overlay */
.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* When menu is open */
.mobile-menu-overlay.active {
  display: block;
}

/* Close button */
.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close:active {
  color: #137fec;
}

/* Menu container */
.mobile-menu-content {
  padding: 5rem 2rem 2rem 2rem;
  min-height: 100%;
}

/* Menu list */
.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu items */
.mobile-menu-list > li {
  margin: 0;
  border-bottom: 1px solid #333;
}

/* Menu links */
.mobile-menu-list a {
  display: block;
  padding: 1.25rem 0;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-menu-list a:active {
  color: #137fec;
}

/* Submenu parent */
.has-submenu > a {
  position: relative;
  padding-right: 2rem;
}

/* Submenu toggle arrow */
.submenu-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.has-submenu.open .submenu-toggle {
  transform: translateY(-50%) rotate(180deg);
}

/* Submenu */
.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem 1.5rem;
  background: #111;
}

.has-submenu.open .submenu {
  display: block;
}

/* Submenu links */
.submenu a {
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.75rem 0;
  text-transform: none;
  letter-spacing: normal;
  color: #cccccc;
}

.submenu a:active {
  color: #137fec;
}

/* Hide mobile menu on desktop */
@media (min-width: 768px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}
