/* ===============================================
   LUXARDO LABS DESIGN SYSTEM - FOUNDATION
   Single source of truth for all visual elements
   =============================================== */

:root {
    /* ============ BRAND COLORS ============ */
    /* Primary Brand Palette */
    --lust: #E62020;                          /* Primary red - CTA, highlights */
    --midnight-sin: #121633;                  /* Dark blue - primary text, headers */
    --jazzberry-jam: #A50B5E;                 /* Purple accent - secondary actions */
    --seduction: #AA4B41;                     /* Brown - warm accents */
    --bronze-harmony: #CD7F32;                /* Bronze - luxury touches */
    --sensual-grey: #88807C;                  /* Medium grey - secondary text */
    --vanilla-sex: #F5EBDD;                   /* Cream - backgrounds, light text */
    
    /* Extended Palette */
    --midnight-sin-light: #1a1a3a;           /* Lighter dark blue */
    --midnight-sin-darker: #181843;          /* Darker variant */
    
    /* Functional Transparencies */
    --lust-transparent-05: rgba(230, 32, 32, 0.05);
    --lust-transparent-15: rgba(230, 32, 32, 0.15);
    --lust-transparent-30: rgba(230, 32, 32, 0.3);
    --lust-transparent-40: rgba(230, 32, 32, 0.4);
    --lust-transparent-60: rgba(230, 32, 32, 0.6);
    --jazzberry-jam-transparent-05: rgba(165, 11, 94, 0.05);
    --jazzberry-jam-transparent-15: rgba(165, 11, 94, 0.15);
    
    /* ============ FUNCTIONAL COLORS ============ */
    /* Status Colors */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --success-border: rgba(34, 197, 94, 0.3);
    
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.3);
    
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.3);
    
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --info-border: rgba(59, 130, 246, 0.3);
    
    /* ============ TYPOGRAPHY ============ */
    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Font Sizes */
    --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 */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 4rem;        /* 64px */
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* ============ SPACING SYSTEM ============ */
    /* Base spacing unit: 0.25rem (4px) */
    --space-px: 1px;
    --space-0: 0;
    --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 */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-32: 8rem;        /* 128px */
    
    /* ============ BORDER RADIUS ============ */
    --radius-none: 0;
    --radius-sm: 0.125rem;   /* 2px */
    --radius-base: 0.25rem;  /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* ============ SHADOWS ============ */
    /* Luxury shadows for customer-facing elements */
    --shadow-sm: 0 1px 2px 0 rgba(18, 22, 51, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(18, 22, 51, 0.1), 0 1px 2px 0 rgba(18, 22, 51, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(18, 22, 51, 0.1), 0 2px 4px -1px rgba(18, 22, 51, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(18, 22, 51, 0.1), 0 4px 6px -2px rgba(18, 22, 51, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(18, 22, 51, 0.1), 0 10px 10px -5px rgba(18, 22, 51, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(18, 22, 51, 0.25);
    --shadow-glow: 0 0 20px var(--lust-transparent-40);
    --shadow-glow-strong: 0 0 35px var(--lust-transparent-60);
    
    /* ============ TRANSITIONS ============ */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;
    
    /* Common transition combinations */
    --transition-all: all var(--transition-base);
    --transition-colors: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
    --transition-opacity: opacity var(--transition-base);
    --transition-transform: transform var(--transition-base);
    
    /* ============ Z-INDEX LAYERS ============ */
    --z-behind: -1;
    --z-base: 0;
    --z-docked: 10;
    --z-dropdown: 1000;
    --z-sticky: 1010;
    --z-banner: 1020;
    --z-overlay: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
    --z-toast: 1070;
    
    /* ============ LAYOUT CONSTANTS ============ */
    /* Container widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Admin-specific layout */
    --admin-sidebar-width: 280px;
    --admin-sidebar-collapsed: 70px;
    --admin-topbar-height: 64px;
    
    /* ============ BREAKPOINTS ============ */
    /* Mobile first approach */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ============ GLOBAL RESET ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============ TYPOGRAPHY BASE ============ */
html {
    font-family: var(--font-primary);
    line-height: var(--leading-normal);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============ UTILITY CLASSES ============ */
/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.focus-ring {
    outline: 2px solid var(--lust);
    outline-offset: 2px;
}

/* Smooth animations respect user preferences */
@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}