/* ============================================================
   css/variables.css — CSS Custom Properties (Theming)
   ============================================================ */

:root {
    /* ---- Light theme (default) ---- */
    --color-bg-primary: #f6f4f0;
    --color-bg-surface: #ffffff;
    --color-bg-hover: #edeae5;
    --color-bg-surface-alt: #f0ede8;
    --color-bg-input: #f6f4f0;
    --color-bg-code: #f0ede8;
    --color-bg-tip: #f5f0e8;

    --color-text-primary: #2a2826;
    --color-text-secondary: #6a6865;
    --color-text-muted: #9a9895;
    --color-text-inverse: #f6f4f0;

    --color-border: #e2dfda;
    --color-border-focus: #b8a88a;

    --color-accent: #8a7a6a;
    --color-accent-hover: #7a6a5a;
    --color-accent-light: #ede8e2;
    --color-accent-text: #8a7a6a;

    --color-shadow: rgba(42, 40, 38, 0.06);
    --color-shadow-lg: rgba(42, 40, 38, 0.12);

    --color-success: #5a7a5a;
    --color-error: #8a5a5a;

    /* ---- Typography ---- */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* ---- Spacing ---- */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* ---- Border radius ---- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* ---- Shadows ---- */
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 20px var(--color-shadow);
    --shadow-lg: 0 8px 40px var(--color-shadow-lg);

    /* ---- Transitions ---- */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* ---- Max width ---- */
    --max-width: 1200px;
}

/* ---- Dark theme ---- */
[data-theme="dark"] {
    --color-bg-primary: #1a1816;
    --color-bg-surface: #242220;
    --color-bg-hover: #302d2a;
    --color-bg-surface-alt: #2a2824;
    --color-bg-input: #242220;
    --color-bg-code: #2a2824;
    --color-bg-tip: #2a2824;

    --color-text-primary: #e6e4df;
    --color-text-secondary: #8a8885;
    --color-text-muted: #5a5855;
    --color-text-inverse: #1a1816;

    --color-border: #3a3835;
    --color-border-focus: #b8a88a;

    --color-accent: #b8a88a;
    --color-accent-hover: #c8b89a;
    --color-accent-light: #2a2824;
    --color-accent-text: #b8a88a;

    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-lg: rgba(0, 0, 0, 0.5);

    --color-success: #7a9a7a;
    --color-error: #9a7a7a;
}