/* ===================================
   DESIGN SYSTEM - AI CHAT PRO
   Brand-consistent design tokens
   =================================== */

:root {
    /* === PRIMARY COLOR SYSTEM === */
    /* Trust Blue - Primary brand color */
    --color-primary: #2563EB;
    --color-primary-light: #3B82F6;
    --color-primary-dark: #1E40AF;
    --color-primary-rgb: 37, 99, 235;
    
    /* Luxury Gold - Accent color (keeping from original design) */
    --color-accent: #D4AF37;
    --color-accent-light: #F4E4B0;
    --color-accent-dark: #B8941F;
    --color-accent-rgb: 212, 175, 55;
    
    /* Secondary - Orange for CTAs */
    --color-secondary: #F97316;
    --color-secondary-light: #FB923C;
    --color-secondary-dark: #EA580C;
    
    /* === SEMANTIC COLORS === */
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;
    
    /* === BACKGROUND COLORS === */
    --color-bg-primary: #0A0A0F;        /* Luxury Black */
    --color-bg-secondary: #1A0B2E;      /* Deep Purple */
    --color-bg-card: #1A1A1A;
    --color-bg-card-hover: #222222;
    --color-bg-glass: rgba(255, 255, 255, 0.05);
    
    /* === TEXT COLORS === */
    --color-text-primary: #F5F1E8;      /* Luxury Cream */
    --color-text-secondary: #CCCCCC;
    --color-text-muted: #999999;
    --color-text-inverse: #0A0A0F;
    
    /* === BORDER COLORS === */
    --color-border: rgba(37, 99, 235, 0.3);        /* Blue tint */
    --color-border-accent: rgba(212, 175, 55, 0.3); /* Gold tint */
    --color-border-light: rgba(255, 255, 255, 0.1);
    
    /* === AI-SPECIFIC COLORS === */
    --color-ai-purple: #8B5CF6;         /* For AI features */
    --color-ai-cyan: #06B6D4;           /* For speed features */
    --color-ai-pink: #EC4899;           /* For analytics */
    
    /* === GRADIENTS === */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    --gradient-hero: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
                     radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    
    /* === SHADOWS === */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow-blue: 0 0 30px rgba(37, 99, 235, 0.3);
    --shadow-glow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
    
    /* === Z-INDEX SCALE === */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-modal-backdrop: 40;
    --z-modal: 50;
    --z-popover: 60;
    --z-tooltip: 70;
    
    /* === SPACING SCALE === */
    --spacing-xs: 0.5rem;      /* 8px */
    --spacing-sm: 1rem;        /* 16px */
    --spacing-md: 1.5rem;      /* 24px */
    --spacing-lg: 2rem;        /* 32px */
    --spacing-xl: 3rem;        /* 48px */
    --spacing-xxl: 5rem;       /* 80px */
    --spacing-3xl: 8rem;       /* 128px */
    
    /* === BORDER RADIUS === */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* === TYPOGRAPHY === */
    --font-primary: 'Inter', 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    --font-heading: 'Inter', 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    
    /* 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 */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    --leading-loose: 2;
    
    /* === TRANSITIONS === */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* === BREAKPOINTS (for reference) === */
    /* sm: 640px */
    /* md: 768px */
    /* lg: 1024px */
    /* xl: 1280px */
    /* 2xl: 1536px */
}

/* === UTILITY CLASSES === */

/* Visually Hidden (for screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Text Utilities */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container Utilities */
.glass-card {
    background: var(--color-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-light);
}

.glow-blue {
    box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.glow-gold {
    box-shadow: var(--shadow-md), var(--shadow-glow-gold);
}
