/* =========================================================
   Shared header styles
   Single source of truth for TechDocs header across pages.
   ----------------------------------------------------------
   Markup: <nav class="site-nav"> ... </nav>  (see _common_header.html)
   Position: fixed top-left, full width; the page reserves
   space via --site-nav-offset (set by common-header.js).
   ========================================================= */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  margin: 0;
  border: none;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(14, 15, 19, 0.92), rgba(14, 15, 19, 0.78));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
  transition: background .25s ease, box-shadow .25s ease;
}

.site-nav.scrolled {
  background: linear-gradient(180deg, rgba(14, 15, 19, 0.96), rgba(14, 15, 19, 0.9));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.site-nav .brand,
.site-nav a.brand {
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  background: none;
  -webkit-text-fill-color: #fff;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.nav-links a:not(.btn-primary) {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(226, 228, 238, 0.9);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav-links a:not(.btn-primary):hover {
  color: #bc50fbfb;
  background: rgba(188, 80, 251, 0.16);
}

.nav-links a.nav-active:not(.btn-primary) {
  color: #bc50fbfb;
  background: rgba(188, 80, 251, 0.20);
  box-shadow: inset 0 0 0 1px rgba(188, 80, 251, 0.35);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  color: #ede9fe;
  text-decoration: none;
  border: 1px solid rgba(188, 80, 251, 0.45);
  background: linear-gradient(135deg, rgba(188, 80, 251, 0.35), rgba(188, 80, 251, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(188, 80, 251, 0.15);
  transition: transform .2s ease, box-shadow .2s, border-color .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(188, 80, 251, 0.28);
  border-color: rgba(188, 80, 251, 0.55);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e4ee;
}

/* -------- Responsive -------- */
@media (max-width: 760px) {
  .site-nav { padding: 12px 14px; gap: 10px; }
  .site-nav .brand,
  .site-nav a.brand { font-size: 20px; }
  .nav-links { gap: 6px 10px; }
  .nav-links a:not(.btn-primary) { font-size: 12px; padding: 5px 7px; }
  .btn-primary { padding: 8px 14px; font-size: 11px; }
  .nav-hide-sm { display: none; }
}
