/* ============================================================
   nav.css — single source of truth for the app header chrome.
   Extracted verbatim from dashboard.html's inline header CSS
   (the canonical baseline). Injected markup lives in nav.js.
   Do NOT add page/content CSS here (nav-bar, filters, etc.).
   ============================================================ */

/* ── HEADER ── */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  text-decoration: none;
}
.logo .logo-get {
  color: var(--text-muted);
}
.logo .logo-sep {
  color: var(--text-faint, var(--text-muted));
}
.logo .logo-sifted {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* v1 compat alias — theme-init.js / auth.js look this up */
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hide-mobile {} /* shown by default, hidden in mobile @media */
.hide-desktop {
  display: none;
}

/* Icon-only header buttons */
.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.header-icon-btn:hover {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}
.header-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Admin/Feedback subtle text links */
.header-text-link {
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.header-text-link:hover {
  background: var(--bg-card);
}

/* Watchers unseen-alert dot (was an inline style on #watchNavBadge) */
.watch-nav-badge {
  display: none;
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--timely, #ef4444);
}

/* Active-state for the current page (new — not in any page today) */
.header-icon-btn.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border);
}
.header-text-link.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ── RESPONSIVE (single unified header breakpoint) ── */
@media (max-width: 768px) {
  .header {
    padding: 0 14px;
    height: 48px;
  }
  .header-text-link {
    display: none !important;
  }
  .hide-mobile {
    display: none !important;
  }
}
