/* SCAE Plugin - Design System CSS Variables */

:root {
    /* === COLOR PALETTE === */
    /* Primary Colors */
    --scae-primary: #ffffff;
    --scae-secondary: #1e3a8a;
    --scae-accent: #3b82f6;
    --scae-accent-rgb: 59, 130, 246;

    /* Neutral Colors */
    --scae-dark: #1f2937;
    --scae-gray: #6b7280;
    --scae-light-gray: #f8fafc;
    --scae-border: #e2e8f0;

    /* Status Colors */
    --scae-success: #10b981;
    --scae-warning: #f59e0b;
    --scae-danger: #ef4444;
    --scae-info: #3b82f6;

    /* Extended Color Palette */
    --scae-blue-50: #eff6ff;
    --scae-blue-100: #dbeafe;
    --scae-blue-200: #bfdbfe;
    --scae-blue-500: #3b82f6;
    --scae-blue-600: #2563eb;
    --scae-blue-700: #1d4ed8;
    --scae-blue-900: #1e3a8a;

    --scae-gray-50: #f9fafb;
    --scae-gray-100: #f3f4f6;
    --scae-gray-200: #e5e7eb;
    --scae-gray-300: #d1d5db;
    --scae-gray-400: #9ca3af;
    --scae-gray-500: #6b7280;
    --scae-gray-600: #4b5563;
    --scae-gray-700: #374151;
    --scae-gray-800: #1f2937;
    --scae-gray-900: #111827;

    --scae-green-50: #ecfdf5;
    --scae-green-100: #d1fae5;
    --scae-green-500: #10b981;
    --scae-green-600: #059669;

    --scae-yellow-50: #fffbeb;
    --scae-yellow-100: #fef3c7;
    --scae-yellow-500: #f59e0b;
    --scae-yellow-600: #d97706;

    --scae-red-50: #fef2f2;
    --scae-red-100: #fee2e2;
    --scae-red-500: #ef4444;
    --scae-red-600: #dc2626;

    /* === TYPOGRAPHY === */
    /* Font Families */
    --scae-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --scae-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

    /* Font Sizes */
    --scae-text-xs: 0.75rem;
    /* 12px */
    --scae-text-sm: 0.875rem;
    /* 14px */
    --scae-text-base: 1rem;
    /* 16px */
    --scae-text-lg: 1.125rem;
    /* 18px */
    --scae-text-xl: 1.25rem;
    /* 20px */
    --scae-text-2xl: 1.5rem;
    /* 24px */
    --scae-text-3xl: 1.875rem;
    /* 30px */
    --scae-text-4xl: 2.25rem;
    /* 36px */

    /* Font Weights */
    --scae-font-light: 300;
    --scae-font-normal: 400;
    --scae-font-medium: 500;
    --scae-font-semibold: 600;
    --scae-font-bold: 700;

    /* Line Heights */
    --scae-leading-tight: 1.25;
    --scae-leading-normal: 1.5;
    --scae-leading-relaxed: 1.625;

    /* === SPACING === */
    --scae-space-0: 0;
    --scae-space-1: 0.25rem;
    /* 4px */
    --scae-space-2: 0.5rem;
    /* 8px */
    --scae-space-3: 0.75rem;
    /* 12px */
    --scae-space-4: 1rem;
    /* 16px */
    --scae-space-5: 1.25rem;
    /* 20px */
    --scae-space-6: 1.5rem;
    /* 24px */
    --scae-space-8: 2rem;
    /* 32px */
    --scae-space-10: 2.5rem;
    /* 40px */
    --scae-space-12: 3rem;
    /* 48px */
    --scae-space-16: 4rem;
    /* 64px */
    --scae-space-20: 5rem;
    /* 80px */

    /* === BORDER RADIUS === */
    --scae-radius-none: 0;
    --scae-radius-sm: 8px;
    --scae-radius: 12px;
    --scae-radius-md: 16px;
    --scae-radius-lg: 20px;
    --scae-radius-xl: 24px;
    --scae-radius-full: 9999px;

    /* === SHADOWS === */
    --scae-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --scae-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --scae-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --scae-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --scae-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --scae-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --scae-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --scae-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* === TRANSITIONS === */
    --scae-transition-none: none;
    --scae-transition-all: all 150ms ease-in-out;
    --scae-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --scae-transition-fast: all 150ms ease-in-out;
    --scae-transition-slow: all 500ms ease-in-out;

    /* Transition Functions */
    --scae-ease-linear: linear;
    --scae-ease-in: cubic-bezier(0.4, 0, 1, 1);
    --scae-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --scae-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* === Z-INDEX === */
    --scae-z-auto: auto;
    --scae-z-0: 0;
    --scae-z-10: 10;
    --scae-z-20: 20;
    --scae-z-30: 30;
    --scae-z-40: 40;
    --scae-z-50: 50;
    --scae-z-modal: 1000;
    --scae-z-popover: 1010;
    --scae-z-tooltip: 1020;
    --scae-z-overlay: 1030;

    /* === BREAKPOINTS (for use in JavaScript) === */
    --scae-breakpoint-sm: 640px;
    --scae-breakpoint-md: 768px;
    --scae-breakpoint-lg: 1024px;
    --scae-breakpoint-xl: 1280px;
    --scae-breakpoint-2xl: 1536px;

    /* === COMPONENT SPECIFIC === */
    /* Form Elements */
    --scae-input-height: 2.5rem;
    --scae-input-padding-x: 0.75rem;
    --scae-input-padding-y: 0.5rem;
    --scae-input-border-width: 1px;
    --scae-input-focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.1);

    /* Buttons */
    --scae-button-height: 2.5rem;
    --scae-button-padding-x: 1rem;
    --scae-button-padding-y: 0.5rem;
    --scae-button-min-width: 4rem;

    /* Cards */
    --scae-card-padding: 1.5rem;
    --scae-card-gap: 1rem;

    /* Navigation */
    --scae-nav-height: 4rem;
    --scae-nav-padding: 1rem;

    /* Sidebar */
    --scae-sidebar-width: 16rem;
    --scae-sidebar-collapsed-width: 4rem;

    /* Content */
    --scae-content-max-width: 1200px;
    --scae-content-padding: 2rem;

    /* Animation Durations */
    --scae-animation-fast: 150ms;
    --scae-animation-normal: 300ms;
    --scae-animation-slow: 500ms;
}

/* === DARK MODE OVERRIDES === */
@media (prefers-color-scheme: dark) {
    :root {
        --scae-primary: #1f2937;
        --scae-secondary: #3b82f6;
        --scae-dark: #f9fafb;
        --scae-gray: #9ca3af;
        --scae-light-gray: #111827;
        --scae-border: #374151;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    :root {
        --scae-transition: none;
        --scae-transition-fast: none;
        --scae-transition-slow: none;
        --scae-animation-fast: 0ms;
        --scae-animation-normal: 0ms;
        --scae-animation-slow: 0ms;
    }
}

/* === COMPONENT BASE STYLES === */

/* Reset and Base */
.scae-reset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography Utilities */
.scae-text-xs {
    font-size: var(--scae-text-xs);
}

.scae-text-sm {
    font-size: var(--scae-text-sm);
}

.scae-text-base {
    font-size: var(--scae-text-base);
}

.scae-text-lg {
    font-size: var(--scae-text-lg);
}

.scae-text-xl {
    font-size: var(--scae-text-xl);
}

.scae-text-2xl {
    font-size: var(--scae-text-2xl);
}

.scae-text-3xl {
    font-size: var(--scae-text-3xl);
}

.scae-text-4xl {
    font-size: var(--scae-text-4xl);
}

.scae-font-light {
    font-weight: var(--scae-font-light);
}

.scae-font-normal {
    font-weight: var(--scae-font-normal);
}

.scae-font-medium {
    font-weight: var(--scae-font-medium);
}

.scae-font-semibold {
    font-weight: var(--scae-font-semibold);
}

.scae-font-bold {
    font-weight: var(--scae-font-bold);
}

/* Color Utilities */
.scae-text-primary {
    color: var(--scae-primary);
}

.scae-text-secondary {
    color: var(--scae-secondary);
}

.scae-text-accent {
    color: var(--scae-accent);
}

.scae-text-dark {
    color: var(--scae-dark);
}

.scae-text-gray {
    color: var(--scae-gray);
}

.scae-text-success {
    color: var(--scae-success);
}

.scae-text-warning {
    color: var(--scae-warning);
}

.scae-text-danger {
    color: var(--scae-danger);
}

.scae-bg-primary {
    background-color: var(--scae-primary);
}

.scae-bg-secondary {
    background-color: var(--scae-secondary);
}

.scae-bg-accent {
    background-color: var(--scae-accent);
}

.scae-bg-light-gray {
    background-color: var(--scae-light-gray);
}

.scae-bg-success {
    background-color: var(--scae-success);
}

.scae-bg-warning {
    background-color: var(--scae-warning);
}

.scae-bg-danger {
    background-color: var(--scae-danger);
}

/* Border Utilities */
.scae-border {
    border: 1px solid var(--scae-border);
}

.scae-border-t {
    border-top: 1px solid var(--scae-border);
}

.scae-border-r {
    border-right: 1px solid var(--scae-border);
}

.scae-border-b {
    border-bottom: 1px solid var(--scae-border);
}

.scae-border-l {
    border-left: 1px solid var(--scae-border);
}

/* Radius Utilities */
.scae-rounded-none {
    border-radius: var(--scae-radius-none);
}

.scae-rounded-sm {
    border-radius: var(--scae-radius-sm);
}

.scae-rounded {
    border-radius: var(--scae-radius);
}

.scae-rounded-md {
    border-radius: var(--scae-radius-md);
}

.scae-rounded-lg {
    border-radius: var(--scae-radius-lg);
}

.scae-rounded-xl {
    border-radius: var(--scae-radius-xl);
}

.scae-rounded-full {
    border-radius: var(--scae-radius-full);
}

/* Shadow Utilities */
.scae-shadow-xs {
    box-shadow: var(--scae-shadow-xs);
}

.scae-shadow-sm {
    box-shadow: var(--scae-shadow-sm);
}

.scae-shadow {
    box-shadow: var(--scae-shadow);
}

.scae-shadow-md {
    box-shadow: var(--scae-shadow-md);
}

.scae-shadow-lg {
    box-shadow: var(--scae-shadow-lg);
}

.scae-shadow-xl {
    box-shadow: var(--scae-shadow-xl);
}

.scae-shadow-2xl {
    box-shadow: var(--scae-shadow-2xl);
}

.scae-shadow-inner {
    box-shadow: var(--scae-shadow-inner);
}

.scae-shadow-none {
    box-shadow: none;
}

/* Transition Utilities */
.scae-transition {
    transition: var(--scae-transition);
}

.scae-transition-fast {
    transition: var(--scae-transition-fast);
}

.scae-transition-slow {
    transition: var(--scae-transition-slow);
}

.scae-transition-none {
    transition: var(--scae-transition-none);
}
