/* ===== Mobile Navigation ===== */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f2f2f4;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile menu — off-screen by default */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s;
}
.mobile-menu.active {
  visibility: visible;
  pointer-events: auto;
}

/* Dark overlay */
.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.active .mobile-menu-overlay {
  opacity: 1;
}

/* Slide-in panel */
.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: #0c0c10;
  border-left: 1px solid #1e1e26;
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

/* Close button */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #b8b8c0;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: #fff;
}

/* Menu links */
.mobile-menu-content a {
  display: block;
  padding: 12px 0;
  color: #b8b8c0;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-menu-content a:hover {
  color: #fff;
}

/* Divider */
.mobile-menu-divider {
  height: 1px;
  background: #1e1e26;
  margin: 12px 0;
}

/* CTA button */
.mobile-menu-cta {
  background: #00C875 !important;
  color: #000 !important;
  font-weight: 600 !important;
  text-align: center;
  padding: 12px 0 !important;
  border-radius: 8px;
  margin-top: 8px;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ===== Show hamburger on mobile, hide desktop nav ===== */
@media (max-width: 768px) {
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-hamburger {
    display: flex;
    margin-left: 12px;
  }
  .nav-center,
  .nav-links,
  .nav-login,
  .hide-mobile {
    display: none !important;
  }
  .nav-right {
    margin-left: auto;
  }
}
