/* Mobile Menu Unified Styles (header1 & header2)
   Centralizes structural styles; theming remains in header-specific CSS. */

/* Toggle buttons (header1: .mobile-menu-toggle, header2: .mobile-menu-btn) */
.mobile-menu-toggle, .mobile-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}

/* Hamburger lines (header1) */
.mobile-menu-toggle .hamburger-line {
  width: 22px;
  height: 2px;
  border-radius: 2px;
}

/* Burger lines (header2) */
.mobile-menu-btn .burger-line {
  width: 20px;
  height: 2px;
  border-radius: 1px;
}

/* Overlay */
#mobileNavOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: none;
}
#mobileNavOverlay.show {
  opacity: 1;
  visibility: visible;
  display: block;
}

/* Sliding drawer */
#mobileNavMenu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85vw;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}
#mobileNavMenu.show { left: 0; }

/* Drawer header (neutral base) */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
}

/* Close buttons */
.close-menu-btn, .close-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

/* Menu items (applies to both header1 and header2) */
#mobileNavMenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid #f0f2f5;
}
#mobileNavMenu a i { width: 20px; text-align: center; font-size: 16px; }

/* Safe mobile visibility helpers (keeps desktop behavior intact) */
@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-menu-btn { display: none !important; }
}

