/* ══════════════════════════════════════
   Navigation
   ══════════════════════════════════════ */

/* ── Mobile top bar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: var(--bg-surface);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.topbar-logo {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.topbar-logo span { color: var(--accent); }

.hamburger {
  width: 34px;
  height: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
  background: none;
  transition: border-color 0.12s;
}

.hamburger:hover { border-color: var(--accent-dim); }

.hb-line {
  display: block;
  height: 1px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.2s;
}

.hb-line:nth-child(1) { width: 14px; }
.hb-line:nth-child(2) { width: 14px; }
.hb-line:nth-child(3) { width: 14px; }


/* ── Desktop top nav ── */
.desktop-nav {
  display: none;
  height: 56px;
  background: var(--bg-surface);
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.desktop-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
}

.desktop-logo {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  padding-right: 22px;
  flex-shrink: 0;
  text-decoration: none;
}

.desktop-logo span { color: var(--accent); }

.desktop-divider {
  width: 0.5px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.desktop-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 16px;
  flex: 1;
}

.desktop-link {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 6px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  border: 0.5px solid transparent;
  background: none;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
  text-decoration: none;
}

.desktop-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.desktop-link.active {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--accent-dim);
}


/* ── Full-screen overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-base);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
}

.overlay.open {
  transform: translateX(0);
}

.overlay-topbar {
  height: 52px;
  flex-shrink: 0;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.overlay-logo {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-primary);
}

.overlay-logo span { color: var(--accent); }

.close-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
  background: none;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-tertiary);
  transition: color 0.12s, border-color 0.12s;
}

.close-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-dim);
}

.nav-list {
  flex: 1;
  padding: 8px 20px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--bg-elevated);
  cursor: pointer;
  transition: opacity 0.1s;
  text-decoration: none;
}

.nav-item:last-child { border-bottom: none; }
.nav-item:active { opacity: 0.6; }

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bg-muted);
  flex-shrink: 0;
  transition: background 0.15s;
}

.nav-item.active .nav-dot { background: var(--accent); }

.nav-item-label {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-item.active .nav-item-label { color: var(--text-primary); }

.nav-item-arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--bg-muted);
}

.overlay-footer {
  padding: 16px 20px;
  border-top: 0.5px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}
