/* ============================================================================
 * Layer 1 — Design Tokens
 * ----------------------------------------------------------------------------
 * ui/static/css/tokens.css
 *
 * The ONLY file in the centralhub CSS system permitted to declare raw values.
 * All other stylesheets (utilities.css, components.css) MUST reference these
 * custom properties via var(--token-name) and MUST NOT hardcode hex codes,
 * rems, ms durations, or any other primitive.
 *
 * Per-directory brand overrides are injected inline via a <style> block
 * emitted from the layout template AFTER this file loads, so specificity
 * cascade favors tenant-defined values when present.
 * ========================================================================== */

:root {

    /* ------------------------------------------------------------------------
     * Color Palette
     * ---------------------------------------------------------------------- */

    /* Primary brand */
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;

    /* Neutrals (Tailwind-aligned gray ramp for predictable contrast pairing) */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Semantic colors (foreground / surface pair) */
    --color-success: #16a34a;
    --color-success-light: #dcfce7;
    --color-warning: #d97706;
    --color-warning-light: #fef3c7;
    --color-danger: #dc2626;
    --color-danger-light: #fee2e2;
    --color-info: #0891b2;
    --color-info-light: #cffafe;

    /* Admin-specific */
    --color-admin-bg: #f1f5f9;
    --color-admin-sidebar: #1e293b;
    --color-admin-sidebar-text: #cbd5e1;
    --color-admin-sidebar-hover: #334155;

    /* Lifecycle / claim-state badges */
    --color-badge-unclaimed: #f59e0b;
    --color-badge-contact: #3b82f6;
    --color-badge-claimed: #16a34a;
    --color-badge-premium: #8b5cf6;

    /* ------------------------------------------------------------------------
     * Spacing Scale
     * Linear doubling rhythm, suitable for both 4-pt and 8-pt grid systems.
     * ---------------------------------------------------------------------- */
    --spacing-1: 0.25rem;   /*   4px */
    --spacing-2: 0.5rem;    /*   8px */
    --spacing-3: 0.75rem;   /*  12px */
    --spacing-4: 1rem;      /*  16px */
    --spacing-5: 1.5rem;    /*  24px */
    --spacing-6: 2rem;      /*  32px */
    --spacing-7: 3rem;      /*  48px */
    --spacing-8: 4rem;      /*  64px */

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

    --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

    --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;

    /* ------------------------------------------------------------------------
     * Border Radii
     * ---------------------------------------------------------------------- */
    --radius-sm: 0.25rem;   /*  4px */
    --radius-md: 0.375rem;  /*  6px */
    --radius-lg: 0.5rem;    /*  8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-full: 9999px;

    /* ------------------------------------------------------------------------
     * Shadows
     * ---------------------------------------------------------------------- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* ------------------------------------------------------------------------
     * Layout
     * ---------------------------------------------------------------------- */
    --container-max-width: 1200px;
    --container-narrow: 800px;
    --sidebar-width: 240px;

    /* ------------------------------------------------------------------------
     * Motion
     * ---------------------------------------------------------------------- */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}
