/**
 * SpeciFire Design System
 *
 * All design tokens derive from the action-card aesthetic:
 * - Gradient: 135deg, primary-500 → primary-600
 * - Shadow: Blue-tinted rgba(33, 35, 73, ...)
 * - Transitions: 200ms ease-out
 * - Radius: 8px for interactive elements
 * - Spacing: 4px base scale
 */

:root {
    /* ============================================================
       PRIMARY BRAND COLORS
       ============================================================ */
    --color-primary-50: #e8eaf6;
    --color-primary-100: #c5cae9;
    --color-primary-200: #9fa8da;
    --color-primary-300: #7986cb;
    --color-primary-400: #5d89c6;
    --color-primary-500: #212349;
    --color-primary-600: #1b1d3d;
    --color-primary-700: #141631;

    /* ============================================================
       SEMANTIC STATUS COLORS
       ============================================================ */
    /* Success */
    --color-success-50: #e8f5e9;
    --color-success-100: #c8e6c9;
    --color-success-500: #2e7d32;
    --color-success-600: #1b5e20;

    /* Warning */
    --color-warning-50: #fff8e1;
    --color-warning-100: #ffecb3;
    --color-warning-300: #fcd34d;
    --color-warning-500: #f59e0b;
    --color-warning-600: #d97706;
    --color-warning-700: #b45309;

    /* Error */
    --color-error-50: #ffebee;
    --color-error-100: #ffcdd2;
    --color-error-500: #d32f2f;
    --color-error-600: #c62828;

    /* Info */
    --color-info-50: #e0f7fa;
    --color-info-100: #b2ebf2;
    --color-info-500: #0288d1;
    --color-info-600: #0277bd;

    /* ============================================================
       TEXT COLORS
       ============================================================ */
    --color-text-primary: #1f2937;
    --color-text-secondary: #4b5563;
    --color-text-tertiary: #6b7280;
    --color-text-disabled: #9ca3af;
    --color-text-inverse: #ffffff;

    /* ============================================================
       BACKGROUND COLORS
       ============================================================ */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-bg-tertiary: #f3f4f6;
    --color-bg-hover: rgba(0, 0, 0, 0.04);
    --color-bg-active: rgba(0, 0, 0, 0.06);
    --color-backdrop: rgba(0, 0, 0, 0.5);
    --onboarding-backdrop: rgba(0, 0, 0, 0.6);

    /* ============================================================
       BORDER COLORS
       ============================================================ */
    --color-border-light: #f0f0f0;
    --color-border-default: #e5e7eb;
    --color-border-medium: #d1d5db;
    --color-border-focus: var(--color-primary-500);

    /* ============================================================
       SHADOW SYSTEM (Blue-tinted for brand cohesion)
       ============================================================ */
    --shadow-xs: 0 1px 2px rgba(33, 35, 73, 0.05);
    --shadow-sm: 0 1px 3px rgba(33, 35, 73, 0.08), 0 1px 2px rgba(33, 35, 73, 0.06);
    --shadow-md: 0 4px 6px rgba(33, 35, 73, 0.07), 0 2px 4px rgba(33, 35, 73, 0.06);
    --shadow-lg: 0 10px 15px rgba(33, 35, 73, 0.08), 0 4px 6px rgba(33, 35, 73, 0.05);
    --shadow-xl: 0 20px 25px rgba(33, 35, 73, 0.10), 0 10px 10px rgba(33, 35, 73, 0.04);

    /* Primary glow shadows (for CTAs, action-card style) */
    --shadow-primary-sm: 0 2px 8px rgba(33, 35, 73, 0.2);
    --shadow-primary-md: 0 4px 12px rgba(33, 35, 73, 0.25);
    --shadow-primary-lg: 0 8px 20px rgba(33, 35, 73, 0.3);

    /* Focus ring */
    --shadow-focus: 0 0 0 3px rgba(33, 35, 73, 0.3);
    --shadow-focus-error: 0 0 0 3px rgba(211, 47, 47, 0.3);

    /* ============================================================
       BORDER RADIUS
       ============================================================ */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;

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

    /* ============================================================
       TRANSITIONS
       ============================================================ */
    --duration-fast: 100ms;
    --duration-normal: 150ms;
    --duration-moderate: 200ms;
    --duration-slow: 300ms;

    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --transition-colors: color var(--duration-fast) var(--ease-out),
                         background-color var(--duration-fast) var(--ease-out),
                         border-color var(--duration-fast) var(--ease-out);
    --transition-shadow: box-shadow var(--duration-moderate) var(--ease-out);
    --transition-interactive: box-shadow var(--duration-moderate) var(--ease-out);

    /* ============================================================
       GRADIENTS
       ============================================================ */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    --gradient-subtle: linear-gradient(180deg, #fafafa 0%, #f0f4f8 100%);

    /* ============================================================
       TYPOGRAPHY
       ============================================================ */
    --font-family: 'ARS Maquette Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;

    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 700;
    --font-bold: 700;

    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    --tracking-tight: -0.015em;
    --tracking-normal: 0;
    --tracking-wide: 0.015em;

    /* ============================================================
       LEGACY ALIASES (Backwards compatibility)
       ============================================================ */
    --primary-color: var(--color-primary-500);
    --secondary-color: var(--color-primary-400);
    --text-color: var(--color-text-primary);
    --light-bg: var(--color-bg-secondary);
    --border-color: var(--color-border-default);
    --error-color: var(--color-error-500);
    --error-bg: var(--color-error-50);
    --border-radius: var(--radius-sm);
    --shadow: var(--shadow-sm);
    --line-height: var(--leading-relaxed);
    --font-weight-normal: var(--font-normal);
    --font-weight-medium: var(--font-medium);
    --font-weight-bold: var(--font-semibold);
    --section-padding: var(--space-8) var(--space-10);
    --content-padding: var(--space-5);
    --paragraph-spacing: 1.15em;
}
