/* ── site-wide top nav ─────────────────────────────────────────
   Shared by profile.php and any inner page.
   Requires: --orange, --text, --text-dim from the host page's :root
             (or falls back to the values defined here).
──────────────────────────────────────────────────────────────── */

:root {
  --nav-orange:   #ff6e0a;
  --nav-text:     #e8e8f2;
  --nav-text-dim: #7878a0;
}

.site-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 300;
  background: rgba(9,9,13,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── logo ── */
.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--nav-text, #e8e8f2);
  text-decoration: none;
  letter-spacing: -0.025em;
  flex-shrink: 0;
  margin-right: 36px;
}
.nav-logo span { color: var(--nav-orange, #ff6e0a); }

/* ── center links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(232,232,242,0.50);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover {
  color: rgba(232,232,242,0.90);
  background: rgba(255,255,255,0.06);
}
.nav-link.is-active {
  color: var(--nav-orange, #ff6e0a);
}
.nav-link.is-active:hover {
  background: rgba(255,110,10,0.08);
}

/* ── right auth cluster ── */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-username {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(232,232,242,0.75);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-username:hover {
  color: var(--nav-text, #e8e8f2);
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.05);
}
.nav-username.is-active {
  color: var(--nav-orange, #ff6e0a);
  border-color: rgba(255,110,10,0.25);
}

.nav-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(232,232,242,0.55);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-action:hover {
  color: var(--nav-text, #e8e8f2);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}

.nav-action--primary {
  background: var(--nav-orange, #ff6e0a);
  color: #fff;
  border-color: transparent;
}
.nav-action--primary:hover {
  filter: brightness(1.12);
  color: #fff;
  background: var(--nav-orange, #ff6e0a);
  border-color: transparent;
}

/* ── mobile: hide center links below 600px ── */
@media (max-width: 599px) {
  .nav-links { display: none; }
  .nav-logo  { margin-right: auto; }
}
