/**
 * Premium Design System - Three Distinct Concepts
 * A: Editorial Magazine
 * B: Luxury Minimal / Swiss
 * C: Cinematic Monochrome
 */

/* ===========================================
   BASE THEME VARIABLES (Shared Foundation)
   =========================================== */
:root {
    /* Core Colors */
    --color-black: #0a0a0a;
    --color-white: #ffffff;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;

    /* Timing Functions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);

    /* Default Theme (will be overridden) */
    --theme-bg: var(--color-white);
    --theme-bg-alt: var(--color-gray-50);
    --theme-text: var(--color-black);
    --theme-text-muted: var(--color-gray-500);
    --theme-border: var(--color-gray-200);
    --theme-accent: var(--color-black);
}

/* ===========================================
   CONCEPT A: EDITORIAL MAGAZINE
   Big type, strong hierarchy, curated spreads
   =========================================== */
[data-theme="editorial"] {
    /* Typography Scale - Large, confident */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --text-hero: clamp(3.5rem, 10vw, 8rem);
    --text-display: clamp(2.5rem, 6vw, 5rem);
    --text-headline: clamp(2rem, 4vw, 3.5rem);
    --text-title: clamp(1.5rem, 3vw, 2.25rem);
    --text-body-lg: 1.25rem;
    --text-body: 1.0625rem;
    --text-caption: 0.8125rem;
    --text-overline: 0.75rem;

    /* Line Heights */
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* Letter Spacing */
    --tracking-tight: -0.03em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.1em;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-48: 12rem;

    /* Grid */
    --grid-gap: 1.5rem;
    --container-max: 1440px;
    --container-padding: clamp(1.5rem, 5vw, 4rem);

    /* Colors */
    --theme-bg: var(--color-white);
    --theme-bg-alt: var(--color-gray-50);
    --theme-text: var(--color-black);
    --theme-text-muted: var(--color-gray-600);
    --theme-border: var(--color-gray-200);
    --theme-overlay: rgba(0, 0, 0, 0.6);

    /* Motion */
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 800ms;
    --duration-slower: 1200ms;

    /* Component Specific */
    --nav-height: 5rem;
    --nav-height-scrolled: 4rem;
    --button-radius: 0;
    --card-radius: 0;
    --image-radius: 0;
}

/* ===========================================
   CONCEPT B: LUXURY MINIMAL / SWISS
   Ultra-clean, precise spacing, perfect grid
   =========================================== */
[data-theme="swiss"] {
    /* Typography Scale - Smaller, precise */
    --font-display: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --text-hero: clamp(2.5rem, 6vw, 4.5rem);
    --text-display: clamp(2rem, 4vw, 3rem);
    --text-headline: clamp(1.5rem, 3vw, 2.25rem);
    --text-title: clamp(1.25rem, 2vw, 1.5rem);
    --text-body-lg: 1.125rem;
    --text-body: 1rem;
    --text-caption: 0.8125rem;
    --text-overline: 0.6875rem;

    /* Line Heights */
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    /* Letter Spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.08em;
    --tracking-wider: 0.15em;

    /* Spacing Scale - Modular */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-48: 12rem;

    /* Grid - Strict */
    --grid-gap: 1rem;
    --container-max: 1280px;
    --container-padding: clamp(1.5rem, 4vw, 3rem);

    /* Colors */
    --theme-bg: var(--color-white);
    --theme-bg-alt: var(--color-gray-100);
    --theme-text: var(--color-gray-900);
    --theme-text-muted: var(--color-gray-500);
    --theme-border: var(--color-gray-300);
    --theme-overlay: rgba(0, 0, 0, 0.5);

    /* Motion - Snappy */
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 800ms;

    /* Component Specific */
    --nav-height: 4rem;
    --nav-height-scrolled: 3.5rem;
    --button-radius: 2px;
    --card-radius: 2px;
    --image-radius: 2px;
}

/* ===========================================
   CONCEPT C: CINEMATIC MONOCHROME
   Dark, immersive, film-inspired
   =========================================== */
[data-theme="cinematic"] {
    /* Typography Scale - Dramatic */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --text-hero: clamp(3rem, 8vw, 6rem);
    --text-display: clamp(2.25rem, 5vw, 4rem);
    --text-headline: clamp(1.75rem, 3.5vw, 2.75rem);
    --text-title: clamp(1.25rem, 2.5vw, 1.75rem);
    --text-body-lg: 1.125rem;
    --text-body: 1rem;
    --text-caption: 0.875rem;
    --text-overline: 0.75rem;

    /* Line Heights */
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.55;
    --leading-relaxed: 1.7;

    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0.01em;
    --tracking-wide: 0.06em;
    --tracking-wider: 0.12em;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-48: 12rem;

    /* Grid */
    --grid-gap: 0.75rem;
    --container-max: 1600px;
    --container-padding: clamp(1rem, 4vw, 3rem);

    /* Colors - Dark Mode */
    --theme-bg: var(--color-gray-900);
    --theme-bg-alt: var(--color-black);
    --theme-text: var(--color-white);
    --theme-text-muted: var(--color-gray-400);
    --theme-border: var(--color-gray-700);
    --theme-overlay: rgba(0, 0, 0, 0.75);

    /* Motion - Cinematic */
    --duration-fast: 250ms;
    --duration-normal: 500ms;
    --duration-slow: 1000ms;
    --duration-slower: 1500ms;

    /* Component Specific */
    --nav-height: 5rem;
    --nav-height-scrolled: 4rem;
    --button-radius: 0;
    --card-radius: 0;
    --image-radius: 0;

    /* Cinematic specific */
    --grain-opacity: 0.03;
}

/* ===========================================
   THEME-SPECIFIC COMPONENT OVERRIDES
   =========================================== */

/* --- EDITORIAL THEME --- */
[data-theme="editorial"] body {
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
}

[data-theme="editorial"] .hero-title-large {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 400;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

[data-theme="editorial"] .section-title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: 400;
    letter-spacing: var(--tracking-tight);
    position: relative;
}

[data-theme="editorial"] .section-title::after {
    display: none;
}

[data-theme="editorial"] .page-title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: 400;
    letter-spacing: var(--tracking-tight);
}

[data-theme="editorial"] .gallery-title {
    font-family: var(--font-display);
    font-size: var(--text-title);
    font-weight: 400;
    text-transform: none;
    letter-spacing: var(--tracking-normal);
}

[data-theme="editorial"] .cta-button {
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: 500;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    padding: 1.25rem 2.5rem;
    border: 2px solid currentColor;
    background: transparent;
    color: var(--color-white);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

[data-theme="editorial"] .cta-button:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: none;
    box-shadow: none;
}

/* --- SWISS THEME --- */
[data-theme="swiss"] body {
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
}

[data-theme="swiss"] .hero-title-large {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

[data-theme="swiss"] .section-title {
    font-family: var(--font-display);
    font-size: var(--text-headline);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
}

[data-theme="swiss"] .page-title {
    font-family: var(--font-display);
    font-size: var(--text-headline);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
}

[data-theme="swiss"] .gallery-title {
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

[data-theme="swiss"] .cta-button {
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 1px solid var(--color-white);
    background: var(--color-white);
    color: var(--color-black);
    transition: all var(--duration-fast) var(--ease-out-quart);
}

[data-theme="swiss"] .cta-button:hover {
    background: transparent;
    color: var(--color-white);
    transform: none;
    box-shadow: none;
}

/* --- CINEMATIC THEME --- */
[data-theme="cinematic"] body {
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
}

[data-theme="cinematic"] .hero-title-large {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 400;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    font-style: italic;
}

[data-theme="cinematic"] .section-title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: 400;
    letter-spacing: var(--tracking-normal);
    font-style: italic;
}

[data-theme="cinematic"] .page-title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: 400;
    letter-spacing: var(--tracking-normal);
    font-style: italic;
}

[data-theme="cinematic"] .gallery-title {
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

[data-theme="cinematic"] .cta-button {
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: 400;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    padding: 1.125rem 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--color-white);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

[data-theme="cinematic"] .cta-button:hover {
    border-color: var(--color-white);
    background: var(--color-white);
    color: var(--color-black);
    transform: none;
    box-shadow: none;
}

/* Cinematic grain overlay (subtle, optional) */
[data-theme="cinematic"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    [data-theme="cinematic"]::before {
        display: none;
    }
}
