/* Shared top nav bar for the Second Brain (base/). Injected by nav.js. */
.fj-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: 52px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #27272a;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  scrollbar-width: thin;
}
.fj-nav::-webkit-scrollbar { height: 4px; }
.fj-nav::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }
.fj-nav-brand {
  font-size: 1.1em;
  margin-right: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.fj-nav-tab {
  flex-shrink: 0;
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.86em;
  font-weight: 600;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.fj-nav-tab:hover { color: #e4e4e7; background: #18181b; }
.fj-nav-tab.active {
  color: #0a0a0f;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.fj-nav-spacer { flex: 1 0 12px; }
.fj-nav-logout {
  flex-shrink: 0;
  border: 1px solid #27272a;
  background: transparent;
  color: #71717a;
  font-size: 0.82em;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.fj-nav-logout:hover { color: #f87171; border-color: #ef4444; }

@media (max-width: 640px) {
  .fj-nav { height: 48px; padding: 0 10px; }
  .fj-nav-tab { padding: 6px 11px; font-size: 0.8em; }
}
