/**
 * GPR Superstore - CSS Variables
 * PETRONAS Corporate Design System
 */

:root {
    /* Primary Colors - PETRONAS Teal */
    --color-primary: #00A19C;
    --color-primary-dark: #008B87;
    --color-primary-darker: #007570;
    --color-primary-light: #33B4B0;
    --color-primary-lighter: #66C7C4;
    --color-primary-subtle: #E6F7F6;

    /* Secondary Colors - PETRONAS Purple */
    --color-secondary: #763F98;
    --color-secondary-dark: #5E3279;
    --color-secondary-light: #9166AD;
    --color-secondary-subtle: #F3EDF7;

    /* Accent Colors - PETRONAS Gold */
    --color-accent: #FDB925;
    --color-accent-dark: #C8960F;
    --color-accent-light: #FDD05A;

    /* Navy Palette - Premium Sidebar & Dark Surfaces */
    --navy-950: #060F1E;
    --navy-900: #0B1628;
    --navy-800: #112240;
    --navy-700: #1A3352;
    --navy-600: #254770;
    --navy-text: rgba(255, 255, 255, 0.72);
    --navy-text-muted: rgba(255, 255, 255, 0.42);
    --navy-text-dim: rgba(255, 255, 255, 0.25);
    --navy-border: rgba(255, 255, 255, 0.08);
    --navy-hover: rgba(255, 255, 255, 0.06);
    --navy-active-bg: rgba(0, 161, 156, 0.12);

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Gray Scale */
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-gray-900: #0F172A;

    /* Semantic Colors */
    --color-success: #059669;
    --color-success-dark: #047857;
    --color-success-light: #34D399;
    --color-success-subtle: #D1FAE5;

    --color-warning: #D97706;
    --color-warning-dark: #B45309;
    --color-warning-light: #FBBF24;
    --color-warning-subtle: #FEF3C7;

    --color-error: #DC2626;
    --color-error-dark: #B91C1C;
    --color-error-light: #F87171;
    --color-error-subtle: #FEE2E2;

    --color-info: #20419B;
    --color-info-dark: #183080;
    --color-info-light: #4D72C9;
    --color-info-subtle: #D8E2F5;

    /* Text Colors - PETRONAS charcoal palette */
    --text-primary: #3D3935;   /* PETRONAS brand charcoal — 11.4:1 on white */
    --text-secondary: #4A4543; /* warm secondary — 9.1:1 on white */
    --text-tertiary: #595350;  /* warm tertiary — 6.5:1 on white */
    --text-muted: #707070;     /* PETRONAS gray — 4.95:1 on white (was #94A3B8, failed WCAG at 2.98:1) */
    --text-inverse: #FFFFFF;
    --text-link: #00A19C;
    --text-link-hover: #008B87;

    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --bg-tertiary: #EEF2F7;
    --bg-inverse: #0F172A;
    --bg-overlay: rgba(0, 0, 0, 0.55);

    /* Border Colors */
    --border-light: #E2E8F0;
    --border-default: #CBD5E1;
    --border-dark: #94A3B8;
    --border-focus: #00A19C;

    /* Shadow System - Premium Depth */
    --shadow-color: rgba(15, 23, 42, 0.08);
    --shadow-color-dark: rgba(15, 23, 42, 0.16);

    /* Typography */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', monospace;

    /* Font Sizes */
    --text-xs: 0.6875rem;    /* 11px */
    --text-sm: 0.8125rem;    /* 13px */
    --text-base: 0.9375rem;  /* 15px */
    --text-lg: 1.0625rem;    /* 17px */
    --text-xl: 1.1875rem;    /* 19px */
    --text-2xl: 1.375rem;    /* 22px */
    --text-3xl: 1.75rem;     /* 28px */
    --text-4xl: 2.125rem;    /* 34px */
    --text-5xl: 2.75rem;     /* 44px */

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

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Letter Spacing */
    --tracking-tighter: -0.04em;
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;
    --tracking-wider: 0.06em;
    --tracking-widest: 0.1em;

    /* Spacing Scale */
    --spacing-0: 0;
    --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;
    --spacing-24: 6rem;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.125rem;
    --radius-default: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows - Refined Premium */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-default: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 8px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 8px 16px rgba(15, 23, 42, 0.1), 0 4px 8px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 16px 32px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
    --shadow-2xl: 0 24px 48px rgba(15, 23, 42, 0.18), 0 12px 24px rgba(15, 23, 42, 0.08);
    --shadow-inner: inset 0 2px 4px rgba(15, 23, 42, 0.06);

    /* Focus Ring */
    --ring-color: rgba(0, 161, 156, 0.35);
    --ring-offset: 2px;
    --ring-width: 3px;

    /* Transitions */
    --transition-fast: 140ms;
    --transition-default: 200ms;
    --transition-slow: 300ms;
    --transition-slower: 500ms;
    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;

    /* Layout */
    --sidebar-width: 256px;
    --sidebar-collapsed-width: 68px;
    --header-height: 60px;

    /* ── Compatibility aliases ── */
    /* For older CSS modules that use alternate naming conventions */
    --color-text-primary: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-text-muted: var(--text-muted);
    --color-bg-primary: var(--bg-primary);
    --color-bg-secondary: var(--bg-secondary);
    --color-bg-tertiary: var(--bg-tertiary);
    --color-border-light: var(--border-light);
    --color-border-default: var(--border-default);
    --color-danger: var(--color-error);
    --color-muted: var(--text-muted);
    --border-color: var(--border-light);
    --space-1: var(--spacing-1);
    --space-2: var(--spacing-2);
    --space-3: var(--spacing-3);
    --space-4: var(--spacing-4);
    --space-5: var(--spacing-5);
    --space-6: var(--spacing-6);
    --space-8: var(--spacing-8);
    --space-10: var(--spacing-10);
    --space-12: var(--spacing-12);
    --space-16: var(--spacing-16);
    --transition-base: var(--transition-default);
}
