/* variables.css — Design tokens: colors, spacing, typography, dark/light */

:root {
  /* Backgrounds */
  --bg-color: #000000;
  --panel-bg: #0a0a0a;
  --hover-bg: #111111;
  --header-bg: rgba(0, 0, 0, 0.85);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --input-bg: #111111;

  /* Text */
  --text-primary: #ededed;
  --text-muted: #888888;
  --accent: #ffffff;

  /* Colors */
  --primary-color: #ff4650;
  --secondary-color: #ff4650;
  --link-hover: #ff6b73;
  --favorite-color: #ff4650;
  --danger-color: #ff5555;

  /* Borders */
  --border-color: #333333;
  --scrollbar-thumb: #444;
  --scrollbar-thumb-hover: #666;

  /* Typography */
  --font-main: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --base-size: 16px;
  --line-height: 1.6;
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.25rem;   /* 20px */
  --text-xl: 1.5rem;    /* 24px */

  /* Spacing (4, 8, 12, 16, 32, 64, 128) */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-32: 32px;
  --spacing-64: 64px;
  --spacing-128: 128px;
  /* Aliases */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  /* Layout */
  --max-width: 1200px;
  --content-max-width: 800px;

  /* Transitions */
  --transition-fast: 0.15s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ─── Light Mode ─── */

:root[data-theme="light"] {
  --bg-color: #EFECE4;
  --panel-bg: #F7F3EC;
  --hover-bg: #E6E1D8;
  --header-bg: rgba(239, 236, 228, 0.85);
  --overlay-bg: rgba(60, 56, 50, 0.25);
  --input-bg: #FBF9F5;

  --text-primary: #403B36;
  --text-muted: #8A857D;
  --accent: #4A4540;

  --primary-color: #d93a43;
  --secondary-color: #d93a43;
  --link-hover: #e55960;
  --favorite-color: #d93a43;
  --danger-color: #C4453A;

  --border-color: #D1CBC1;
  --scrollbar-thumb: #C5BFB5;
  --scrollbar-thumb-hover: #AEA89E;

  --shadow-sm: 0 2px 8px rgba(30, 30, 28, 0.08);
  --shadow-md: 0 4px 16px rgba(30, 30, 28, 0.12);
  --shadow-lg: 0 8px 32px rgba(42, 41, 38, 0.2);
}
