/* ============================================
   LibreGTO Design System
   "Refined Warmth" - Dark theme with burnt orange accents
   Free & Open Source GTO Poker Trainer
   ============================================ */

:root {
  /* ========== Color Palette ========== */

  /* Primary - Burnt Orange Spectrum */
  --color-primary-50: #fff7ed;
  --color-primary-100: #ffedd5;
  --color-primary-200: #fed7aa;
  --color-primary-300: #fdba74;
  --color-primary-400: #fb923c;
  --color-primary-500: #f97316;
  --color-primary-600: #ea580c; /* Main accent */
  --color-primary-700: #c2410c;
  --color-primary-800: #9a3412;
  --color-primary-900: #7c2d12;

  /* Warm Neutral Grays (for surfaces) */
  --color-surface-base: #0f0d0c;      /* Deep charcoal - body background */
  --color-surface-raised: #1a1614;    /* Card backgrounds */
  --color-surface-elevated: #252220;  /* Modals, dropdowns */
  --color-surface-overlay: #302c29;   /* Hover states */
  --color-surface-border: #3d3835;    /* Borders */
  --color-surface-border-light: #524d49; /* Lighter borders */

  /* Text Colors */
  --color-text-primary: #fafaf9;      /* Off-white */
  --color-text-secondary: #a8a29e;    /* Warm gray */
  --color-text-tertiary: #78716c;     /* Muted */
  --color-text-inverse: #0f0d0c;      /* For light backgrounds */

  /* Semantic Colors */
  --color-success: #22c55e;
  --color-success-soft: rgba(34, 197, 94, 0.15);
  --color-error: #ef4444;
  --color-error-soft: rgba(239, 68, 68, 0.15);
  --color-warning: #f59e0b;
  --color-warning-soft: rgba(245, 158, 11, 0.15);
  --color-info: #3b82f6;
  --color-info-soft: rgba(59, 130, 246, 0.15);

  /* Card Suit Colors */
  --color-suit-hearts: #ef4444;
  --color-suit-diamonds: #ef4444;
  --color-suit-clubs: #fafaf9;
  --color-suit-spades: #fafaf9;

  /* Range Grid Colors */
  --color-range-open: #22c55e;
  --color-range-fold: var(--color-surface-raised);
  --color-range-call: #3b82f6;
  --color-range-raise: #ea580c;
  --color-range-highlight: rgba(234, 88, 12, 0.4);
  --color-range-hover: rgba(255, 255, 255, 0.08);

  /* ========== Typography ========== */

  /* Font Families */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* ========== Spacing ========== */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* ========== Border Radius ========== */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* ========== Shadows ========== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.35), 0 8px 10px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(234, 88, 12, 0.3);
  --shadow-glow-sm: 0 0 10px rgba(234, 88, 12, 0.2);

  /* ========== Transitions ========== */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* Specific transitions */
  --transition-colors: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  --transition-transform: transform var(--transition-base);
  --transition-opacity: opacity var(--transition-base);
  --transition-shadow: box-shadow var(--transition-base);

  /* ========== Z-Index Scale ========== */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-tooltip: 500;
  --z-toast: 600;

  /* ========== Layout ========== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* ========== Component Sizes ========== */

  /* Playing Cards */
  --card-width-sm: 40px;
  --card-height-sm: 56px;
  --card-width-md: 60px;
  --card-height-md: 84px;
  --card-width-lg: 80px;
  --card-height-lg: 112px;

  /* Buttons */
  --btn-height-sm: 32px;
  --btn-height-md: 40px;
  --btn-height-lg: 48px;

  /* Range Grid */
  --range-cell-size: 28px;
  --range-cell-size-compact: 22px;
  --range-gap: 2px;
}

/* ========== Dark Mode (default) ========== */
/* Already using dark theme as default */

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-slower: 0ms;
  }
}
