/* =============================================================================
   GOTHWAD DESIGN SYSTEM — VARIABLES & TOKENS
   Clean Google Account palette: LIGHT default + DARK toggle (js/theme.js)
   NOTE: Preserves token names shared with legacy stylesheets so all pages
   inherit light and dark mode seamlessly without duplicate variables.
   ============================================================================= */

:root,
[data-theme='light'] {
  /* Light Theme (Google style) — DEFAULT */
  --bg: #ffffff;
  --bg-panel: #f8f9fa;      /* chips, sub-panels, hover surface */
  --bg-elevated: #ffffff;   /* elevated card surface bordered on light background */
  --bg-input: #ffffff;
  --bg-hover: #f1f3f4;

  /* Surfaces */
  --surface: #ffffff;       /* cards, dialogs, topbar */
  --chip: #f1f3f4;

  /* Borders (Google gray) */
  --border: #dadce0;
  --border-strong: #9aa0a6;

  /* Text (Google gray scale) */
  --text: #202124;
  --text-muted: #5f6368;
  --text-faint: #9aa0a6;

  /* Brand accent — Google blue */
  --accent: #1a73e8;
  --accent-hover: #1765cc;
  --accent-soft: rgba(26, 115, 232, 0.08);
  --accent-border: rgba(26, 115, 232, 0.35);
  --accent-on: #ffffff;     /* foreground label color on accent primary buttons */

  /* Status colors */
  --success: #188038;
  --success-soft: rgba(24, 128, 56, 0.1);
  --danger: #d93025;
  --danger-soft: rgba(217, 48, 37, 0.08);
  --warning: #ea8600;
  --warning-soft: rgba(234, 134, 0, 0.12);

  /* Shape — Material You */
  --radius: 16px;           /* cards */
  --radius-sm: 8px;         /* inputs, small elements */
  --radius-lg: 24px;        /* big cards / dialogs */
  --radius-pill: 100px;     /* buttons, avatars, search bar */
  --shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
  --shadow-soft: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);

  --font: 'Google Sans', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* Dark Theme — Google dark palette toggled via js/theme.js */
[data-theme='dark'] {
  --bg: #131314;
  --bg-panel: #1e1f20;
  --bg-elevated: #1e1f20;
  --bg-input: #131314;
  --bg-hover: #2d2f31;

  --surface: #1e1f20;
  --chip: #282a2c;

  --border: #444746;
  --border-strong: #747775;

  --text: #e3e3e3;
  --text-muted: #9aa0a6;
  --text-faint: #747775;

  --accent: #8ab4f8;
  --accent-hover: #aecbfa;
  --accent-soft: rgba(138, 180, 248, 0.12);
  --accent-border: rgba(138, 180, 248, 0.4);
  --accent-on: #062e6f;     /* high-contrast dark label on light-blue primary button */

  --success: #81c995;
  --success-soft: rgba(129, 201, 149, 0.12);
  --danger: #f28b82;
  --danger-soft: rgba(242, 139, 130, 0.12);
  --warning: #fdd663;
  --warning-soft: rgba(253, 214, 99, 0.12);

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 4px 8px 3px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.5);
}
