/**
 * ============================================
 * CSS Variables - Centralized Design System
 * ============================================
 * 
 * This file contains all CSS custom properties (variables)
 * used throughout the theme. It serves as the single source
 * of truth for colors, spacing, typography, and other design tokens.
 * 
 * Last Updated: 2024
 * Version: 2.0.0
 */

:root {
    /* ============================================
       Color Palette
       ============================================ */
    
    /* Dark Grays */
    --color-gray-900: #0E0E0F;
    --color-gray-800: #1c1c1f;
    --color-gray-700: #212122;
    --color-gray-600: #242424;
    --color-gray-500: #1f2937;
    --color-gray-400: #111827;
    --color-gray-300: #1a1a1a;
    --color-gray-200: #64748b;
    --color-gray-100: #9ca3af;
    --color-gray-50: #f3f4f6;
    
    /* Light Grays */
    --color-slate-400: #94a3b8;
    --color-slate-300: #cbd5e1;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    
    /* Blues */
    --color-blue-700: #1d4ed8;
    --color-blue-600: #2563eb;
    --color-blue-500: #3b82f6;
    --color-blue-400: #60a5fa;
    --color-blue-100: #dbeafe;
    
    /* Purple/Magenta */
    --color-purple-600: #9333ea;
    --color-purple-700: #7e22ce;
    --color-pink-600: #db2777;
    --color-pink-700: #be185d;
    --color-magenta: #EC4899;
    
    /* Green (WhatsApp) */
    --color-green-600: #25D366;
    --color-green-700: #1ebe5d;
    --color-green-500: #22c55e;
    
    /* Social Media Colors */
    --color-facebook: #1877F2;
    --color-phone: #4169E1;
    
    /* White/Transparent */
    --color-white: #FFFFFF;
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-30: rgba(255, 255, 255, 0.3);
    
    /* Purple Transparent */
    --color-purple-transparent: #A199FF25;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f7;
    --bg-tertiary: #f9fafb;
    --bg-dark: var(--color-gray-500);
    --bg-darker: var(--color-gray-400);
    
    /* Text Colors */
    --text-primary: var(--color-gray-500);
    --text-secondary: var(--color-gray-200);
    --text-tertiary: var(--color-gray-100);
    --text-white: var(--color-white);
    
    /* Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: var(--color-gray-500);
    --border-focus: var(--color-purple-600);
    
    /* Shadow Colors */
    --shadow-sm: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
    --shadow-lg: rgba(0, 0, 0, 0.2);
    --shadow-xl: rgba(0, 0, 0, 0.25);
    
    /* ============================================
       Spacing System
       ============================================ */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    
    /* ============================================
       Typography
       ============================================ */
    --font-family-primary: 'Almarai', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    --font-family-heading: 'IBM Plex Sans Arabic', sans-serif;
    --font-family-mono: 'Courier New', monospace;
    
    --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-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    
    /* ============================================
       Border Radius
       ============================================ */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.25rem;    /* 20px */
    --radius-full: 9999px;    /* Full circle */
    
    /* ============================================
       Transitions
       ============================================ */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* ============================================
       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-floating: 900;
    
    /* ============================================
       Breakpoints (for reference)
       ============================================ */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* ============================================
       Component Specific
       ============================================ */
    
    /* Cover Cards */
    --cover-card-height: 128px;
    --cover-card-max-width: 512px;
    
    /* Modal */
    --modal-max-width: 32rem; /* 512px */
    --modal-backdrop: rgba(0, 0, 0, 0.5);
    
    /* Floating Buttons */
    --floating-btn-size: 56px;
    --floating-btn-gap: 12px;
    
    /* Product Cards */
    --product-card-shadow: 0 4px 15px var(--shadow-sm);
    --product-card-shadow-hover: 0 8px 20px var(--shadow-md);
    
    /* ============================================
       Hover Colors (Unified)
       ============================================ */
    --hover-primary: var(--color-purple-600);
    --hover-primary-dark: var(--color-purple-700);
    --hover-bg: rgba(147, 51, 234, 0.1);
    --hover-border: var(--color-purple-600);
    --hover-text: var(--color-purple-600);
    --hover-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
    
    /* ============================================
       Product Gallery Specific
       ============================================ */
    --pg-container-max-width: 1400px;
    --pg-hero-min-height: 500px;
    --pg-hero-min-height-mobile: 400px;
    
    --pg-btn-primary-gradient: linear-gradient(135deg, var(--color-purple-600) 0%, var(--color-purple-700) 100%);
    --pg-btn-primary-hover: linear-gradient(135deg, var(--color-purple-700) 0%, #6b21a8 100%);
    --pg-btn-view-gradient: linear-gradient(135deg, var(--color-purple-600) 0%, var(--color-magenta) 100%);
    --pg-btn-view-hover: linear-gradient(135deg, var(--color-purple-700) 0%, var(--color-pink-600) 100%);
    --pg-btn-blue-gradient: linear-gradient(135deg, var(--color-blue-600) 0%, var(--color-blue-700) 100%);
    --pg-btn-blue-hover: linear-gradient(135deg, var(--color-blue-700) 0%, #1e40af 100%);
    
    /* Shadows */
    --pg-shadow-primary: 0 4px 14px rgba(147, 51, 234, 0.4);
    --pg-shadow-primary-hover: 0 6px 20px rgba(147, 51, 234, 0.5);
    --pg-shadow-blue: 0 4px 14px rgba(37, 99, 235, 0.4);
    --pg-shadow-blue-hover: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Dark mode support (if needed in future) */
/* @media (prefers-color-scheme: dark) {
    :root {
        Can be extended for dark mode
    }
} */
