/*
 * css/layout.css
 * ─────────────────────────────────────────────────────────────
 * App shell: sidebar navigation and main content area.
 * Pages are hidden/shown by adding/removing .active via nav.js.
 * ─────────────────────────────────────────────────────────────
 */

/* ── App shell ── */
.app {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

/* Logo area at top of sidebar */
.logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.logo-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Section labels inside sidebar ("Tools", "Settings") */
.nav-section {
  font-size: 10px;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 24px 6px;
  font-family: 'DM Mono', monospace;
}

/* Individual nav links */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  user-select: none;
}
.nav-item:hover              { color: var(--text); background: var(--surface2); }
.nav-item.active             { color: var(--accent); border-left-color: var(--accent); background: rgba(200,240,96,0.06); font-weight: 500; }
.nav-icon                    { width: 16px; height: 16px; opacity: 0.7; }
.nav-item.active .nav-icon   { opacity: 1; }

/* ── Main content ── */
.main {
  flex: 1;
  padding: 36px 40px;
  max-width: 900px;
}

/* Pages are hidden by default; .active makes them visible */
.page        { display: none; }
.page.active { display: block; }

/* Page header typography */
.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  color: var(--text);
  margin-bottom: 4px;
}
.page-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
