/* ==========================================================================
   CSS Variables - Design Tokens
   ========================================================================== */

/* -----------------------------------------------------------------------------
   Light Theme (Default)
   -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
    /* Brand Colors */
    --brand-primary: #41312c;
    --brand-secondary: #FAE1B3;
    --brand-accent: #F3D18D;

    /* Text Colors */
    --text-primary: #2B1B14;
    --text-secondary: #5A4A3F;
    --text-muted: #8A7A6F;
    --text-light: #7A6A5F;

    /* Background Colors */
    --bg-body: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light: #F5F3EF;
    --bg-card: #FFFFFF;
    --bg-elevated: #F5F3EF;

    /* Border Colors */
    --border-color: #D8C9B5;

    /* Shadows */
    --shadow-color: rgba(122, 46, 16, 0.1);
    --shadow-color-strong: rgba(122, 46, 16, 0.2);
    --overlay-bg: rgba(0, 0, 0, 0.3);

    /* Header */
    --header-bg: var(--bg-white);
    --header-border: transparent;

    /* Footer */
    --footer-bg: var(--text-primary);
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-border: rgba(255, 255, 255, 0.1);
}

/* -----------------------------------------------------------------------------
   Dark Theme
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
    /* Brand Colors */
    --brand-primary: #D4A574;
    --brand-secondary: #FAE1B3;
    --brand-accent: #E8B878;

    /* Text Colors */
    --text-primary: #F5F2EE;
    --text-secondary: #B8AFA6;
    --text-muted: #6A625A;
    --text-light: #7A7067;

    /* Background Colors */
    --bg-body: #0D0B0A;
    --bg-white: #0D0B0A;
    --bg-light: #1E1A17;
    --bg-card: #161311;
    --bg-elevated: #1E1A17;

    /* Border Colors */
    --border-color: #2A2520;

    /* Shadows */
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-color-strong: rgba(0, 0, 0, 0.5);
    --overlay-bg: rgba(0, 0, 0, 0.7);

    /* Header */
    --header-bg: var(--bg-body);
    --header-border: var(--border-color);

    /* Footer */
    --footer-bg: var(--bg-card);
    --footer-text: var(--text-secondary);
    --footer-border: var(--border-color);
}

/* -----------------------------------------------------------------------------
   Static Design Tokens (Same for both themes)
   -------------------------------------------------------------------------- */
:root {
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Dancing Script', cursive;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.85rem;
    --text-md: 1rem;
    --text-base: 1rem;
    --text-lg: 1.1rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.75rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
    --text-6xl: 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;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Layout */
    --container-max: 1400px;
    --container-content: 1200px;
    --container-narrow: 1000px;

    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 50;
    --z-header: 100;
    --z-overlay: 150;
    --z-modal: 200;
}

/* Computed shadows using theme colors */
:root,
[data-theme="light"],
[data-theme="dark"] {
    --shadow-sm: 0 1px 3px var(--shadow-color);
    --shadow-md: 0 4px 6px var(--shadow-color);
    --shadow-lg: 0 10px 20px var(--shadow-color);
    --shadow-xl: 0 20px 40px var(--shadow-color);
    --shadow-hero: 0 30px 60px var(--shadow-color-strong);
}
