/* ==========================================================================
   Gainz Pro Design Tokens
   A systematic approach to visual consistency
   Matches src/design-system/tokens/colors.ts
   ========================================================================== */

:root {
   /* ========================================================================
     Color Palette - Neon Obsidian
     ======================================================================== */

   /* Backgrounds (Dark to Light) */
   --bg-primary: #0a0a0a;
   /* App primary background */
   --bg-secondary: #121212;
   /* Cards, secondary surfaces */
   --bg-tertiary: #1a1a1a;
   /* Nested elements */
   --bg-elevated: #252525;
   /* Modals, sheets */

   /* Text */
   --text-primary: #F5F5F5;
   /* Main text */
   --text-secondary: #B8B8B8;
   /* Subtitles */
   --text-tertiary: #808080;
   /* Hints */
   --text-disabled: #505050;
   --text-inverse: #0a0a0a;

   /* Primary Brand (Neon Green) */
   --color-primary-base: #22C55E;
   --color-primary-light: #4ADE80;
   /* Used for text/icons on dark */
   --color-primary-dark: #16A34A;
   --color-primary-glow: rgba(34, 197, 94, 0.25);
   --color-primary-muted: rgba(34, 197, 94, 0.15);

   /* Semantic Colors */
   --color-success: #22C55E;
   --color-danger: #EF4444;
   --color-warning: #F59E0B;
   --color-info: #3B82F6;

   /* Muscle Colors */
   --muscle-chest: #FF6B6B;
   --muscle-back: #4ECDC4;
   --muscle-shoulders: #FFE66D;
   --muscle-arms: #95E1D3;
   --muscle-legs: #DDA0DD;
   --muscle-core: #F7DC6F;
   --muscle-glutes: #E8A0BF;
   --muscle-cardio: #FF8C42;

   /* Accent (Orange/Fire for streaks) */
   --color-accent: #f97316;
   --color-accent-glow: rgba(249, 115, 22, 0.2);

   /* Borders */
   --border-subtle: rgba(255, 255, 255, 0.06);
   --border-default: rgba(255, 255, 255, 0.12);
   --border-strong: rgba(255, 255, 255, 0.20);
   --border-focus: rgba(34, 197, 94, 0.5);

   /* Overlays */
   --overlay-light: rgba(255, 255, 255, 0.05);
   --overlay-medium: rgba(0, 0, 0, 0.5);
   --overlay-heavy: rgba(0, 0, 0, 0.8);

   /* Glass Effect */
   --glass-bg: rgba(20, 20, 20, 0.6);
   --glass-border: rgba(255, 255, 255, 0.08);
   --glass-blur: 10px;

   /* ========================================================================
     Typography Scale
     Base: 16px, Scale: 1.25 (Major Third)
     ======================================================================== */

   /* Font families */
   --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
   --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
   --font-mono: 'SF Mono', 'Fira Code', monospace;

   /* Font sizes - Mobile First 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 */
   --text-6xl: 3.75rem;
   /* 60px */
   --text-7xl: 4.5rem;
   /* 72px */

   /* Line heights */
   --leading-none: 1;
   --leading-tight: 1.1;
   --leading-snug: 1.3;
   --leading-normal: 1.6;
   --leading-relaxed: 1.75;
   --leading-loose: 2;

   /* Font weights */
   --font-normal: 400;
   --font-medium: 500;
   --font-semibold: 600;
   --font-bold: 700;
   --font-extrabold: 800;
   --font-black: 900;

   /* Letter spacing */
   --tracking-tighter: -0.03em;
   --tracking-tight: -0.02em;
   --tracking-normal: 0;
   --tracking-wide: 0.025em;
   --tracking-wider: 0.05em;

   /* ========================================================================
     Spacing Scale
     Base: 4px
     ======================================================================== */

   --space-0: 0;
   --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;
   --space-32: 8rem;

   /* ========================================================================
     Layout
     ======================================================================== */

   /* Container widths */
   --container-sm: 640px;
   --container-md: 768px;
   --container-lg: 1024px;
   --container-xl: 1200px;
   --container-2xl: 1400px;

   /* Content widths */
   --content-width: 1200px;
   --content-narrow: 720px;
   --content-wide: 1400px;

   /* Section spacing */
   --section-padding-y: var(--space-12);
   --section-padding-y-lg: var(--space-20);
   --section-gap: var(--space-12);

   /* Header */
   --header-height: 60px;

   /* ========================================================================
     Border Radius
     ======================================================================== */

   --radius-none: 0;
   --radius-sm: 4px;
   --radius-md: 8px;
   --radius-lg: 12px;
   --radius-xl: 16px;
   --radius-2xl: 20px;
   --radius-3xl: 24px;
   --radius-full: 9999px;

   /* ========================================================================
     Shadows
     ======================================================================== */

   --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
   --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
   --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
   --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
   --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
   --shadow-glow: 0 0 20px var(--color-primary-glow);
   --shadow-glow-lg: 0 0 40px var(--color-primary-glow);

   /* ========================================================================
     Transitions
     ======================================================================== */

   --transition-fast: 150ms ease;
   --transition-base: 200ms ease;
   --transition-slow: 300ms ease;
   --transition-slower: 500ms ease;

   /* Easing curves */
   --ease-in: cubic-bezier(0.4, 0, 1, 1);
   --ease-out: cubic-bezier(0, 0, 0.2, 1);
   --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
   --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

   /* ========================================================================
     Z-Index Scale
     ======================================================================== */

   --z-base: 0;
   --z-dropdown: 100;
   --z-sticky: 200;
   --z-fixed: 300;
   --z-modal-backdrop: 400;
   --z-modal: 500;
   --z-popover: 600;
   --z-tooltip: 700;

   /* ========================================================================
     Legacy Aliases (Restoring lost colors)
     ======================================================================== */
   --primary: var(--color-primary-base);
   --primary-glow: var(--color-primary-glow);
   --accent: var(--color-accent);
   --accent-glow: var(--color-accent-glow);

   --text: var(--text-primary);
   --text-2: var(--text-secondary);
   --text-3: var(--text-tertiary);

   --bg: var(--bg-primary);
   --surface: var(--bg-secondary);

   --border: var(--border-default);
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

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