/**
 * Lordglass Design System - CSS Custom Properties
 * =================================================
 * Version: 2.0.0 (Lordglass UI - Dark Luxury)
 * Last Updated: 2025-11-28
 * 
 * CORRECTED PALETTE based on Lordglass Dark Luxury UI Kit
 * 
 * Color Palette Reference:
 * - Onyx (#1D1C1C):   Dark backgrounds (body, main areas)
 * - Dusk (#393D3F):   Surface backgrounds (cards, sections)
 * - Velvet (#A4887E): Rose Gold accent (brand color, highlights)
 * - Canvas (#EAEAE1): Light text on dark backgrounds
 */

:root {
    /* ============================================
       1. BACKGROUNDS (The Dark Foundation)
       ============================================ */

    /* Onyx - Body background, dark foundation */
    --color-bg-main: #1D1C1C;
    --color-onyx: #1D1C1C;

    /* Dusk - Cards, sections, elevated surfaces */
    --color-bg-surface: #393D3F;
    --color-bg-surface-hover: #4A4E50;
    --color-dusk: #393D3F;
    --color-dusk-light: #4A4E50;

    /* ============================================
       2. ACCENTS (The Luxury Rose Gold)
       ============================================ */

    /* Velvet - Brand color, Rose Gold/Taupe */
    --color-velvet: #A4887E;
    --color-velvet-hover: #8E736A;
    --color-velvet-light: #B89B91;
    --color-velvet-soft: rgba(164, 136, 126, 0.15);
    --color-velvet-glow: rgba(164, 136, 126, 0.35);

    /* Gold - Accent color for highlights */
    --color-gold: #C8AE6D;
    --color-gold-hover: #D4BE7F;
    --color-gold-soft: rgba(200, 174, 109, 0.15);

    /* Border colors */
    --color-border-subtle: #393D3F;
    --color-border-accent: rgba(164, 136, 126, 0.5);

    /* ============================================
       3. TYPOGRAPHY COLORS
       ============================================ */

    /* Canvas - Primary text on dark backgrounds */
    --color-text-primary: #EAEAE1;
    --color-canvas: #EAEAE1;

    /* Secondary text (Silver/Grey) */
    --color-text-secondary: #B0B0B0;
    --color-text-muted: #8A8A8A;

    /* Text on Velvet buttons (Dark Onyx) */
    --color-text-inverse: #1D1C1C;

    /* ============================================
       4. SEMANTIC ALIASES
       ============================================ */

    /* Text */
    --text-primary: var(--color-text-primary);
    --text-secondary: var(--color-text-secondary);
    --text-muted: var(--color-text-muted);
    --text-inverse: var(--color-text-inverse);
    --text-accent: var(--color-velvet);

    /* Backgrounds */
    --bg-page: var(--color-bg-main);
    --bg-surface: var(--color-bg-surface);
    --bg-surface-hover: var(--color-bg-surface-hover);
    --bg-accent: var(--color-velvet);
    --bg-accent-soft: var(--color-velvet-soft);

    /* Borders */
    --border-default: var(--color-border-subtle);
    --border-accent: var(--color-border-accent);

    /* Interactive */
    --interactive-primary: var(--color-velvet);
    --interactive-primary-hover: var(--color-velvet-hover);
    --interactive-focus: var(--color-velvet-light);

    /* Status Colors */
    --status-success: #6B8E6B;
    --status-error: #C17B7B;
    --status-warning: #C9A55C;
    --status-info: #7B9BC1;

    /* ============================================
       5. HEADER COLORS (Dark Luxury - Lordglass)
       ============================================ */

    /* Header uses Onyx background with Velvet accents */
    --header-bg: var(--color-bg-main);
    --header-bg-surface: var(--color-bg-surface);
    --header-text: var(--color-text-primary);
    --header-text-muted: var(--color-text-secondary);
    --header-accent: var(--color-velvet);
    --header-accent-hover: var(--color-velvet-hover);

    /* ============================================
       6. TYPOGRAPHY
       ============================================ */

    /* Fonts - Luxury feel */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', 'Open Sans', sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-xl: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-3xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    --text-4xl: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
    --text-5xl: clamp(2.5rem, 2rem + 2vw, 3.5rem);

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

    /* Letter Spacing */
    --tracking-tight: -0.01em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* ============================================
       7. SPACING
       ============================================ */

    --spacing-base: 1rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Fluid Spacing */
    --space-section: clamp(2rem, 4vw, 4rem);
    --space-container: clamp(1rem, 4vw, 2.25rem);

    /* ============================================
       8. LAYOUT
       ============================================ */

    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;
    --container-max: 1500px;

    /* Breakpoints */
    --bp-xs: 480px;
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;
    --bp-2xl: 1400px;

    /* ============================================
       9. BORDERS & RADIUS
       ============================================ */

    --border-radius-card: 8px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --border-width-thin: 1px;
    --border-width-medium: 2px;

    /* ============================================
       10. SHADOWS (Dark Theme optimized)
       ============================================ */

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);

    /* Velvet glow shadows */
    --shadow-velvet: 0 4px 16px rgba(164, 136, 126, 0.2);
    --shadow-velvet-lg: 0 8px 32px rgba(164, 136, 126, 0.3);

    /* ============================================
       11. TRANSITIONS
       ============================================ */

    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;

    /* ============================================
       12. Z-INDEX SCALE
       ============================================ */

    --z-base: 0;
    --z-raised: 10;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-overlay: 900;
    --z-header: 1000;
    --z-modal: 1100;
    --z-popover: 1200;
    --z-tooltip: 1300;
    --z-max: 9999;

    /* ============================================
       13. LEGACY VARIABLE MAPPINGS
       (Backward compatibility with existing CSS)
       ============================================ */

    /* Map to existing lg-* variables */
    --lg-surface-bg: var(--bg-page);
    --lg-surface-card: var(--bg-surface);
    --lg-surface-hover: var(--bg-surface-hover);
    --lg-border-color: var(--border-default);
    --lg-border-accent: var(--border-accent);
    --lg-text-primary: var(--text-primary);
    --lg-text-secondary: var(--text-secondary);
    --lg-heading-color: var(--color-velvet);
    --lg-brand: var(--color-velvet);
    --lg-brand-hover: var(--color-velvet-hover);
    --lg-brand-soft: var(--color-velvet-soft);
    --lg-soft-white: var(--text-primary);
    --lg-muted: var(--text-secondary);
    --lg-border: var(--border-default);

    /* Lordglass color aliases */
    --lg-color-deep: var(--color-velvet);
    --lg-color-accent: var(--color-velvet);
    --lg-color-accent-light: var(--color-velvet-light);
    --lg-color-surface: var(--bg-page);
    --lg-color-muted: var(--text-secondary);
    --lg-color-border: var(--border-default);
    --lg-color-white: var(--text-primary);
    --lg-color-text: var(--text-primary);
    --color-anthracite: var(--text-primary);

    /* Font aliases */
    --font-stack: var(--font-body);
    --lg-font-stack: var(--font-body);
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
        --transition-slower: 0ms;
    }
}