/* ==============================
   base.css — Variables, Reset, Base Styles
   ============================== */

/* ==============================
   CSS VARIABLES — DARK MODE DEFAULT
   ============================== */
:root {
  --bg-base: #0a0a0c;
  --bg-surface: #111113;
  --bg-card: #1c1c1e;
  --bg-card-hover: #2c2c2e;
  --bg-terminal: #0a0a0c;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);

  --text-primary: #e8eaf0;
  --text-secondary: #8b909e;
  --text-muted: #555b6a;
  --text-code: #a9b4c8;

  --accent: #4a6fa5;
  --accent-bright: #6b93cc;
  --accent-glow: rgba(48, 67, 105, 0.35);
  --accent-glow-strong: rgba(48, 67, 105, 0.55);

  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --purple: #7b8fb8;

  --nav-bg: rgba(13, 15, 18, 0.85);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 60px rgba(48, 67, 105, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-mono: 'JetBrains Mono', monospace;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-base: #f4f5f8;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2f7;
  --bg-terminal: #1a1e26;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);

  --text-primary: #0f1117;
  --text-secondary: #4a5063;
  --text-muted: #9ba3b5;
  --text-code: #a9b4c8;

  --accent: #304369;
  --accent-bright: #3d5488;
  --accent-glow: rgba(48, 67, 105, 0.15);
  --accent-glow-strong: rgba(48, 67, 105, 0.3);

  --nav-bg: rgba(244, 245, 248, 0.88);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 60px rgba(48, 67, 105, 0.12);
}

/* ==============================
   RESET + BASE
   ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-display);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

kbd {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--text-secondary);
}

.hl {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==============================
   NAVBAR SCROLL EFFECT
   ============================== */
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* ==============================
   GLASS PANEL
   ============================== */
.glass-panel {
  background: rgba(28, 28, 30, 0.78);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: 0 8px 48px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
}

[data-theme="light"] .glass-panel {
  background: rgba(255,255,255,0.78);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 48px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
}
