/* =====================================================
   CSS Variables - Anime Stream
   Dark theme with Arabic/RTL support
   ===================================================== */

:root {
    /* Color Palette */
    --color-primary: #e63946;
    --color-primary-dark: #c1121f;
    --color-primary-light: #ff6b6b;
    --color-secondary: #6c63ff;
    --color-secondary-dark: #5048e5;
    --color-accent: #ffd60a;
    --color-accent-dark: #ffc300;
    
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    --bg-overlay-light: rgba(0, 0, 0, 0.5);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-tertiary: #6c6c7c;
    --text-muted: #4a4a5a;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Anime Status Colors */
    --status-airing: #10b981;
    --status-finished: #6c63ff;
    --status-upcoming: #f59e0b;
    
    /* Rating Colors */
    --rating-gold: #ffd60a;
    --rating-high: #10b981;
    --rating-medium: #f59e0b;
    --rating-low: #ef4444;
    
    /* Border Colors */
    --border-primary: #2a2a3a;
    --border-secondary: #3a3a4a;
    --border-focus: var(--color-primary);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(230, 57, 70, 0.3);
    
    /* Typography */
    --font-arabic: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-english: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-slower: 500ms ease;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
    --z-tooltip: 700;
    --z-loading: 1000;
    
    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Header Height */
    --header-height: 70px;
    --header-height-mobile: 60px;
    
    /* Card Dimensions */
    --card-width: 200px;
    --card-height: 280px;
    --card-width-sm: 160px;
    --card-height-sm: 224px;
    
    /* Video Player */
    --player-controls-height: 50px;
    --player-progress-height: 4px;
}

/* Light Mode (optional) */
[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f3f5;
    --bg-overlay: rgba(255, 255, 255, 0.9);
    --bg-overlay-light: rgba(255, 255, 255, 0.7);
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-tertiary: #6c6c7c;
    --text-muted: #9ca3af;
    
    --border-primary: #e5e7eb;
    --border-secondary: #d1d5db;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}
