/*
 * ContentKit CSS Variables (Design Tokens)
 * 
 * This file contains all CSS custom properties used across the site.
 * Include this file when using component partials outside of main.css context.
 * 
 * Usage: <link rel="stylesheet" href="{% static 'css/components/_variables.css' %}">
 */

:root {
    /* Color Palette - Orange & Purple accent */
    --color-primary: #e67e22;
    --color-primary-light: #f39c12;
    --color-primary-dark: #d35400;
    --color-secondary: #9b59b6;
    --color-secondary-light: #a569bd;
    --color-secondary-dark: #7d3c98;
    
    /* Semantic Colors */
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-error: #e74c3c;
    --color-info: #3498db;
    
    /* Dark Mode (Default) */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --bg-card: #1f2937;
    --bg-input: #2d3748;
    
    --text-primary: #f8f9fa;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #1a1a2e;
    
    --border-color: #374151;
    --border-light: #4b5563;
    
    /* Links */
    --link-color: #f39c12;
    --link-hover: #e67e22;
    --link-visited: #a569bd;
    --link-external: #3498db;
    
    /* Typography */
    --font-family-base: 'Atkinson Hyperlegible', 'Segoe UI', 'SF Pro Text', 'BBC Reith Sans', Verdana, system-ui, -apple-system, sans-serif;
    --font-family-heading: 'Atkinson Hyperlegible', 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    --line-height-base: 1.7;
    --line-height-heading: 1.3;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Focus ring for accessibility */
    --focus-ring: 0 0 0 3px rgba(230, 126, 34, 0.5);
    --focus-ring-offset: 2px;
    
    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-inverse: #f8f9fa;
    
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    
    --link-color: #d35400;
    --link-hover: #e67e22;
    --link-visited: #7d3c98;
    
    --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 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* High Contrast Mode */
[data-contrast="high"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-card: #0a0a0a;
    
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
    --text-muted: #d0d0d0;
    
    --border-color: #ffffff;
    --border-light: #cccccc;
    
    --link-color: #ffcc00;
    --link-hover: #ffdd44;
    --link-visited: #ff99ff;
}

[data-theme="light"][data-contrast="high"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e0e0e0;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --text-muted: #333333;
    --border-color: #000000;
    --border-light: #333333;
    --link-color: #0000cc;
    --link-hover: #0000ff;
    --link-visited: #660066;
    --color-primary: #0000cc;
}
