/* ---------- theme variables (easy to add: one block per theme) ---------- */
:root, [data-theme="dark"] {
  --bg:#0e1113; --card:#1a1d21; --card2:#22262a; --border:#343536;
  --text:#d7dadc; --muted:#818384; --accent:#d93a00; --accent-text:#fff;
  --link:#4fbcff; --visited:#9c7cff; --quote:#6a6d6e; --code-bg:#272729;
  --vote:#ff4500; --line:#2a2d2f;
}
[data-theme="light"] {
  --bg:#f5f6f7; --card:#ffffff; --card2:#eef0f1; --border:#d0d3d6;
  --text:#1a1a1b; --muted:#7c7c7e; --accent:#d93a00; --accent-text:#fff;
  --link:#0a63be; --visited:#6b4bb8; --quote:#878a8c; --code-bg:#eceef0;
  --vote:#ff4500; --line:#e3e5e7;
}
[data-theme="old"] {
  --bg:#dae0e6; --card:#ffffff; --card2:#f6f7f8; --border:#ccc;
  --text:#1a1a1b; --muted:#7c7c7e; --accent:#0079d3; --accent-text:#fff;
  --link:#0079d3; --visited:#5b4a9e; --quote:#878a8c; --code-bg:#eff1f3;
  --vote:#ff4500; --line:#e5e5e5;
  font-family: Verdana, Geneva, sans-serif;
}
/* ---------- round 15 families (Master: "Add the themes dracula, all the
   gruvbox and all the catppuccin") — hex values are the OFFICIAL palettes:
   draculatheme.com/palette, morhetz/gruvbox color.table (dark + light,
   hard/medium/soft backgrounds), catppuccin.com/palette (4 flavors).
   Only the surface steps (#343746 dracula card) are interpolations where
   a family ships fewer surfaces than the UI needs. ---------- */
/* dracula: bg #282a36, current-line #44475a, fg #f8f8f2, comment #6272a4,
   cyan #8be9fd, pink #ff79c6, purple #bd93f9, red #ff5555 */
[data-theme="dracula"] {
  --bg:#282a36; --card:#343746; --card2:#44475a; --border:#44475a;
  --text:#f8f8f2; --muted:#6272a4; --accent:#bd93f9; --accent-text:#282a36;
  --link:#8be9fd; --visited:#ff79c6; --quote:#6272a4; --code-bg:#21222c;
  --vote:#ff5555; --line:#44475a;
}
/* gruvbox dark — bg0 switches hard/medium/soft, the rest is the palette:
   bg1 #3c3836, bg2 #504945, bg3 #665c54, fg1 #ebdbb2, fg4 #a89984,
   bright: blue #83a598, purple #d3869b, red #fb4934, orange #fe8019,
   gray #928374 */
[data-theme="gruvbox-dark-hard"] {
  --bg:#1d2021; --card:#3c3836; --card2:#504945; --border:#665c54;
  --text:#ebdbb2; --muted:#a89984; --accent:#fe8019; --accent-text:#282828;
  --link:#83a598; --visited:#d3869b; --quote:#928374; --code-bg:#32302f;
  --vote:#fb4934; --line:#504945;
}
[data-theme="gruvbox-dark"] {
  --bg:#282828; --card:#3c3836; --card2:#504945; --border:#665c54;
  --text:#ebdbb2; --muted:#a89984; --accent:#fe8019; --accent-text:#282828;
  --link:#83a598; --visited:#d3869b; --quote:#928374; --code-bg:#32302f;
  --vote:#fb4934; --line:#504945;
}
[data-theme="gruvbox-dark-soft"] {
  --bg:#32302f; --card:#3c3836; --card2:#504945; --border:#665c54;
  --text:#ebdbb2; --muted:#a89984; --accent:#fe8019; --accent-text:#282828;
  --link:#83a598; --visited:#d3869b; --quote:#928374; --code-bg:#282828;
  --vote:#fb4934; --line:#504945;
}
/* gruvbox light — bg0 hard #f9f5d7 / medium #fbf1c7 / soft #f2e5bc; the
   light-mode accent set: blue #076678, purple #8f3f71, red #9d0006,
   orange #af3a03, gray #928374, fg1 #3c3836, fg4 #7c6f64 */
[data-theme="gruvbox-light-hard"] {
  --bg:#f9f5d7; --card:#ebdbb2; --card2:#d5c4a1; --border:#bdae93;
  --text:#3c3836; --muted:#7c6f64; --accent:#af3a03; --accent-text:#fbf1c7;
  --link:#076678; --visited:#8f3f71; --quote:#928374; --code-bg:#d5c4a1;
  --vote:#9d0006; --line:#d5c4a1;
}
[data-theme="gruvbox-light"] {
  --bg:#fbf1c7; --card:#ebdbb2; --card2:#d5c4a1; --border:#bdae93;
  --text:#3c3836; --muted:#7c6f64; --accent:#af3a03; --accent-text:#fbf1c7;
  --link:#076678; --visited:#8f3f71; --quote:#928374; --code-bg:#d5c4a1;
  --vote:#9d0006; --line:#d5c4a1;
}
[data-theme="gruvbox-light-soft"] {
  --bg:#f2e5bc; --card:#ebdbb2; --card2:#d5c4a1; --border:#bdae93;
  --text:#3c3836; --muted:#7c6f64; --accent:#af3a03; --accent-text:#fbf1c7;
  --link:#076678; --visited:#8f3f71; --quote:#928374; --code-bg:#d5c4a1;
  --vote:#9d0006; --line:#d5c4a1;
}
/* catppuccin — one mapping across the 4 flavors: bg=mantle, card=base,
   card2=surface0, border/line=surface1, code-bg=crust, muted=subtext0,
   quote=overlay0, accent=mauve, link=blue, vote=red; visited=pink on the
   dark flavors, maroon #e64553 on latte (pink is too pale on light). */
[data-theme="catppuccin-latte"] {
  --bg:#e6e9ef; --card:#eff1f5; --card2:#ccd0da; --border:#bcc0cc;
  --text:#4c4f69; --muted:#6c6f85; --accent:#8839ef; --accent-text:#eff1f5;
  --link:#1e66f5; --visited:#e64553; --quote:#9ca0b0; --code-bg:#dce0e8;
  --vote:#d20f39; --line:#bcc0cc;
}
[data-theme="catppuccin-frappe"] {
  --bg:#292c3c; --card:#303446; --card2:#414559; --border:#51576d;
  --text:#c6d0f5; --muted:#a5adce; --accent:#ca9ee6; --accent-text:#303446;
  --link:#8caaee; --visited:#f4b8e4; --quote:#737994; --code-bg:#232634;
  --vote:#e78284; --line:#51576d;
}
[data-theme="catppuccin-macchiato"] {
  --bg:#1e2030; --card:#24273a; --card2:#363a4f; --border:#494d64;
  --text:#cad3f5; --muted:#a5adcb; --accent:#c6a0f6; --accent-text:#24273a;
  --link:#8aadf4; --visited:#f5bde6; --quote:#6e738d; --code-bg:#181926;
  --vote:#ed8796; --line:#494d64;
}
[data-theme="catppuccin-mocha"] {
  --bg:#181825; --card:#1e1e2e; --card2:#313244; --border:#45475a;
  --text:#cdd6f4; --muted:#a6adc8; --accent:#cba6f7; --accent-text:#1e1e2e;
  --link:#89b4fa; --visited:#f5c2e7; --quote:#6c7086; --code-bg:#11111b;
  --vote:#f38ba8; --line:#45475a;
}
[data-theme="nord"] {
  --bg:#2e3440; --card:#3b4252; --card2:#434c5e; --border:#4c566a;
  --text:#eceff4; --muted:#9aa5b6; --accent:#88c0d0; --accent-text:#2e3440;
  --link:#8fbcbb; --visited:#b48ead; --quote:#7b88a1; --code-bg:#434c5e;
  --vote:#bf616a; --line:#4c566a;
}
[data-theme="cappucino"] {
  --bg:#2b211c; --card:#3a2d26; --card2:#46362e; --border:#5a463b;
  --text:#f2e6da; --muted:#b09a88; --accent:#e0a878; --accent-text:#2b211c;
  --link:#d4a5a5; --visited:#c08585; --quote:#9c8776; --code-bg:#46362e;
  --vote:#e07856; --line:#4a3930;
}
