/**
 * GameStop Medellín - CSS Variables (Design Tokens)
 * Version: 1.0
 * Date: 2025-10-27
 *
 * This file contains all the design system tokens as CSS custom properties.
 * Based on DESIGN-SYSTEM.md specifications.
 */

:root {
    /* ===================================
       COLOR PALETTE
    =================================== */

    /* Primary Colors */
    --primary-red: #E31937;        /* Brand red - CTAs, highlights */
    --primary-dark: #2C3E50;       /* Brand charcoal - text, headers */
    --primary-white: #FFFFFF;      /* Backgrounds, text on dark */

    /* Secondary Colors */
    --secondary-gray: #34495E;     /* Secondary text, borders */
    --light-gray: #ECF0F1;         /* Backgrounds, cards */
    --medium-gray: #95A5A6;        /* Disabled states, subtle text */

    /* Accent Colors (Gaming-inspired) */
    --accent-blue: #3498DB;        /* PlayStation blue - links, info */
    --accent-green: #2ECC71;       /* Success states, availability */
    --accent-orange: #E67E22;      /* Warnings, limited offers */
    --accent-purple: #9B59B6;      /* Special editions, premium items */

    /* Semantic Colors */
    --success: #2ECC71;            /* In stock, success messages */
    --warning: #F39C12;            /* Low stock warnings */
    --error: #E74C3C;              /* Out of stock, errors */
    --info: #3498DB;               /* Information, tips */

    /* Background & Overlays */
    --bg-primary: #FFFFFF;         /* Main background */
    --bg-secondary: #F8F9FA;       /* Alternate sections */
    --bg-dark: #1A252F;            /* Footer, dark sections */
    --overlay-dark: rgba(44, 62, 80, 0.9);   /* Modal overlays */
    --overlay-light: rgba(255, 255, 255, 0.95);

    /* Hover States */
    --primary-red-hover: #C91530;  /* Darker red for hover */
    --primary-dark-hover: #1A252F; /* Darker charcoal for hover */

    /* ===================================
       TYPOGRAPHY
    =================================== */

    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-headings: 'Poppins', 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;  /* For prices, SKUs */

    /* Type Scale - Desktop */
    --text-h1: 2.5rem;      /* 40px - Hero titles */
    --text-h2: 2rem;        /* 32px - Section headers */
    --text-h3: 1.5rem;      /* 24px - Subsections */
    --text-h4: 1.25rem;     /* 20px - Card titles */
    --text-h5: 1.125rem;    /* 18px - Small headers */

    /* Body Text */
    --text-base: 1rem;      /* 16px - Body text */
    --text-sm: 0.875rem;    /* 14px - Captions, labels */
    --text-xs: 0.75rem;     /* 12px - Fine print */

    /* Special Text Sizes */
    --text-price: 1.5rem;   /* 24px - Product prices */
    --text-cta: 1.125rem;   /* 18px - Button text */

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-black: 900;    /* For emphasis */

    /* Line Heights */
    --line-tight: 1.2;      /* Headings */
    --line-normal: 1.5;     /* Body text */
    --line-relaxed: 1.8;    /* Long-form content */

    /* Letter Spacing */
    --tracking-tight: -0.02em;   /* Large headings */
    --tracking-normal: 0;         /* Body text */
    --tracking-wide: 0.05em;      /* Uppercase labels */

    /* ===================================
       SPACING SYSTEM
    =================================== */

    /* Base unit: 4px (0.25rem) */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.5rem;    /* 24px */
    --space-6: 2rem;      /* 32px */
    --space-8: 3rem;      /* 48px */
    --space-10: 4rem;     /* 64px */
    --space-12: 6rem;     /* 96px */
    --space-16: 8rem;     /* 128px */

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;

    /* Section Padding */
    --section-padding-mobile: var(--space-8);    /* 48px */
    --section-padding-tablet: var(--space-10);   /* 64px */
    --section-padding-desktop: var(--space-12);  /* 96px */

    /* ===================================
       BORDERS & RADIUS
    =================================== */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Border Widths */
    --border-thin: 1px;
    --border-base: 2px;
    --border-thick: 3px;

    /* ===================================
       SHADOWS (Elevation)
    =================================== */

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);

    /* Colored Shadows */
    --shadow-red: 0 8px 16px rgba(227, 25, 55, 0.3);
    --shadow-focus: 0 0 0 3px rgba(227, 25, 55, 0.1);

    /* ===================================
       TRANSITIONS & ANIMATIONS
    =================================== */

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

    /* Animation Durations */
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;

    /* ===================================
       BREAKPOINTS (for reference in JS)
    =================================== */

    --breakpoint-xs: 0px;       /* Mobile */
    --breakpoint-sm: 640px;     /* Large mobile */
    --breakpoint-md: 768px;     /* Tablet */
    --breakpoint-lg: 1024px;    /* Desktop */
    --breakpoint-xl: 1280px;    /* Large desktop */
    --breakpoint-2xl: 1536px;   /* Extra large */

    /* ===================================
       Z-INDEX SCALE
    =================================== */

    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
    --z-toast: 700;
    --z-maximum: 9999;

    /* ===================================
       GRID CONFIGURATION
    =================================== */

    --grid-gap-sm: var(--space-4);  /* 16px */
    --grid-gap-md: var(--space-5);  /* 24px */
    --grid-gap-lg: var(--space-6);  /* 32px */

    /* ===================================
       COMPONENT-SPECIFIC TOKENS
    =================================== */

    /* Buttons */
    --btn-padding-x: 2rem;
    --btn-padding-y: 0.875rem;
    --btn-radius: var(--radius-md);
    --btn-font-size: var(--text-cta);
    --btn-font-weight: var(--weight-semibold);

    /* Cards */
    --card-padding: var(--space-4);
    --card-radius: var(--radius-lg);
    --card-shadow: var(--shadow-md);
    --card-shadow-hover: var(--shadow-lg);

    /* Forms */
    --input-padding-x: 1rem;
    --input-padding-y: 0.75rem;
    --input-border: var(--border-base);
    --input-radius: var(--radius-md);
    --input-font-size: var(--text-base);

    /* Header */
    --header-height-mobile: 80px;
    --header-height-desktop: 100px;
    --header-padding-x: var(--space-4);

    /* Footer */
    --footer-padding-y: var(--space-10);
    --footer-bg: var(--bg-dark);
    --footer-text: var(--light-gray);
}