/**
 * ============================================
 * RESTAURANT/CAFÉ PREMIUM THEME - DESIGN SYSTEM
 * CSS Custom Properties (Variables)
 * Version: 1.0.0
 * ============================================
 */

:root {
    /* ========================================
     * COLOR PALETTE - PRIMARY (Restaurant Chic)
     * ======================================== */
    --primary-dark: #1a1a1a;
    --primary-main: #c19a6b;
    --primary-light: #e8d0b3;
    --primary-accent: #a0522d;
    
    --primary-dark-rgb: 26, 26, 26;
    --primary-main-rgb: 193, 154, 107;
    --primary-light-rgb: 232, 208, 179;
    --primary-accent-rgb: 160, 82, 45;
    
    /* ========================================
     * COLOR PALETTE - SECONDARY (Café Moderne)
     * ======================================== */
    --secondary-dark: #2c1810;
    --secondary-main: #d4a574;
    --secondary-light: #f5e6d3;
    --secondary-accent: #8b4513;
    
    --secondary-dark-rgb: 44, 24, 16;
    --secondary-main-rgb: 212, 165, 116;
    --secondary-light-rgb: 245, 230, 211;
    --secondary-accent-rgb: 139, 69, 19;
    
    /* ========================================
     * NEUTRAL COLORS
     * ======================================== */
    --neutral-900: #0f0f0f;
    --neutral-800: #1e1e1e;
    --neutral-700: #2d2d2d;
    --neutral-600: #4a4a4a;
    --neutral-500: #757575;
    --neutral-400: #a0a0a0;
    --neutral-300: #c9c9c9;
    --neutral-200: #e0e0e0;
    --neutral-100: #f5f5f5;
    --neutral-50: #fafafa;
    --white: #ffffff;
    --black: #000000;
    
    /* ========================================
     * SEMANTIC COLORS
     * ======================================== */
    --success: #2e7d32;
    --success-light: #4caf50;
    --success-bg: #e8f5e9;
    
    --warning: #ed6c02;
    --warning-light: #ff9800;
    --warning-bg: #fff3e0;
    
    --error: #d32f2f;
    --error-light: #ef5350;
    --error-bg: #ffebee;
    
    --info: #0288d1;
    --info-light: #03a9f4;
    --info-bg: #e1f5fe;
    
    /* ========================================
     * TYPOGRAPHY
     * ======================================== */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);      /* 12-13px */
    --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.875rem);     /* 13-14px */
    --text-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1rem);      /* 15-16px */
    --text-md: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);       /* 16-18px */
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);        /* 18-20px */
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);         /* 20-24px */
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);          /* 24-32px */
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);      /* 30-40px */
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);          /* 36-48px */
    --text-5xl: clamp(3rem, 2.25rem + 3.75vw, 4rem);            /* 48-64px */
    --text-6xl: clamp(3.75rem, 2.75rem + 5vw, 5rem);            /* 60-80px */
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    --tracking-mega: 0.25em;
    
    /* ========================================
     * SPACING SYSTEM (8px baseline)
     * ======================================== */
    --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-7: 1.75rem;     /* 28px */
    --space-8: 2rem;        /* 32px */
    --space-9: 2.25rem;     /* 36px */
    --space-10: 2.5rem;     /* 40px */
    --space-11: 2.75rem;    /* 44px */
    --space-12: 3rem;       /* 48px */
    --space-14: 3.5rem;     /* 56px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    --space-28: 7rem;       /* 112px */
    --space-32: 8rem;       /* 128px */
    --space-36: 9rem;       /* 144px */
    --space-40: 10rem;      /* 160px */
    --space-44: 11rem;      /* 176px */
    --space-48: 12rem;      /* 192px */
    --space-52: 13rem;      /* 208px */
    --space-56: 14rem;      /* 224px */
    --space-60: 15rem;      /* 240px */
    --space-64: 16rem;      /* 256px */
    
    /* Semantic Spacing */
    --space-xs: var(--space-2);     /* 8px */
    --space-sm: var(--space-4);     /* 16px */
    --space-md: var(--space-6);     /* 24px */
    --space-lg: var(--space-8);     /* 32px */
    --space-xl: var(--space-12);    /* 48px */
    --space-2xl: var(--space-16);   /* 64px */
    --space-3xl: var(--space-24);   /* 96px */
    
    /* Section Spacing */
    --section-py: clamp(4rem, 8vw, 8rem);
    --section-py-sm: clamp(3rem, 6vw, 5rem);
    --section-py-lg: clamp(6rem, 10vw, 12rem);
    
    /* ========================================
     * LAYOUT
     * ======================================== */
    --container-xs: 360px;
    --container-sm: 576px;
    --container-md: 768px;
    --container-lg: 992px;
    --container-xl: 1200px;
    --container-xxl: 1400px;
    --container-full: 100%;
    
    /* Container Padding */
    --container-px: clamp(1rem, 4vw, 2rem);
    
    /* ========================================
     * BORDERS & RADIUS
     * ======================================== */
    --border-width: 1px;
    --border-width-2: 2px;
    --border-width-3: 3px;
    --border-width-4: 4px;
    
    --border-color: var(--neutral-200);
    --border-color-dark: var(--neutral-300);
    --border-color-light: var(--neutral-100);
    
    --radius-none: 0;
    --radius-xs: 0.125rem;    /* 2px */
    --radius-sm: 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
     * ======================================== */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-none: none;
    
    /* Colored Shadows */
    --shadow-primary: 0 10px 30px rgba(var(--primary-main-rgb), 0.3);
    --shadow-primary-lg: 0 20px 40px rgba(var(--primary-main-rgb), 0.4);
    
    /* ========================================
     * TRANSITIONS & ANIMATIONS
     * ======================================== */
    --transition-fastest: 100ms;
    --transition-fast: 150ms;
    --transition-normal: 250ms;
    --transition-slow: 350ms;
    --transition-slower: 500ms;
    --transition-slowest: 700ms;
    
    /* Easing Functions */
    --ease-linear: linear;
    --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);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    
    /* Default Transition */
    --transition: all var(--transition-normal) var(--ease-in-out);
    --transition-transform: transform var(--transition-normal) var(--ease-in-out);
    --transition-opacity: opacity var(--transition-normal) var(--ease-in-out);
    --transition-colors: color var(--transition-normal) var(--ease-in-out),
                         background-color var(--transition-normal) var(--ease-in-out),
                         border-color var(--transition-normal) var(--ease-in-out);
    
    /* ========================================
     * Z-INDEX SCALE
     * ======================================== */
    --z-negative: -1;
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    --z-max: 9999;
    
    /* ========================================
     * BREAKPOINTS (for reference in JS)
     * ======================================== */
    --breakpoint-xs: 360px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
    
    /* ========================================
     * COMPONENT SPECIFIC
     * ======================================== */
    
    /* Header */
    --header-height: 80px;
    --header-height-scrolled: 64px;
    --header-bg: rgba(255, 255, 255, 0.98);
    --header-bg-dark: rgba(26, 26, 26, 0.98);
    
    /* Footer */
    --footer-bg: var(--neutral-900);
    --footer-text: var(--neutral-300);
    
    /* Buttons */
    --btn-height-sm: 36px;
    --btn-height-md: 44px;
    --btn-height-lg: 52px;
    --btn-px-sm: var(--space-4);
    --btn-px-md: var(--space-6);
    --btn-px-lg: var(--space-8);
    
    /* Inputs */
    --input-height-sm: 36px;
    --input-height-md: 48px;
    --input-height-lg: 56px;
    --input-px: var(--space-4);
    --input-border: var(--border-color);
    --input-border-focus: var(--primary-main);
    --input-bg: var(--white);
    
    /* Cards */
    --card-bg: var(--white);
    --card-border: var(--border-color);
    --card-radius: var(--radius-xl);
    --card-shadow: var(--shadow-md);
    --card-shadow-hover: var(--shadow-xl);
    
    /* Overlay */
    --overlay-light: rgba(255, 255, 255, 0.5);
    --overlay-medium: rgba(0, 0, 0, 0.5);
    --overlay-dark: rgba(0, 0, 0, 0.75);
    --overlay-gradient: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* ========================================
 * DARK MODE THEME
 * ======================================== */
[data-theme="dark"],
.dark-mode {
    --primary-dark: #f5f5f5;
    --neutral-900: #fafafa;
    --neutral-800: #f5f5f5;
    --neutral-700: #e0e0e0;
    --neutral-600: #c9c9c9;
    --neutral-500: #a0a0a0;
    --neutral-400: #757575;
    --neutral-300: #4a4a4a;
    --neutral-200: #2d2d2d;
    --neutral-100: #1e1e1e;
    --neutral-50: #0f0f0f;
    --white: #0f0f0f;
    --black: #ffffff;
    
    --border-color: var(--neutral-300);
    --border-color-dark: var(--neutral-400);
    --border-color-light: var(--neutral-200);
    
    --header-bg: rgba(15, 15, 15, 0.98);
    --input-bg: var(--neutral-100);
    --card-bg: var(--neutral-100);
    --card-border: var(--neutral-200);
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.25);
}

/* ========================================
 * ALTERNATIVE COLOR SCHEMES
 * ======================================== */

/* Wine/Burgundy Theme */
[data-color-scheme="wine"] {
    --primary-main: #722f37;
    --primary-light: #a94442;
    --primary-accent: #4a1c23;
    --primary-main-rgb: 114, 47, 55;
}

/* Ocean/Seafood Theme */
[data-color-scheme="ocean"] {
    --primary-main: #1e6091;
    --primary-light: #4a90b8;
    --primary-accent: #134568;
    --primary-main-rgb: 30, 96, 145;
}

/* Forest/Organic Theme */
[data-color-scheme="forest"] {
    --primary-main: #2d5a3d;
    --primary-light: #4a8f6a;
    --primary-accent: #1a3a25;
    --primary-main-rgb: 45, 90, 61;
}

/* Royal/Luxury Theme */
[data-color-scheme="royal"] {
    --primary-main: #4a235a;
    --primary-light: #7d3c98;
    --primary-accent: #311b3d;
    --primary-main-rgb: 74, 35, 90;
}
