/* ─── Catppuccin Mocha Variables ─── */
:root,
[data-theme='mocha'] {
  color-scheme: dark;
  --select-arrow: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23bac2de%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  --ctp-rosewater: #f5e0dc;
  --ctp-flamingo: #f2cdcd;
  --ctp-pink: #f5c2e7;
  --ctp-mauve: #cba6f7;
  --ctp-red: #f38ba8;
  --ctp-maroon: #eba0ac;
  --ctp-peach: #fab387;
  --ctp-yellow: #f9e2af;
  --ctp-green: #a6e3a1;
  --ctp-teal: #94e2d5;
  --ctp-sky: #89dceb;
  --ctp-sapphire: #74c7ec;
  --ctp-blue: #89b4fa;
  --ctp-lavender: #b4befe;
  --ctp-text: #cdd6f4;
  --ctp-subtext1: #bac2de;
  --ctp-subtext0: #a6adc8;
  --ctp-overlay2: #9399b2;
  --ctp-overlay1: #7f849c;
  --ctp-overlay0: #6c7086;
  --ctp-surface2: #585b70;
  --ctp-surface1: #45475a;
  --ctp-surface0: #313244;
  --ctp-base: #1e1e2e;
  --ctp-mantle: #181825;
  --ctp-crust: #11111b;

  /* Semantic tokens */
  --bg-app: var(--ctp-base);
  --bg-sidebar: var(--ctp-mantle);
  --bg-card: var(--ctp-surface0);
  --bg-hover: var(--ctp-surface1);
  --bg-player: var(--ctp-crust);
  --bg-glass: rgba(30, 30, 46, 0.75);
  --accent: var(--ctp-mauve);
  --accent-dim: rgba(203, 166, 247, 0.15);
  --accent-glow: rgba(203, 166, 247, 0.3);
  --text-primary: var(--ctp-text);
  --text-secondary: var(--ctp-subtext1);
  --text-muted: var(--ctp-subtext0);
  --border: var(--ctp-surface1);
  --border-subtle: var(--ctp-surface0);
  --positive: var(--ctp-green);
  --warning: var(--ctp-yellow);
  --danger: var(--ctp-red);

  /* Semantic tokens added for the theme-store contract (B0): readable names that
     replace direct --ctp-* use in components. Defined here on :root so they
     resolve per-theme automatically (every theme sets --ctp-*); a theme can
     override any of them directly. See workdocs theme-store/b0-semantic-refactor. */
  --highlight: var(--ctp-yellow);
  --accent-2: var(--ctp-blue);
  --bg-deep: var(--ctp-crust);
  --bg-elevated: var(--ctp-surface2);
  --text-on-accent: var(--ctp-crust);

  /* Player readout colours — optional. Default to the standard text tones so
     nothing changes unless a theme overrides them (e.g. a coloured LCD-style
     track name). */
  --player-title: var(--text-primary);
  --player-artist: var(--text-secondary);
}

