/* Container + navbar shell + logo (text variant) — extracted from the original style.css (lines 110-150) */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--navbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
[data-theme="dark"] .navbar {
  background: var(--navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  flex-shrink: 0;
}


/* Logo image variant, nav links, theme toggle — extracted from the original style.css (lines 166-238) */
/* S logo image — replaces the text logo-box */
.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  /* Invert in dark mode so the black mark stays visible */
}
[data-theme="dark"] .logo-img {
  filter: invert(1);
}
.logo-text { color: var(--text); }
.logo-text strong { font-weight: 800; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link svg.lucide { font-size: 15px; }
.nav-link:hover {
  color: var(--text);
  background: var(--card);
}
.nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * (var(--nav-h) / 2 - 14px));
  left: 50%;
  transform: translateX(-50%);
  width: 56%;
  height: 2px;
  background: var(--primary-grad);
  border-radius: 2px;
  animation: navUnderline .3s ease;
}
@keyframes navUnderline {
  from { width: 0; opacity: 0; }
  to   { width: 56%; opacity: 1; }
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.theme-btn {
  background: none;
  border: none;
  padding: 7px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 20px;
  display: flex;
  transition: color 0.2s, background 0.2s;
}
.theme-btn:hover { color: var(--text); background: var(--bg-2); }


/* Mobile hamburger button — extracted from the original style.css (lines 278-297) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* Navbar mobile-menu responsive (also covers notes/cta responsive at same breakpoint) — extracted from the original style.css (lines 748-772) */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 10px var(--px) 16px;
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-link.active::after { display: none; }
  .nav-inner { position: relative; }
  .notes-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-left { flex-direction: column; text-align: center; }
}


/* Sign-in CTA — replaces the old avatar dropdown — extracted from the original style.css (lines 1387-1410) */
/* ══════════════════════════════════════════════
   NAVBAR SIGN IN — replaces the old always-on fake
   avatar dropdown. No backend session exists yet,
   so the navbar shows a real "Sign In" CTA instead
   of pretending someone is logged in.
══════════════════════════════════════════════ */
.nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary-grad);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--r-full);
  box-shadow: 0 4px 14px rgba(124,92,255,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.nav-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,92,255,0.45);
  filter: brightness(1.05);
}


/* Progress icon-button in navbar — extracted from the original style.css (lines 1519-1540) */
/* ══════════════════════════════════════════════
   PROGRESS NAV LINK — icon button in navbar
══════════════════════════════════════════════ */
.nav-progress-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.nav-progress-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.nav-progress-btn svg.lucide { font-size: 17px; }

