/* nav.css — Shared mega-menu navigation styles */

/* Hide old inline navs and footers when shared nav is active */
nav:not(#site-nav) { display: none !important; }
footer:not(#site-footer) { display: none !important; }

/* Ensure content clears the fixed nav */
body { padding-top: 52px; }

/* Nav bar */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #222;
}

#site-nav .nav-brand {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Desktop menu button */
.nav-menu-btn {
  background: transparent;
  border: 1px solid #333;
  color: #888;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"] {
  color: #22c55e;
  border-color: #22c55e;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #888;
  border-radius: 1px;
  transition: all 0.2s;
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mega menu (desktop) */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111;
  border-bottom: 1px solid #222;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.mega-menu.open { display: block; }

.mega-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.mega-cat-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.mega-cat a {
  display: block;
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: color 0.15s;
  font-family: 'Inter', sans-serif;
}

.mega-cat a:hover { color: #fff; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111;
  border-bottom: 1px solid #222;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-menu.open { display: block; }

.mobile-cat { border-bottom: 1px solid #1a1a1a; }

.mobile-cat-title {
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22c55e;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.mobile-cat-title::after {
  content: '+';
  float: right;
  color: #666;
}

.mobile-cat.expanded .mobile-cat-title::after { content: '-'; }

.mobile-cat-links {
  display: none;
  padding: 0 1.5rem 1rem;
}

.mobile-cat.expanded .mobile-cat-links { display: block; }

.mobile-cat-links a {
  display: block;
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  font-family: 'Inter', sans-serif;
}

.mobile-cat-links a:hover { color: #fff; }

/* Footer */
#site-footer {
  border-top: 1px solid #222;
  padding: 3rem 2rem;
  background: #0a0a0a;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.footer-col a {
  display: block;
  color: #888;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.25rem 0;
  transition: color 0.15s;
  font-family: 'Inter', sans-serif;
}

.footer-col a:hover { color: #fff; }

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #666;
  font-size: 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid #1a1a1a;
  font-family: 'Inter', sans-serif;
}

.base-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid #222;
  border-radius: 100px;
  font-size: 0.75rem;
  color: #888;
}

.base-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0052ff;
}

/* Responsive */
@media (max-width: 768px) {
  #site-nav { padding: 0.75rem 1rem; }
  .nav-desktop { display: none; }
  .nav-hamburger { display: flex; }
  .mega-menu { display: none !important; }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
