/* PARAMANT shared navbar — paramantOS style
   Uses nav.nav selector to override per-page nav{} embedded styles */

nav.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(12,12,12,.97);
  border-bottom: 1px solid #242424;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

nav.nav .nav-logo {
  font-family: 'SF Mono','Fira Code','Cascadia Code',monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}
nav.nav .nav-logo .logo-para { color: #e8e8e8; }
nav.nav .nav-logo .logo-mant { color: #00ff41; }

nav.nav .nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Dropdown container */
nav.nav .nav-dropdown { position: relative; }

/* Top-level triggers: neutral, not green — green is reserved for hover/accent */
nav.nav .nav-dropdown-trigger {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  font-family: inherit;
  padding: .5rem .75rem;
  cursor: pointer;
  border-radius: 4px;
  transition: color .15s;
  white-space: nowrap;
}
nav.nav .nav-dropdown-trigger:hover,
nav.nav .nav-dropdown:hover .nav-dropdown-trigger { color: #ededed; }

/* Dropdown menu */
nav.nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: #181818;
  border: 1px solid #242424;
  border-radius: 6px;
  padding: .5rem 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  z-index: 200;
}
nav.nav .nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-divider {
  height: 1px;
  background: #242424;
  margin: .25rem 0;
  pointer-events: none;
  list-style: none;
}

/* Dropdown items: neutral by default, green on hover */
nav.nav .nav-dropdown-menu li a {
  display: block;
  padding: .5rem 1rem;
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
nav.nav .nav-dropdown-menu li a:hover {
  color: #00ff41;
  background: rgba(0,255,65,.06);
}

/* Direct standalone links */
nav.nav .nav-link {
  color: #888;
  font-size: 13px;
  padding: .5rem .75rem;
  text-decoration: none;
  border-radius: 4px;
  transition: color .15s;
  white-space: nowrap;
}
nav.nav .nav-link:hover { color: #ededed; }

/* Hamburger button — hidden on desktop */
nav.nav .nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
nav.nav .nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #888;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Mobile overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0c0c0c;
  padding: 2rem;
  z-index: 99;
  overflow-y: auto;
  flex-direction: column;
  gap: 2rem;
}
.nav-mobile.open { display: flex; }

.nav-mobile-group {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

/* Category labels: bright green — the only green in the mobile menu */
.nav-mobile-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #00ff41;
  margin-bottom: .25rem;
  font-family: 'SF Mono','Fira Code',monospace;
}

/* Mobile links: neutral */
.nav-mobile a {
  color: #aaa;
  text-decoration: none;
  font-size: 1.0625rem;
  padding: .5rem 0;
  border-bottom: 1px solid #1e1e1e;
  display: block;
  transition: color .15s;
}
.nav-mobile a:hover { color: #ededed; }
.nav-mobile-standalone {
  color: #aaa !important;
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: none !important;
}

/* Mobile breakpoint */
@media (max-width: 1023px) {
  nav.nav { padding: 0 1rem; }
  nav.nav .nav-links { display: none !important; }
  nav.nav .nav-hamburger { display: flex; }
}
