/* ============================================================
   Smart Cafe - Design Tokens (CSS Custom Properties)
   Defines all colors, typography, spacing, and effects.
   Light/Dark mode support via [data-theme="dark"]
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* ---- Brand Colors ---- */
    /* Brand adapted from logo: magenta/pink primary, yellow accent */
    --color-primary: #ff2a7f;
    --color-primary-light: #ff7fb0;
    --color-primary-dark: #c01a66;
    --color-primary-rgb: 255, 42, 127;
    --color-secondary: #2c3e50;
    --color-accent: #ffd15a;
    --color-accent-light: #ffe6a8;

    /* ---- Status Colors ---- */
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-danger: #e74c3c;
    --color-info: #3498db;

    /* ---- Light Theme (default) ---- */
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f5;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-strong: rgba(255, 255, 255, 0.9);
    --bg-overlay: rgba(0, 0, 0, 0.5);

    --text-primary: #1a1d23;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-inverse: #ffffff;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-strong: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(255, 42, 127, 0.15);

    /* ---- Glassmorphism ---- */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 20px;

    /* ---- Typography ---- */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-hero: 3.5rem;

    /* ---- Spacing ---- */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* ---- Border Radius ---- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* ---- Transitions ---- */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ---- Z-Index Scale ---- */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal-backdrop: 500;
    --z-modal: 600;
    --z-toast: 700;
    --z-tooltip: 800;

    /* ---- Navbar ---- */
    --navbar-height: 72px;
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-tertiary: #232733;
    --bg-card: #1e2230;
    --bg-glass: rgba(30, 34, 48, 0.8);
    --bg-glass-strong: rgba(30, 34, 48, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.7);

    --text-primary: #f1f3f7;
    --text-secondary: #9ca3b4;
    --text-tertiary: #6b7280;
    --text-inverse: #1a1d23;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-strong: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 42, 127, 0.2);

    --glass-bg: rgba(30, 34, 48, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}
