/* ============================================================
   nav.css — fixed navigation bar + theme toggle
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 62px;
  background: rgba(14, 15, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] nav {
  background: rgba(245, 243, 239, 0.92);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Theme toggle pill */
.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  user-select: none;
}

.theme-btn {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  flex-shrink: 0;
}

.theme-btn::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s, background 0.3s;
}

[data-theme="light"] .theme-btn::after {
  transform: translateX(16px);
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }
}
