/* ============================================================================
   Shared Base Styles — Theme Variables, Reset, Typography
   ============================================================================ */

:root {
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background 0.2s ease, color 0.2s ease;
}

[data-theme="light"] {
    color-scheme: light;

    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #f1f5f9;
    --input-bg: #ffffff;

    /* Text colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Accent colors */
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-secondary: #0ea5e9;

    /* Status colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Borders and shadows */
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    /* Special backgrounds */
    --info-panel-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --header-bg: #ffffff;
}

[data-theme="dark"] {
    color-scheme: dark;

    /* Background colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --input-bg: #1e293b;

    /* Text colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accent colors */
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-secondary: #38bdf8;

    /* Status colors */
    --success: #34d399;
    --warning: #fbbf24;
    --error: #f87171;

    /* Borders and shadows */
    --border: #334155;
    --border-strong: #475569;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);

    /* Special backgrounds */
    --info-panel-bg: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --header-bg: #1e293b;
}

/* ============================================================================
   Reset
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================================
   Typography
   ============================================================================ */

body {
    font-family: var(--font-body);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}
