/**
 * CSS Custom Properties — ESGscheibe Light Theme
 * Variable names retained from base theme for compatibility.
 * Values flipped to light palette: white surfaces, slate text, steel-blue accent.
 *
 * @package ESGscheibe
 */

:root {
    /* Colors — light theme */
    --ts-black: #ffffff;            /* page background (was darkest) */
    --ts-dark: #fafbfc;             /* main surface */
    --ts-dark-secondary: #f4f6f8;   /* secondary surface */
    --ts-dark-tertiary: #eaedf1;    /* tertiary surface / dividers */
    --ts-silver: #5a6b7d;           /* secondary text */
    --ts-silver-light: #8b97a3;     /* tertiary text / muted */
    --ts-white: #0f1d2e;            /* primary text (was light text on dark) */
    --ts-accent: #1e5172;           /* steel blue */
    --ts-accent-hover: #2a6b94;     /* steel blue hover */
    --ts-accent-glow: rgba(30, 81, 114, 0.12);
    --ts-purple: #3a8fa5;           /* secondary accent: muted teal */
    --ts-purple-light: #5fa9be;
    --ts-success: #2a7d59;
    --ts-error: #c44545;

    /* Glassmorphism — neutralized for flat light theme */
    --ts-glass-bg: rgba(255, 255, 255, 0.92);
    --ts-glass-border: rgba(15, 29, 46, 0.08);
    --ts-glass-blur: blur(8px);

    /* Gradients — kept as gradient form for compat, mostly flat or near-flat */
    --ts-gradient-mirror: linear-gradient(135deg, rgba(15,29,46,0.02) 0%, rgba(15,29,46,0) 50%, rgba(15,29,46,0.02) 100%);
    --ts-gradient-silver: linear-gradient(180deg, #f4f6f8 0%, #eaedf1 50%, #d8dfe5 100%);
    --ts-gradient-accent: linear-gradient(135deg, #1e5172 0%, #2a6b94 100%);
    --ts-gradient-accent-reverse: linear-gradient(135deg, #2a6b94 0%, #1e5172 100%);

    /* Typography — sans only, technical feel */
    --ts-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ts-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ts-font-mono: 'JetBrains Mono', 'Courier New', monospace;

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

    /* Border Radius — tighter for technical look */
    --ts-radius-sm: 4px;
    --ts-radius-md: 6px;
    --ts-radius-lg: 8px;
    --ts-radius-xl: 12px;
    --ts-radius-full: 9999px;

    /* Shadows — subtle for light theme */
    --ts-shadow-sm: 0 1px 2px rgba(15, 29, 46, 0.04);
    --ts-shadow-md: 0 2px 6px rgba(15, 29, 46, 0.06), 0 1px 2px rgba(15, 29, 46, 0.04);
    --ts-shadow-lg: 0 8px 24px rgba(15, 29, 46, 0.08), 0 2px 6px rgba(15, 29, 46, 0.04);
    --ts-shadow-xl: 0 16px 40px rgba(15, 29, 46, 0.10), 0 4px 12px rgba(15, 29, 46, 0.06);
    --ts-shadow-glow: 0 0 0 3px rgba(30, 81, 114, 0.18);
    --ts-shadow-inner: inset 0 1px 2px rgba(15, 29, 46, 0.04);

    /* Transitions */
    --ts-transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --ts-transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --ts-transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
    --ts-transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Layout */
    --ts-max-width: 1400px;
    --ts-header-height: 76px;
    --ts-admin-bar-height: 0px;
}

/* Admin bar */
.admin-bar {
    --ts-admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar {
        --ts-admin-bar-height: 46px;
    }
}
