/* ==========================================================================
   steamtradesrep — Central Design Tokens (Dark Base + Light Theme)
   Customize colors, typography, and spacing here without touching HTML,
   JavaScript, or the database.
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;

  /* Background colors */
  --bg-page: #23272c;
  --bg-header-top: #2b3036;
  --bg-header: #1d2024;
  --bg-card: #1d2126;
  --bg-card-hover: #252a30;
  --bg-glass: rgba(24, 29, 36, 0.78);
  --bg-input: #171a1e;
  --bg-footer: #1c1f23;
  --bg-modal: #21252b;
  --bg-subtle: rgba(0, 0, 0, 0.22);
  --bg-snippet: rgba(0, 0, 0, 0.18);
  --bg-table-head: rgba(0, 0, 0, 0.2);
  --bg-code: #121518;
  --text-code: #a9d1f0;
  --avatar-bg: #14171a;
  --accent-amber: #f0b232;
  --accent-cyan: #4fc3f7;
  --top-trim-gradient: linear-gradient(90deg, #3b82f6 0%, #38bdf8 30%, #4ade80 68%, #f0b232 100%);
  --brand-rep-gradient: linear-gradient(120deg, #8cd149 0%, #4fd1c5 100%);

  /* Homepage upper hero subtle CS tactical motif */
  --hero-gradient: radial-gradient(ellipse 85% 75% at 50% -10%, rgba(255, 255, 255, 0.06) 0%, rgba(120, 185, 230, 0.05) 38%, rgba(35, 39, 44, 0) 76%),
    linear-gradient(180deg, #282e36 0%, #242930 55%, var(--bg-page) 100%);
  --hero-img-opacity: 0.28;
  --hero-img-filter: saturate(0.95) brightness(1.05);
  --hero-img-blend: normal;
  --hero-sheen: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(35, 39, 44, 0.45) 0%, rgba(35, 39, 44, 0) 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(35, 39, 44, 0) 40%, var(--bg-page) 100%);

  /* Borders & dividers */
  --border-subtle: #31363d;
  --border-strong: #3f4650;
  --row-divider: rgba(255, 255, 255, 0.06);
  --footer-divider: rgba(255, 255, 255, 0.08);

  /* Text colors */
  --text-main: #d8dee6;
  --text-bright: #f2f5f8;
  --text-muted: #8b949e;
  --text-accent: #5fa8d3;
  --text-link: #6cb8e6;
  --footer-link: #b7c0ca;
  --footer-strong: #d0d7de;

  /* Buttons */
  --btn-bg: #2f353d;
  --btn-hover: #3a414b;

  /* Brand & status colors */
  --steam-green: #5b8c2a;
  --steam-green-hover: #6da335;
  --rep-pos-bg: #5a8f28;
  --rep-pos-bg-dark: #3f6b1c;
  --rep-pos-text: #8cd149;
  --rep-neg-bg: #9a2f2f;
  --rep-neg-bg-dark: #752222;
  --rep-neg-text: #f06a6a;
  --check-ok: #78c850;
  --check-warn: #e05252;

  /* Notices & shadows */
  --notice-info-bg: rgba(95, 168, 211, 0.12);
  --notice-info-border: rgba(95, 168, 211, 0.35);
  --notice-info-text: #bfe0f5;
  --notice-err-bg: rgba(154, 47, 47, 0.2);
  --notice-err-border: rgba(240, 106, 106, 0.45);
  --notice-err-text: #ffb8b8;
  --notice-ok-bg: rgba(90, 143, 40, 0.2);
  --notice-ok-border: rgba(140, 209, 73, 0.45);
  --notice-ok-text: #c9f29e;
  --shadow-search: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-modal: 0 18px 48px rgba(0, 0, 0, 0.55);

  /* Typography & layout */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --max-width: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;

  /* Background colors */
  --bg-page: #f1f4f8;
  --bg-header-top: #ffffff;
  --bg-header: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f9fc;
  --bg-glass: rgba(255, 255, 255, 0.84);
  --bg-input: #f8fafc;
  --bg-footer: #e7ecf2;
  --bg-modal: #ffffff;
  --bg-subtle: rgba(15, 23, 42, 0.045);
  --bg-snippet: rgba(15, 23, 42, 0.04);
  --bg-table-head: rgba(15, 23, 42, 0.045);
  --bg-code: #edf2f7;
  --text-code: #1f4e78;
  --avatar-bg: #e2e8f0;
  --accent-amber: #c7830b;
  --accent-cyan: #0284c7;
  --top-trim-gradient: linear-gradient(90deg, #2563eb 0%, #0ea5e9 32%, #16a34a 68%, #d97706 100%);
  --brand-rep-gradient: linear-gradient(120deg, #3a7514 0%, #0d9488 100%);

  /* Homepage upper hero subtle CS tactical motif (light mode) */
  --hero-gradient: radial-gradient(ellipse 85% 75% at 50% -10%, rgba(255, 255, 255, 0.96) 0%, rgba(219, 234, 248, 0.52) 45%, rgba(241, 244, 248, 0) 80%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 55%, var(--bg-page) 100%);
  --hero-img-opacity: 0.2;
  --hero-img-filter: invert(0.92) hue-rotate(180deg) saturate(0.75) contrast(1.08);
  --hero-img-blend: multiply;
  --hero-sheen: radial-gradient(ellipse 58% 70% at 50% 45%, rgba(245, 248, 252, 0.65) 0%, rgba(245, 248, 252, 0) 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(241, 244, 248, 0) 40%, var(--bg-page) 100%);

  /* Borders & dividers */
  --border-subtle: #d6dde6;
  --border-strong: #bfc9d6;
  --row-divider: rgba(15, 23, 42, 0.07);
  --footer-divider: rgba(15, 23, 42, 0.1);

  /* Text colors */
  --text-main: #2d3748;
  --text-bright: #111827;
  --text-muted: #5a6573;
  --text-accent: #246da1;
  --text-link: #1c6ca3;
  --footer-link: #3b4654;
  --footer-strong: #1e293b;

  /* Buttons */
  --btn-bg: #e7ecf2;
  --btn-hover: #dbe2eb;

  /* Brand & status colors */
  --steam-green: #538225;
  --steam-green-hover: #61962d;
  --rep-pos-bg: #518423;
  --rep-pos-bg-dark: #3b6319;
  --rep-pos-text: #3a7514;
  --rep-neg-bg: #a33232;
  --rep-neg-bg-dark: #7d2323;
  --rep-neg-text: #c22e2e;
  --check-ok: #4ea52b;
  --check-warn: #d43f3f;

  /* Notices & shadows */
  --notice-info-bg: rgba(36, 109, 161, 0.09);
  --notice-info-border: rgba(36, 109, 161, 0.3);
  --notice-info-text: #1b5278;
  --notice-err-bg: rgba(194, 46, 46, 0.09);
  --notice-err-border: rgba(194, 46, 46, 0.35);
  --notice-err-text: #992222;
  --notice-ok-bg: rgba(58, 117, 20, 0.1);
  --notice-ok-border: rgba(58, 117, 20, 0.35);
  --notice-ok-text: #2a5a0d;
  --shadow-search: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-modal: 0 18px 48px rgba(15, 23, 42, 0.22);
}
