/**
 * FIXISTORY DESIGN SYSTEM - DESIGN TOKENS
 * 
 * Core design tokens for the Fixistory platform.
 * Apple + Booksy inspired design system.
 * 
 * Version: 1.0.0
 * Created: 2026-02-02
 * 
 * Usage: This file should be loaded FIRST before any other CSS.
 *        All components and pages should reference these tokens via var().
 * 
 * Documentation: See docs/strategy/COMPLETE_DESIGN_SYSTEM_STRATEGY.md
 */

:root {
    /* ========== BRAND COLORS ========== */
    /* Primary - Purple gradient (Apple + Booksy inspired) */
    --color-primary-start: #667eea;
    --color-primary-end: #764ba2;
    --color-primary: #667eea;           /* Solid fallback */
    --color-primary-light: #8b9fee;
    --color-primary-dark: #5568d3;
    --color-primary-gradient: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
    
    /* Secondary - Blue */
    --color-secondary: #3b82f6;
    --color-secondary-light: #60a5fa;
    --color-secondary-dark: #2563eb;
    
    /* Success - Green */
    --color-success: #10b981;
    --color-success-light: #34d399;
    --color-success-dark: #059669;
    
    /* Warning - Orange */
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;
    --color-warning-dark: #d97706;
    
    /* Danger - Red */
    --color-danger: #ef4444;
    --color-danger-light: #f87171;
    --color-danger-dark: #dc2626;
    
    /* Info - Cyan */
    --color-info: #06b6d4;
    --color-info-light: #22d3ee;
    --color-info-dark: #0891b2;
    
    /* ========== NEUTRAL COLORS (Tailwind Gray Scale) ========== */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* ========== SEMANTIC COLORS (Text & Backgrounds) ========== */
    --color-text-primary: #111827;     /* Dark text */
    --color-text-secondary: #6b7280;   /* Gray text */
    --color-text-tertiary: #9ca3af;    /* Light gray */
    --color-text-inverse: #ffffff;     /* White text */
    --color-text: #1d1d1f;             /* Apple-style text (darker) */
    --color-text-muted: #6e6e73;       /* Apple-style muted text */
    
    --color-bg-primary: #ffffff;       /* White background */
    --color-bg-secondary: #f9fafb;     /* Light gray background */
    --color-bg-tertiary: #f3f4f6;      /* Lighter gray */
    --color-bg-light: #f5f5f7;         /* Apple-style light background */
    --color-bg-success: #d4edda;       /* Success background */
    --color-bg-warning: #fff3cd;       /* Warning background */
    --color-bg-danger: #f8d7da;        /* Danger background */
    --color-white: #ffffff;            /* Pure white */
    --color-dark: #343a40;             /* Dark color */
    
    /* ========== BORDER COLORS ========== */
    --color-border-light: #e5e7eb;     /* Light border (gray-200) */
    --color-border: #d1d5db;           /* Default border (gray-300) */
    --color-border-dark: #9ca3af;      /* Dark border (gray-400) */
    
    /* ========== BOOKING STATUS COLORS (Booksy-style) ========== */
    --color-status-hold: #f59e0b;
    --color-status-new: #3b82f6;
    --color-status-confirmed: #10b981;
    --color-status-in-progress: #8b5cf6;
    --color-status-completed: #059669;
    --color-status-cancelled: #dc2626;
    --color-status-rejected: #e83e8c;
    
    /* ========== URGENCY COLORS ========== */
    --color-urgency-high: #dc2626;
    --color-urgency-medium: #f59e0b;
    --color-urgency-low: #10b981;
    
    /* ========== FONT FAMILIES ========== */
    /* Apple-style: SF Pro Display for headlines, SF Pro Text for body */
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", 
                    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", 
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", 
                 Consolas, "Courier New", monospace;
    
    /* ========== FONT SIZES (Type Scale) ========== */
    --font-size-2xs: 0.625rem;    /* 10px */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */
    --font-size-7xl: 4.5rem;      /* 72px */
    
    /* ========== FONT WEIGHTS ========== */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* ========== LINE HEIGHTS ========== */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* ========== LETTER SPACING ========== */
    --letter-spacing-tight: -0.05em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    
    /* ========== SPACING SCALE (8px base) ========== */
    --spacing-0: 0;
    --spacing-px: 1px;
    --spacing-0-5: 0.125rem;    /* 2px */
    --spacing-1: 0.25rem;       /* 4px */
    --spacing-2: 0.5rem;        /* 8px */
    --spacing-3: 0.75rem;       /* 12px */
    --spacing-4: 1rem;          /* 16px */
    --spacing-5: 1.25rem;       /* 20px */
    --spacing-6: 1.5rem;        /* 24px */
    --spacing-7: 1.75rem;       /* 28px */
    --spacing-8: 2rem;          /* 32px */
    --spacing-10: 2.5rem;       /* 40px */
    --spacing-12: 3rem;         /* 48px */
    --spacing-14: 3.5rem;       /* 56px */
    --spacing-16: 4rem;         /* 64px */
    --spacing-20: 5rem;         /* 80px */
    --spacing-24: 6rem;         /* 96px */
    --spacing-32: 8rem;         /* 128px */
    
    /* ========== SEMANTIC SPACING (Aliases) ========== */
    --spacing-xs: var(--spacing-1);     /* 4px */
    --spacing-sm: var(--spacing-2);     /* 8px */
    --spacing-md: var(--spacing-4);     /* 16px */
    --spacing-lg: var(--spacing-6);     /* 24px */
    --spacing-xl: var(--spacing-8);     /* 32px */
    --spacing-2xl: var(--spacing-12);   /* 48px */
    --spacing-3xl: var(--spacing-16);   /* 64px */
    
    /* ========== SHADOW SCALE ========== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.3);
    
    /* ========== COLORED SHADOWS (for accent cards) ========== */
    --shadow-primary: 0 4px 16px rgba(102, 126, 234, 0.25);
    --shadow-success: 0 4px 16px rgba(16, 185, 129, 0.25);
    --shadow-warning: 0 4px 16px rgba(245, 158, 11, 0.25);
    --shadow-danger: 0 4px 16px rgba(239, 68, 68, 0.25);
    
    /* ========== ADDITIONAL BOX SHADOWS (Homepage styles) ========== */
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-card-elevated: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-primary-accent: 0 4px 16px rgba(0, 122, 255, 0.3);
    --shadow-primary-accent-hover: 0 8px 24px rgba(0, 122, 255, 0.4);
    --shadow-blue-accent: 0 8px 24px rgba(0, 122, 255, 0.12);
    
    /* ========== GRADIENT TOKENS ========== */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary-light: linear-gradient(135deg, #667eea 20%, #764ba2 100%);
    --gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cyan: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-primary-to-white: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    
    /* ========== COLOR ALIASES (for Apple UI) ========== */
    --color-apple-blue: #007aff;
    --color-apple-blue-dark: #0051d5;
    --color-border-apple: #e5e5ea;
    
    /* ========== INNER SHADOWS ========== */
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* ========== BORDER RADIUS ========== */
    --radius-none: 0;
    --radius-sm: 0.25rem;       /* 4px */
    --radius-base: 0.5rem;      /* 8px */
    --radius-md: 0.75rem;       /* 12px */
    --radius-lg: 1rem;          /* 16px */
    --radius-xl: 1.5rem;        /* 24px */
    --radius-2xl: 2rem;         /* 32px */
    --radius-full: 9999px;      /* Circle/Pill */
    
    /* ========== TRANSITIONS ========== */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;
    
    /* ========== EASING FUNCTIONS ========== */
    --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.68, -0.55, 0.265, 1.55);
    
    /* ========== Z-INDEX SCALE ========== */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-notification: 800;
    --z-max: 9999;
    
    /* ========== RESPONSIVE BREAKPOINTS ========== */
    --breakpoint-xs: 375px;     /* iPhone SE */
    --breakpoint-sm: 640px;     /* Mobile landscape */
    --breakpoint-md: 768px;     /* Tablet portrait */
    --breakpoint-lg: 1024px;    /* Tablet landscape / Small laptop */
    --breakpoint-xl: 1280px;    /* Desktop */
    --breakpoint-2xl: 1536px;   /* Large desktop */
}

/**
 * USAGE EXAMPLES:
 * 
 * Buttons:
 *   background: var(--color-primary);
 *   padding: var(--spacing-md) var(--spacing-lg);
 *   border-radius: var(--radius-md);
 *   transition: var(--transition-base);
 * 
 * Cards:
 *   background: var(--color-bg-primary);
 *   box-shadow: var(--shadow-md);
 *   border-radius: var(--radius-lg);
 * 
 * Text:
 *   color: var(--color-text-primary);
 *   font-family: var(--font-body);
 *   font-size: var(--font-size-base);
 *   line-height: var(--line-height-normal);
 */
