/* ── Shared nav — hydrosmp.com ─────────────────────────────────────────────
   CSS variables (--bg, --mono, etc.) are defined per-page in their <style>.
────────────────────────────────────────────────────────────────────────── */

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,9,15,0.88);
  gap: 16px;
}

/* ── Brand ── */
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--text);
  text-decoration: none; text-transform: uppercase; flex-shrink: 0;
}
.nav-brand img { width: 26px; height: 26px; object-fit: contain; }

/* ── Link group ── */
.nav-links {
  display: flex; align-items: center;
  gap: 2px; flex: 1; justify-content: center;
}

.nav-sep {
  width: 1px; height: 20px;
  background: var(--border);
  margin: 0 6px; flex-shrink: 0;
}

/* ── Individual link / button ── */
.nav-link {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 6px 10px; border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  background: none; cursor: pointer; font: inherit;
  line-height: 1;
}
.nav-link:hover   { color: var(--text); background: rgba(255,255,255,0.05); border-color: var(--border); }
.nav-link.active  { color: var(--blue); background: rgba(91,191,255,0.08); border-color: rgba(91,191,255,0.22); }

/* Discord CTA */
.nav-link.discord {
  color: var(--pink); background: rgba(201,122,240,0.08);
  border-color: rgba(201,122,240,0.25);
  padding: 6px 14px;
}
.nav-link.discord:hover {
  color: #fff; background: rgba(201,122,240,0.18);
  border-color: rgba(201,122,240,0.55);
  box-shadow: 0 0 14px rgba(201,122,240,0.2);
}

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

.nav-dropdown-arrow {
  font-size: 8px; opacity: 0.5;
  display: inline-block; transition: transform 0.2s;
}
.nav-dropdown-btn[aria-expanded="true"] .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: rgba(10,11,18,0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 8px;
  min-width: 168px; z-index: 200;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.nav-dropdown-panel.open { display: flex; flex-direction: column; gap: 2px; }

/* tiny label above dropdown items */
.nav-dropdown-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  padding: 6px 12px 4px;
}

.nav-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
}
.nav-dropdown-item:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-dropdown-item.active { color: var(--blue); background: rgba(91,191,255,0.08); }

.nav-dropdown-item-icon { font-size: 13px; flex-shrink: 0; opacity: 0.7; }

/* ── Mobile toggle ── */
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 7px;
  padding: 0; width: 40px; height: 40px;
  cursor: pointer; color: var(--text); font-size: 17px; line-height: 1;
  align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Mobile drawer ── */
.nav-drawer {
  display: none; flex-direction: column; gap: 2px;
  padding: 10px 14px 14px;
  background: rgba(8,9,15,0.97);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 56px; z-index: 99;
}
.nav-drawer.open { display: flex; }

.nav-drawer-section-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  padding: 10px 12px 4px;
}
.nav-drawer .nav-link {
  font-size: 13px; padding: 11px 14px;
  background: rgba(255,255,255,0.02); border-color: var(--border);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
