/**
 * BruteForce AI - Design Tokens
 * Foundation Sprint Phase 1
 *
 * This file defines the design system's foundational tokens:
 * - Spacing scale
 * - Typography scale
 * - Border radius scale
 * - Shadow scale
 * - Additional semantic colors
 *
 * These tokens are used by other component CSS files.
 * Import this file BEFORE colors.css to ensure variables are available.
 */

:root {
    /* ============================================================
     * SPACING SCALE
     * Based on 4px base unit for consistent rhythm
     * ============================================================ */
    --spacing-0: 0;
    --spacing-1: 0.25rem;   /* 4px */
    --spacing-2: 0.5rem;    /* 8px */
    --spacing-3: 0.75rem;   /* 12px */
    --spacing-4: 1rem;      /* 16px */
    --spacing-5: 1.25rem;   /* 20px */
    --spacing-6: 1.5rem;    /* 24px */
    --spacing-8: 2rem;      /* 32px */
    --spacing-10: 2.5rem;   /* 40px */
    --spacing-12: 3rem;     /* 48px */

    /* ============================================================
     * TYPOGRAPHY SCALE
     * Modular scale for consistent text sizing
     * ============================================================ */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */

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

    /* Font weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-sans: "Open Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: "Lora", Georgia, "Times New Roman", serif;

    /* ============================================================
     * BORDER RADIUS SCALE
     * Consistent corner rounding
     * ============================================================ */
    --radius-none: 0;
    --radius-sm: 0.125rem;  /* 2px */
    --radius-md: 0.375rem;  /* 6px */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-2xl: 1rem;     /* 16px */
    --radius-full: 9999px;

    /* ============================================================
     * SHADOW SCALE
     * Elevation levels for depth
     * ============================================================ */
    --shadow-sm: 0 1px 2px 0 rgba(13, 27, 62, 0.05);
    --shadow-md: 0 4px 10px -2px rgba(13, 27, 62, 0.12), 0 2px 4px -2px rgba(13, 27, 62, 0.08);
    --shadow-lg: 0 10px 18px -6px rgba(13, 27, 62, 0.16), 0 4px 8px -4px rgba(13, 27, 62, 0.08);
    --shadow-xl: 0 18px 30px -10px rgba(13, 27, 62, 0.18), 0 8px 14px -8px rgba(13, 27, 62, 0.1);

    /* Accent-colored shadows for branded elements */
    --shadow-primary: 0 2px 8px rgba(13, 27, 62, 0.22);
    --shadow-success: 0 2px 8px rgba(46, 125, 91, 0.22);
    --shadow-primary-glow: 0 0 0 4px rgba(13, 27, 62, 0.16), 0 0 20px rgba(13, 27, 62, 0.12);

    /* ============================================================
     * SEMANTIC COLOR TOKENS
     * Extended color palette for UI states and semantics
     * These supplement the core colors defined in colors.css
     * ============================================================ */

    /* Error/Danger Colors */
    --color-error-50: #FEF2F2;
    --color-error-100: #FEE2E2;
    --color-error-500: #EF4444;
    --color-error-600: #DC2626;
    --color-error-700: #B91C1C;

    /* Warning Colors */
    --color-warning-50: #FFFBEB;
    --color-warning-100: #FEF3C7;
    --color-warning-500: #F59E0B;
    --color-warning-600: #D97706;

    /* Additional Primary shades (referenced in colors.css) */
    --color-primary-300: #5D6B8A;
    --color-primary-400: #24304F;

    /* ============================================================
     * TEXT COLOR TOKENS
     * Semantic text colors for consistent typography
     * ============================================================ */
    --color-text-primary: #0D1B3E;
    --color-text-secondary: #24304F;
    --color-text-tertiary: #5D6B8A;
    --color-text-placeholder: #8A93A8;

    /* ============================================================
     * SURFACE/BACKGROUND TOKENS
     * Semantic backgrounds for layering
     * ============================================================ */
    --color-surface: #F8F6F2;
    --color-surface-elevated: #FFFFFF;  /* white - cards, modals */
    --color-surface-hover: #EDF0F7;
    --color-surface-active: #E4E8F1;

    /* ============================================================
     * BORDER TOKENS
     * Semantic border colors
     * ============================================================ */
    --color-border: #E4E3DE;
    --color-border-light: #ECEAE4;
    --color-border-strong: #DAD8D1;

    /* ============================================================
     * TRANSITION TOKENS
     * Consistent animation timing
     * ============================================================ */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;

    /* ============================================================
     * SEMANTIC THEME TOKENS
     * Complete token system for theme support
     * Light mode values (default)
     * ============================================================ */

    /* SURFACES - Background colors for different elevation levels */
    --surface-ground: #F8F6F2;          /* Page background, lowest level */
    --surface-default: #F8F6F2;         /* Default component background */
    --surface-elevated: #FFFFFF;        /* Cards, modals, elevated elements */
    --surface-overlay: rgba(0,0,0,0.5); /* Modal overlays */

    /* SURFACE STATES - Interactive surface colors */
    --surface-hover: #EDF0F7;           /* Hover state for surfaces */
    --surface-active: #E4E8F1;          /* Active/pressed state */
    --surface-selected: #FBE7E2;        /* Selected state (accent tint) */

    /* TEXT - Typography colors */
    --text-default: #0D1B3E;            /* Primary text, headings */
    --text-muted: #24304F;              /* Secondary text, body */
    --text-subtle: #5D6B8A;             /* Tertiary text, captions */
    --text-disabled: #8A93A8;           /* Disabled text, placeholders */
    --text-inverse: #FFFFFF;            /* Text on dark backgrounds */
    --text-link: #0D1B3E;
    --text-link-hover: #F05A3E;

    /* BORDERS - Edge colors */
    --border-default: #E4E3DE;          /* Default border */
    --border-muted: #ECEAE4;            /* Subtle border */
    --border-strong: #DAD8D1;           /* Emphasized border */
    --border-focus: #0D1B3E;            /* Focus ring color */

    /* ACCENT PRIMARY - RocketShip navy for primary actions */
    --accent-primary: #0D1B3E;
    --accent-primary-rgb: 13, 27, 62;
    --accent-primary-hover: #1B2E57;
    --accent-primary-active: #0A1430;
    --accent-primary-light: #EDF0F7;
    --accent-primary-text: #FFFFFF;     /* Text on primary background */
    --accent-weak: #FBE7E2;

    /* ACCENT SECONDARY - Brand coral for sparse emphasis */
    --accent-secondary: #F05A3E;
    --accent-secondary-rgb: 240, 90, 62;
    --accent-secondary-hover: #D94F36;
    --accent-secondary-active: #B9412B;
    --accent-secondary-light: #FBE7E2;
    --accent-secondary-text: #FFFFFF;   /* Text on secondary background */

    /* ACCENT TERTIARY - retained for compatibility; mapped to slate */
    --accent-tertiary: #5D6B8A;
    --accent-tertiary-hover: #24304F;
    --accent-tertiary-active: #0D1B3E;
    --accent-tertiary-light: #EDF0F7;
    --accent-tertiary-border: #DAD8D1;
    --accent-tertiary-text: #FFFFFF;    /* Text on tertiary background */

    /* OVERLAY TOKENS - Transparency levels for various overlays */
    --overlay-light: rgba(255, 255, 255, 0.95);      /* Light overlay (buttons on images) */
    --overlay-light-hover: rgba(255, 255, 255, 1);   /* Light overlay hover */
    --overlay-subtle: rgba(0, 0, 0, 0.2);            /* Subtle dark overlay */
    --overlay-medium: rgba(0, 0, 0, 0.5);            /* Medium dark overlay */
    --overlay-heavy: rgba(0, 0, 0, 0.75);            /* Heavy dark overlay */
    --overlay-badge: rgba(0, 0, 0, 0.55);            /* Dark media label scrim */

    /* STATUS - Semantic status colors */
    --status-success: #2E7D5B;
    --accent-good: var(--status-success);
    --status-success-hover: #256849;
    --status-success-light: #E7F1EA;
    --status-success-text: #1F5E45;
    --status-warning: #F59E0B;
    --status-warning-hover: #D97706;    /* Amber-600 - hover state */
    --status-warning-light: #FFFBEB;
    --status-warning-text: #92400E;
    --status-error: #EF4444;
    --status-error-hover: #DC2626;      /* Red-600 - hover state */
    --status-error-light: #FEF2F2;
    --status-error-100: #FEE2E2;        /* Red-100 - lighter bg */
    --status-error-text: #B91C1C;
    --status-info: #0D1B3E;
    --status-info-hover: #1B2E57;
    --status-info-light: #EDF0F7;
    --status-info-text: #0D1B3E;
}
