/* guide-base.css — Minimal CSS for static guide/cancel pages (no app UI) */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --bg-base:    #080d1a;
  --bg-panel:   #111827;
  --bg-raised:  #1e293b;
  --bg-hover:   #0f2744;
  --border:     #2a4a7a;
  --border-mid: #334155;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:   #96a8bc;
  --text-faint: #768ba6;
  --accent:     #38bdf8;
  --accent-btn: #0ea5e9;
  --amber:      #f59e0b;
  --green:      #4ade80;
  --red:        #f87171;
  --violet:     #818cf8;
  --radius-sm:  6px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --sidebar-w:  200px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Light mode overrides ───────────────────────────────── */
html[data-theme="light"] {
  --bg-base:    #f0f4f8;
  --bg-panel:   #ffffff;
  --bg-raised:  #e8edf4;
  --bg-hover:   #d8e4f0;
  --border:     #b0c4d8;
  --border-mid: #c8d8e8;
  --text:       #1a2332;
  --text-muted: #3d5166;
  --text-dim:   #4a6278;
  --text-faint: #556d88;
  --accent:     #026aa1;
  --accent-btn: #0369a1;
  --amber:      #b45309;
  --green:      #16a34a;
  --red:        #dc2626;
  --violet:     #4f46e5;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--font); background: var(--bg-base); color: var(--text); min-height: 100vh; display: flex; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
a { color: var(--accent); }

/* WCAG 2.2 AA — focus indicators */
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Layout ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 24px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-mark { color: var(--accent); flex-shrink: 0; display: flex; align-items: center; }
.sidebar-logo-text { color: var(--accent); font-weight: 800; font-size: 15px; letter-spacing: 2px; line-height: 1.1; }
.sidebar-tagline { display: block; font-size: 9px; color: var(--text-faint); letter-spacing: 1.5px; font-weight: 500; margin-top: 2px; }

.sidebar-nav { display: flex; flex-direction: column; margin-top: 8px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-dim);
  font-size: 13px;
  text-align: left;
  transition: color 0.15s, background 0.15s;
  border-left: 3px solid transparent;
  min-height: 44px;
  text-decoration: none;
}
.nav-item:hover  { color: var(--text); background: var(--bg-raised); }
.nav-item.active { color: var(--accent); background: var(--bg-hover); border-left-color: var(--accent); }

.nav-icon { display: flex; align-items: center; justify-content: center; width: 18px; flex-shrink: 0; }
.nav-icon svg { display: block; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-faint); line-height: 1.6; }

.main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; overflow-y: auto; }

.view { display: none; padding: 28px 32px; min-height: 100vh; }
.view.active { display: block; }

/* ── Typography ─────────────────────────────────────────── */
.page-title { font-size: 24px; font-weight: 700; color: var(--text); }
.page-sub   { color: var(--text-dim); font-size: 13px; margin-top: 2px; margin-bottom: 16px; }

/* ── Card ───────────────────────────────────────────────── */
.card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }

/* ── Beta badge ─────────────────────────────────────────── */
.beta-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: var(--amber);
  color: #000;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
}
html[data-theme="light"] .beta-badge { color: #fff; } /* #fff on #b45309 = 5.05:1 — WCAG AA ✓ */

/* ── Mobile sticky header ────────────────────────────────── */
.mobile-header { display: none; }
.mobile-header-logo { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.mobile-header-wordmark { font-size: 15px; font-weight: 800; letter-spacing: 2px; color: var(--accent); }
.mobile-header-page { font-size: 13px; color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  body { flex-direction: column; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .view { padding: 20px 16px; }
}

@media (max-width: 640px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    z-index: 20;
  }
  .main { padding-top: calc(56px + 16px); }
}
