/**
 * CSS Variables - Glassmorphism System
 */

:root {
    /* Fonts */
    --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 1.5rem;
    /* 24px */
    --spacing-lg: 2.5rem;
    /* 40px */
    --spacing-xl: 4rem;
    /* 64px */
    --spacing-xxl: 8rem;
    /* 128px */

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-default: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-slow: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Light Mode (Default?) - Or Dark Mode default? 
   User asked: "Default behavior: On first visit, follow prefers-color-scheme"
   But we need a base. Let's define base as Light and override ensuring we support both.
*/

:root,
[data-theme="dark"] {
    --bg-body: #070B12;
    --bg-gradient: radial-gradient(circle at 50% 0%, #0F172A 0%, #070B12 100%);

    /* Glass Surfaces */
    --surface-glass: rgba(12, 18, 32, 0.55);
    --surface-strong: rgba(12, 18, 32, 0.78);
    --surface-hover: rgba(20, 28, 48, 0.65);

    /* Borders */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-active: rgba(255, 255, 255, 0.15);

    /* Typography */
    --text-primary: #E7EEF8;
    --text-secondary: #98A2B3;
    --text-muted: #64748B;

    /* Accents - brighter for dark mode */
    --accent-primary: #18D1A7;
    /* Teal brighter */
    --accent-secondary: #3B82F6;
    /* Blue brighter */
    --accent-gradient: linear-gradient(135deg, #18D1A7 0%, #3B82F6 100%);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-body: #F5F7FB;
    --bg-gradient: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #F5F7FB 100%);

    /* Glass Surfaces */
    --surface-glass: rgba(255, 255, 255, 0.55);
    --surface-strong: rgba(255, 255, 255, 0.80);
    --surface-hover: rgba(255, 255, 255, 0.65);

    /* Borders */
    --border-light: rgba(15, 23, 42, 0.08);
    /* faint */
    --border-active: rgba(15, 23, 42, 0.15);
    /* active/hover */

    /* Typography */
    --text-primary: #0B1220;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    /* Accents */
    --accent-primary: #0EA5A4;
    /* Teal */
    --accent-secondary: #2563EB;
    /* Blue */
    --accent-gradient: linear-gradient(135deg, #0EA5A4 0%, #2563EB 100%);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-glass: 0 8px 32px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 0 0 0px rgba(14, 165, 164, 0);
}

/* Helper Class for Glass */
.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-glass);
}