/**
 * Wedding Photo Carousel - Theme System
 * 
 * 5-colour customisable theme using CSS custom properties.
 * Admins can override these colours via the admin panel.
 */

:root {
    /* Primary colour palette - 5 customisable colours */
    --color-background: #FDF8F3;
    /* Cream - main page background */
    --color-primary: #2D5A3D;
    /* Forest Green - primary actions, headers */
    --color-accent: #D4AF37;
    /* Gold - highlights, accents, focus states */
    --color-surface: #FFFFFF;
    /* Soft White - cards, inputs, overlays */
    --color-text: #333333;
    /* Charcoal - main text colour */

    /* Derived colours (computed from primary palette) */
    --color-primary-light: #3D7A52;
    --color-primary-dark: #1D3A2D;
    --color-accent-light: #E4C957;
    --color-accent-dark: #B49327;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    --color-border: #E5E0DB;
    --color-error: #D44D4D;
    --color-success: #4DAF6E;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Typography — overridden per-template via inline :root when font_preset is set */
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
    --font-family-display: 'Georgia', 'Times New Roman', 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: 1.875rem;
    --font-size-4xl: 2.25rem;

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

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-index layers */
    --z-dropdown: 100;
    --z-modal: 200;
    --z-toast: 300;
    --z-tooltip: 400;
}

/* Dark mode support (optional - can be enabled by admin) */
[data-theme="dark"] {
    --color-background: #1A1A1A;
    --color-primary: #4DAF6E;
    --color-accent: #E4C957;
    --color-surface: #2D2D2D;
    --color-text: #F0F0F0;
    --color-text-muted: #AAAAAA;
    --color-text-light: #888888;
    --color-border: #404040;
}