/**
 * SCORIO Design System Tokens
 * Premium Country Club Aesthetic
 * Phase 1: Foundation
 */

:root {
  /* ============================================
     PREMIUM COUNTRY CLUB PALETTE
     ============================================ */
  
  /* Backgrounds - Deep Navy Hierarchy */
  --scorio-bg: #0a0f1a;
  --scorio-bg-elevated: #141b2d;
  --scorio-bg-card: #1e293b;
  
  /* Primary - Emerald (Action/Success) */
  --scorio-emerald: #059669;
  --scorio-emerald-light: #10b981;
  --scorio-emerald-dark: #047857;
  --scorio-emerald-glow: rgba(5, 150, 105, 0.3);
  
  /* Accent - Gold (Prestige/Score) */
  --scorio-gold: #fbbf24;
  --scorio-gold-light: #fcd34d;
  --scorio-gold-dark: #d97706;
  --scorio-gold-soft: rgba(251, 191, 36, 0.15);
  --scorio-gold-glow: rgba(251, 191, 36, 0.4);
  
  /* Tier Colors - Metallic System */
  --scorio-bronze: #b87333;
  --scorio-bronze-light: #cd7f32;
  --scorio-silver: #c0c0c0;
  --scorio-silver-light: #e5e7eb;
  --scorio-platinum: #e5e4e2;
  --scorio-diamond: #4fd1c5;
  
  /* Text Colors - Cream/Slate System */
  --scorio-cream: #fef3c7;
  --scorio-text: #f8fafc;
  --scorio-text-muted: #94a3b8;
  --scorio-text-subtle: #64748b;
  
  /* Semantic Colors */
  --scorio-success: #10b981;
  --scorio-success-soft: rgba(16, 185, 129, 0.15);
  --scorio-danger: #ef4444;
  --scorio-danger-soft: rgba(239, 68, 68, 0.15);
  --scorio-warning: #f59e0b;
  
  /* ============================================
     SPACING - LUXURY BREATHING ROOM
     ============================================ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  
  /* ============================================
     TYPOGRAPHY - ORIGINAL SCORIO FONTS
     ============================================ */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Font Sizes - Responsive Scale */
  --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: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* ============================================
     BORDERS & RADIUS
     ============================================ */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Border Colors */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-muted: rgba(255, 255, 255, 0.1);
  --border-default: rgba(255, 255, 255, 0.15);
  --border-emerald: rgba(5, 150, 105, 0.3);
  --border-gold: rgba(251, 191, 36, 0.3);
  
  /* ============================================
     SHADOWS - DEPTH HIERARCHY
     ============================================ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 30px rgba(251, 191, 36, 0.2);
  --shadow-gold-lg: 0 0 40px rgba(251, 191, 36, 0.3);
  --shadow-emerald: 0 0 20px rgba(5, 150, 105, 0.3);
  
  /* ============================================
     TRANSITIONS
     ============================================ */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;
  
  /* Easing Functions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  
  /* ============================================
     Z-INDEX SCALE
     ============================================ */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-popover: 400;
  --z-tooltip: 500;
}

/* ============================================
   GOOGLE FONTS IMPORT - ORIGINAL SCORIO FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================
   BASE STYLES
   ============================================ */
.scorio-root {
  font-family: var(--font-ui);
  background-color: var(--scorio-bg);
  color: var(--scorio-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Utilities */
.scorio-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--scorio-cream);
}

.scorio-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.scorio-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--scorio-text-muted);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 375px) {
  :root {
    --text-3xl: 1.75rem;
    --text-4xl: 2rem;
    --text-5xl: 2.5rem;
    --space-6: 20px;
    --space-8: 24px;
    --space-12: 32px;
  }
}
