/* Beava Design System - Root Variables */
/* Single source of truth for all Beava colors and design tokens */

:root {
    /* ===== Beava COLOR PALETTE ===== */
    
    /* Primary Brand Colors (Brown) */
    --ds-primary-50: #fcf6ee;
    --ds-primary-100: #f6e7d6;
    --ds-primary-200: #e9c8a9;
    --ds-primary-300: #d9a676;
    --ds-primary-400: #c58f55;
    --ds-primary-500: #6a3f1e;  /* CTA start */
    --ds-primary-600: #4d2d15;  /* CTA end */
    --ds-primary-700: #3b2613;
    --ds-primary-800: #2a1b0d;
    --ds-primary-900: #1d1309;
    
    /* Accent Colors (Gold) */
    --ds-accent-50: #fff8e8;
    --ds-accent-100: #fdeec8;
    --ds-accent-200: #f8e19a;
    --ds-accent-300: #f4d374;
    --ds-accent-400: #f1c574;  /* Main gold - borders, highlights */
    --ds-accent-500: #e7b85a;
    --ds-accent-600: #c89a44;
    --ds-accent-700: #a77f37;
    --ds-accent-800: #7f612a;
    --ds-accent-900: #5c4720;
    
    /* Background Gradient Stops */
    --ds-bg-1: #6a5e47;      /* Gradient top */
    --ds-bg-2: #3f3a2f;      /* Gradient mid-dark */
    --ds-bg-3: #27231d;      /* Gradient darker */
    --ds-bg-4: #1b1915;      /* Gradient darkest */
    
    /* Surface Colors (with transparency) */
    --ds-surface-dark: rgba(42, 36, 25, 0.95);
    --ds-surface-darker: rgba(42, 36, 25, 0.98);
    --ds-surface-brown: rgba(63, 58, 47, 0.98);
    --ds-surface-light: rgba(255, 255, 255, 0.03);
    --ds-surface-lighter: rgba(255, 255, 255, 0.04);
    --ds-surface-hover: rgba(255, 255, 255, 0.08);
    
    /* Text Colors - Map to theme variables */
    --ds-text-primary: var(--theme-text-heading, #fbf4e0);
    --ds-text-secondary: var(--theme-text-primary, #efe8d4);
    --ds-text-muted: var(--theme-text-muted, #e7dcc0);
    --ds-text-subtle: var(--theme-text-secondary, #e1d6b6);
    --ds-text-faint: var(--theme-text-muted, #d8ccb1);
    --ds-text-gold: var(--theme-text-accent, #f1c574);
    --ds-text-nav: var(--theme-text-nav, #efe8d4);
    --ds-text-heading: var(--theme-text-heading, #fbf4e0);
    
    /* Border Colors - Map to theme variables */
    --ds-border-gold: var(--theme-border-accent, rgba(241, 197, 116, 0.2));
    --ds-border-gold-strong: var(--theme-border-accent, rgba(241, 197, 116, 0.4));
    --ds-border-light: var(--theme-border-light, rgba(255, 255, 255, 0.08));
    --ds-border-lighter: var(--theme-border-medium, rgba(255, 255, 255, 0.12));
    
    /* Semantic Colors */
    --ds-success: #4ade80;
    --ds-warning: #fbbf24;
    --ds-error: #ef4444;
    --ds-info: #3b82f6;
    
    /* Interactive States - Map to theme variables */
    --ds-hover-gold: var(--theme-bg-hover, rgba(241, 197, 116, 0.15));
    --ds-hover-gold-strong: var(--theme-bg-hover, rgba(241, 197, 116, 0.25));
    --ds-active-gold: var(--theme-bg-hover, rgba(241, 197, 116, 0.3));
    --ds-bg-nav: var(--theme-bg-secondary, rgba(42, 36, 25, 0.98));
    
    /* Interactive States (Error/Danger) */
    --ds-hover-error: rgba(239, 68, 68, 0.15);
    
    /* Shadows */
    --ds-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --ds-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --ds-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --ds-shadow-xl: 0 0 40px rgba(0, 0, 0, 0.5);
    
    /* Gradients */
    --ds-gradient-primary: linear-gradient(135deg, var(--ds-primary-500) 0%, var(--ds-primary-600) 100%);
    --ds-gradient-gold: linear-gradient(90deg, var(--ds-hover-gold-strong) 0%, var(--ds-hover-gold) 100%);
    --ds-gradient-sidebar: linear-gradient(135deg, var(--ds-surface-dark) 0%, var(--ds-surface-brown) 100%);
    --ds-gradient-navbar: var(--ds-surface-dark);
    
    /* Backdrop Effects */
    --ds-backdrop-blur: blur(20px);
    --ds-backdrop-blur-heavy: blur(12px);
    
    /* Spacing (match framework) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    
    /* Z-index scale */
    --z-sticky: 1020;
    --z-sidebar: 1000;
    --z-dropdown: 1000;
    
    /* ===== THEME VARIABLE ALIASES =====
       Maps --ds-* to --theme-* for theme compatibility */
    --ds-bg-primary: var(--theme-bg-primary);
    --ds-bg-secondary: var(--theme-bg-secondary);
    --ds-bg-tertiary: var(--theme-bg-tertiary);
    --ds-bg-accent: var(--theme-bg-accent);
    --ds-bg-card: var(--theme-bg-card);
    --ds-accent: var(--theme-accent);
    --ds-accent-gradient-start: var(--theme-accent-gradient-start);
    --ds-accent-gradient-end: var(--theme-accent-gradient-end);
    --ds-text-gold: var(--theme-text-accent);
    --ds-border-light: var(--theme-border-light);
    --ds-border-medium: var(--theme-border-medium);
    --ds-border-gold: var(--theme-border-accent);
    --ds-border-gold-solid: var(--theme-border-accent-solid);
    --ds-shadow-dark: var(--theme-shadow-dark);
    --ds-shadow-red: var(--theme-shadow-accent);
    --ds-btn-shadow: var(--theme-btn-shadow);
}
