/**
 * themes.css — Dark/Light mode CSS custom properties
 * 
 * Uses CSS custom properties (variables) on :root for dark mode (default)
 * and [data-theme="light"] attribute selector for light mode.
 * Respects the user's OS preference via prefers-color-scheme as a fallback.
 * 
 * Color palette inspired by GitHub's dark/light themes for a
 * developer-friendly aesthetic.
 */

/* ======================================================
   DEFAULT: Dark Mode (the natural terminal look)
   ====================================================== */
:root {
  /* -- Background layers -- */
  --bg-primary: #0d1117;        /* Main page background */
  --bg-secondary: #161b22;      /* Terminal window / card backgrounds */
  --bg-tertiary: #21262d;       /* Elevated surfaces, inputs */
  --bg-nav: rgba(13, 17, 23, 0.85); /* Navbar with transparency */

  /* -- Text -- */
  --text-primary: #c9d1d9;      /* Body text */
  --text-secondary: #8b949e;    /* Muted / secondary text */
  --text-heading: #e6edf3;      /* Headings, emphasis */

  /* -- Accent colors -- */
  --accent-blue: #58a6ff;       /* Links, prompt symbol, cursor */
  --accent-green: #3fb950;      /* Success, command output */
  --accent-red: #f85149;        /* Errors, terminal close button */
  --accent-yellow: #d29922;     /* Warnings, terminal minimize button */
  --accent-orange: #db6d28;     /* Highlights */
  --accent-purple: #bc8cff;     /* Tags, badges */

  /* -- Terminal-specific -- */
  --terminal-bg: #0d1117;       /* Terminal body background */
  --terminal-header: #161b22;   /* Terminal title bar */
  --terminal-border: #30363d;   /* Terminal / card borders */
  --cursor-color: #58a6ff;      /* Blinking cursor */
  --prompt-color: #3fb950;      /* $ prompt symbol */
  --command-color: #e6edf3;     /* Typed commands */
  --output-color: #8b949e;      /* Command output text */

  /* -- UI elements -- */
  --border-color: #30363d;      /* General borders */
  --shadow-color: rgba(0, 0, 0, 0.3); /* Box shadows */
  --scrollbar-thumb: #30363d;
  --scrollbar-track: #0d1117;

  /* -- Skill bar -- */
  --skill-bar-bg: #21262d;
  --skill-bar-fill: #58a6ff;

  /* -- Button -- */
  --btn-bg: #21262d;
  --btn-text: #c9d1d9;
  --btn-hover-bg: #30363d;
  --btn-accent-bg: #238636;
  --btn-accent-text: #ffffff;

  /* -- Font -- */
  --font-mono: 'Fira Code', 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* -- Transitions -- */
  --transition-speed: 0.3s;
  --transition-fn: ease;
}

/* ======================================================
   LIGHT MODE: Activated via data-theme attribute
   ====================================================== */
[data-theme="light"] {
  /* -- Background layers -- */
  --bg-primary: #f6f8fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f3f6;
  --bg-nav: rgba(246, 248, 250, 0.85);

  /* -- Text -- */
  --text-primary: #24292f;
  --text-secondary: #57606a;
  --text-heading: #1f2328;

  /* -- Accent colors -- */
  --accent-blue: #0969da;
  --accent-green: #1a7f37;
  --accent-red: #cf222e;
  --accent-yellow: #9a6700;
  --accent-orange: #bc4c00;
  --accent-purple: #8250df;

  /* -- Terminal-specific -- */
  --terminal-bg: #ffffff;
  --terminal-header: #f0f3f6;
  --terminal-border: #d0d7de;
  --cursor-color: #0969da;
  --prompt-color: #1a7f37;
  --command-color: #1f2328;
  --output-color: #57606a;

  /* -- UI elements -- */
  --border-color: #d0d7de;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --scrollbar-thumb: #d0d7de;
  --scrollbar-track: #f6f8fa;

  /* -- Skill bar -- */
  --skill-bar-bg: #e1e4e8;
  --skill-bar-fill: #0969da;

  /* -- Button -- */
  --btn-bg: #f0f3f6;
  --btn-text: #24292f;
  --btn-hover-bg: #d0d7de;
  --btn-accent-bg: #1a7f37;
  --btn-accent-text: #ffffff;
}

