/*
 * Creativebowl - CSS Custom Properties (Design Tokens)
 * Basierend auf 8px Grid System
 * Dark Mode = Default, Light Mode = Alternative
 */

:root {
    /* --- FARBEN --- */
    /* Primärfarbe: Creativebowl Red */
    --color-primary: #EB595A;
    --color-primary-light: #F2A0A1;
    --color-primary-dark: #A33939;

    /* Sekundärfarbe: Neutral */
    --color-secondary: #0F0F0F;
    --color-secondary-light: #F5F5F5;
    --color-secondary-dark: #0F0F0F;

    /* Akzentfarbe */
    --color-accent: #EB595A;
    --color-accent-hover: #C94849;

    /* Neutrale Farben (Dark Mode - Default) */
    --color-bg-body: #121212;
    --color-bg-surface: #1E1E1E;
    --color-bg-subtle: #2A2A2A;
    --color-text-main: #FFFFFF;
    --color-text-muted: #A0A0A0;
    --color-border: #333333;

    /* Status-Farben */
    --color-success: #059669;
    --color-warning: #D97706;
    --color-error: #DC2626;
    --color-info: #3B82F6;

    /* --- TYPOGRAFIE --- */
    --font-heading: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Größen-Skala (rem-basiert) */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Letter Spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;

    /* --- ABSTÄNDE (8px Grid) --- */
    --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-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-32: 8rem;        /* 128px */

    /* --- SCHATTEN --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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-accent: 0 4px 16px rgba(235, 89, 90, 0.3);
    --shadow-accent-lg: 0 8px 24px rgba(235, 89, 90, 0.4);

    /* --- BORDER RADIUS --- */
    --radius-none: 0;
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 1rem;       /* 16px */
    --radius-xl: 1.5rem;     /* 24px */
    --radius-2xl: 2rem;      /* 32px */
    --radius-full: 9999px;

    /* --- TRANSITIONEN --- */
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;
    
    --ease-default: ease-in-out;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --transition-fast: var(--duration-fast) var(--ease-default);
    --transition-base: var(--duration-base) var(--ease-default);
    --transition-slow: var(--duration-slow) var(--ease-default);
    --transition-smooth: var(--duration-base) var(--ease-smooth);

    /* --- LAYOUT --- */
    --container-max: 1280px;
    --container-padding: 1rem;
    --header-height: 70px;
    --footer-height: auto;

    /* --- Z-INDEX SCALE --- */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ===== LIGHT MODE ===== */
html[data-theme="light"] {
    --color-bg-body: #FFFFFF;
    --color-bg-surface: #F8F8F8;
    --color-bg-subtle: #F0F0F0;
    --color-text-main: #121212;
    --color-text-muted: #666666;
    --color-border: #E0E0E0;
    
    /* Schatten für Light Mode (stärker sichtbar) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (min-width: 640px) {
    :root {
        --container-padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 2.5rem;
    }
}

@media (min-width: 1280px) {
    :root {
        --container-padding: 3rem;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0ms;
        --duration-base: 0ms;
        --duration-slow: 0ms;
        --duration-slower: 0ms;
    }
}
