/* theme.css — PokerBlubble design tokens: type scale, spacing, casino palette */

:root {
  --font-scale: 1.1;

  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  /* 4px spacing system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 160ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Boska', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --content-default: 880px;
  --content-wide: 1120px;
}

/* ---------- DARK MODE (default — dim casino felt) ---------- */
:root,
[data-theme='dark'] {
  --color-bg: #0d201a;
  --color-surface: #12291f;
  --color-surface-2: #163427;
  --color-surface-offset: #1a3a2c;
  --color-surface-offset-2: #1f4433;
  --color-surface-dynamic: #234d3a;
  --color-divider: #24503c;
  --color-border: #2c5b44;

  --color-text: #eef0e6;
  --color-text-muted: #a9bdae;
  --color-text-faint: #71897a;
  --color-text-inverse: #0d201a;

  /* Brass / gold accent */
  --color-primary: #d3a339;
  --color-primary-hover: #e8ba50;
  --color-primary-active: #b8872a;
  --color-primary-highlight: #3a3521;
  --color-on-primary: #17130a;

  --color-success: #6fae5c;
  --color-success-highlight: #1c3322;
  --color-warning: #d99a3f;
  --color-warning-highlight: #3a2e18;
  --color-error: #d3675c;
  --color-error-highlight: #3a2220;

  --color-felt-red: #a23f3f;
  --color-mahogany: #3a2418;
  --color-mahogany-2: #4a2f20;

  /* Suit ink: true card-red, and an ivory “black” that stays readable on felt. */
  --color-suit-red: #e44538;
  --color-suit-black: #f3f1e8;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
  color-scheme: dark;
}

/* ---------- LIGHT MODE (warm cream / parchment) ---------- */
[data-theme='light'] {
  --color-bg: #f4ecd8;
  --color-surface: #fbf6ea;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ede1c3;
  --color-surface-offset-2: #e5d6b0;
  --color-surface-dynamic: #dcc99a;
  --color-divider: #dccba0;
  --color-border: #cdb886;

  --color-text: #23291f;
  --color-text-muted: #5b5e46;
  --color-text-faint: #8c8a6d;
  --color-text-inverse: #fbf6ea;

  /* Deep ink-green accent (same brass/green family, inverted emphasis) */
  --color-primary: #0f5c3d;
  --color-primary-hover: #0c4a31;
  --color-primary-active: #093a26;
  --color-primary-highlight: #d9e6d4;
  --color-on-primary: #fbf6ea;

  --color-success: #2e7d32;
  --color-success-highlight: #dcedd8;
  --color-warning: #a06616;
  --color-warning-highlight: #f1e0bd;
  --color-error: #a4342a;
  --color-error-highlight: #f2dad6;

  --color-felt-red: #8f332c;
  --color-mahogany: #6b3f28;
  --color-mahogany-2: #8a5636;

  --color-suit-red: #c1281c;
  --color-suit-black: #16181c;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 90 / 0.08);
  --shadow-md: 0 6px 18px oklch(0.2 0.02 90 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 90 / 0.14);
  color-scheme: light;
}
