/**
 * CSS Variables - Author Portal
 * Цветовая схема, типографика, отступы
 */

:root {
    /* Colors - Light Theme */
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #dbeafe;
    
    --color-secondary: #64748b;
    --color-secondary-hover: #475569;
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-error-light: #fee2e2;
    --color-danger: #ef4444; /* Alias for error */
    --color-danger-light: #fee2e2; /* Alias for error-light */
    
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --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;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-tooltip: 400;
    
    /* Layout */
    --header-height: 64px;
    --sidebar-width: 300px;
    --container-max: 1400px;
    --content-max: 800px;
    
    /* Map Editor Layout */
    --sidebar-left-width: 280px;
    --sidebar-right-width: 320px;
    
    /* Dashboard Layout */
    --dashboard-sidebar-width-expanded: 280px;
    --dashboard-sidebar-width-collapsed: 64px;
    --dashboard-sidebar-transition: 200ms ease;
    --dashboard-topbar-height: 64px;
    --dashboard-content-padding: var(--spacing-6);
    --dashboard-widget-gap: var(--spacing-6);
    --dashboard-mobile-breakpoint: 768px;
    
    /* Landing Page Colors */
    --landing-gradient-start: #6366f1;
    --landing-gradient-end: #8b5cf6;
    --landing-accent: #ec4899;
    --landing-hero-bg: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    --landing-card-hover: #f0f4ff;
    
    /* Scroll-driven specific */
    --content-full: 1600px;
    
    /* Animation Durations */
    --anim-duration-fast: 0.2s;
    --anim-duration-normal: 0.4s;
    --anim-duration-slow: 0.6s;
    --anim-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Landing */
[data-theme="dark"] {
    --landing-hero-bg: linear-gradient(135deg, #1e293b 0%, #312e81 100%);
    --landing-card-hover: #1e3a5f;
}

/* Dark Theme */
[data-theme="dark"] {
    --color-primary: #3b82f6;
    --color-primary-hover: #60a5fa;
    --color-primary-light: #1e3a5f;
    
    --color-error-light: #7f1d1d;
    --color-danger-light: #7f1d1d; /* Alias for error-light */
    
    --color-bg: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-tertiary: #334155;
    
    --color-text: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    
    --color-border: #334155;
    --color-border-light: #1e293b;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}
