/* AI Learning Hub — base styles */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a14;
  --bg-elev: #11111e;
  --bg-card: #15152433;
  --border: #ffffff14;
  --border-strong: #ffffff22;
  --text: #f0eef5;
  --text-dim: #a8a4b8;
  --text-faint: #6e6a82;
  --accent: oklch(0.68 0.18 290);
  --accent-soft: oklch(0.68 0.18 290 / 0.15);
  --accent-2: oklch(0.78 0.13 180);
  --warm: oklch(0.78 0.14 60);
  --rose: oklch(0.72 0.16 20);
  --teal: oklch(0.74 0.13 180);
  --amber: oklch(0.78 0.14 70);
  --sky: oklch(0.74 0.13 240);
  --violet: oklch(0.68 0.18 290);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Fraunces', Georgia, serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle ambient glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 80% -10%, oklch(0.68 0.18 290 / 0.10), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, oklch(0.74 0.13 180 / 0.06), transparent 60%);
  z-index: 0;
}

#app { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.display { font-family: var(--display); font-style: italic; font-weight: 500; }
.kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: #ffffff08;
  color: var(--text-dim);
}

/* Light theme override */
body.theme-light {
  --bg: #faf9f5;
  --bg-elev: #ffffff;
  --bg-card: #00000005;
  --border: #00000010;
  --border-strong: #00000018;
  --text: #1a1a24;
  --text-dim: #555068;
  --text-faint: #8a8598;
}
body.theme-light::before {
  background:
    radial-gradient(900px 500px at 80% -10%, oklch(0.68 0.18 290 / 0.06), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, oklch(0.74 0.13 180 / 0.04), transparent 60%);
}

/* Density */
body.density-compact { --pad-y: 64px; }
body:not(.density-compact) { --pad-y: 96px; }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.divider { height: 1px; background: var(--border); width: 100%; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: #ffffff08; border-color: #ffffff44; }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: white; }
.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover { filter: brightness(1.1); }
.btn-ghost { border-color: transparent; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(2px,-3px); } }
.fade-up { animation: fadeUp 0.5s ease both; }

/* Section */
section.block { padding: var(--pad-y) 0; position: relative; }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
