/* ═══════════════════════════════════════════════════════════════════════════
   SpeedyBOT Public Site — Design Tokens
   Shared with admin panel variables; extended for marketing site
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* ── Spacing ───────────────────────────────────────────────────────── */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* ── Typography ────────────────────────────────────────────────────── */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* ── Radius ────────────────────────────────────────────────────────── */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* ── Transitions ───────────────────────────────────────────────────── */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Layout ────────────────────────────────────────────────────────── */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 72px;
    --footer-height: auto;

    /* ── Brand Colors (shared across themes) ──────────────────────────── */
    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --brand-200: #c7d2fe;
    --brand-300: #a5b4fc;
    --brand-400: #818cf8;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --brand-800: #3730a3;
    --brand-900: #312e81;
    --brand-primary: var(--brand-500);
    --blurple: #5865F2;
    --blurple-dark: #4752C4;

    /* ── Semantic Colors ───────────────────────────────────────────────── */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* ── Brand Colors (in :root) ────────────────────────────────────────── */

    /* ── Discord Blurple (in :root) ─────────────────────────────────────── */
    --blurple-light: #7983F5;

    /* ── Semantic ──────────────────────────────────────────────────────── */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #cffafe;
}

/* ── Dark Theme (default) ─────────────────────────────────────────────────── */
[data-theme="dark"] {
    --bg-primary: #0B0D13;
    --bg-secondary: #14161F;
    --bg-tertiary: #1C1F2E;
    --bg-elevated: #1E2130;
    --bg-hover: #252838;
    --bg-active: #2D3044;

    --border-primary: #2A2D3E;
    --border-secondary: #1E2130;
    --border-focus: var(--brand-500);

    --text-primary: #F1F1F4;
    --text-secondary: #A1A1B5;
    --text-tertiary: #6B6B80;
    --text-disabled: #4A4A5E;
    --text-inverse: #0B0D13;

    --header-bg: rgba(11, 13, 19, 0.85);
    --header-border: #1E2130;
    --card-bg: #14161F;
    --card-border: #1E2130;
    --card-hover: #1A1D2B;

    --input-bg: #1C1F2E;
    --input-border: #2A2D3E;
    --input-text: #F1F1F4;
    --input-placeholder: #6B6B80;

    --footer-bg: #08090D;
    --footer-border: #1E2130;
    --footer-text: #6B6B80;

    --gradient-hero: linear-gradient(135deg, #0B0D13 0%, #14161F 50%, #1a1040 100%);
    --gradient-brand: linear-gradient(135deg, var(--brand-500), var(--blurple));
    --gradient-card: linear-gradient(145deg, #14161F, #1C1F2E);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    --scrollbar-track: #0B0D13;
    --scrollbar-thumb: #2A2D3E;

    color-scheme: dark;
}

/* ── Light Theme ──────────────────────────────────────────────────────────── */
[data-theme="light"] {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;
    --bg-elevated: #FFFFFF;
    --bg-hover: #F1F5F9;
    --bg-active: #E2E8F0;

    --border-primary: #E2E8F0;
    --border-secondary: #F1F5F9;
    --border-focus: var(--brand-500);

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --text-disabled: #CBD5E1;
    --text-inverse: #FFFFFF;

    --header-bg: rgba(255, 255, 255, 0.85);
    --header-border: #E2E8F0;
    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;
    --card-hover: #F8FAFC;

    --input-bg: #FFFFFF;
    --input-border: #E2E8F0;
    --input-text: #0F172A;
    --input-placeholder: #94A3B8;

    --footer-bg: #0F172A;
    --footer-border: #1E293B;
    --footer-text: #94A3B8;

    --gradient-hero: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 50%, #E0E7FF 100%);
    --gradient-brand: linear-gradient(135deg, var(--brand-500), var(--blurple));
    --gradient-card: linear-gradient(145deg, #FFFFFF, #F8FAFC);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.08);

    --scrollbar-track: #F1F5F9;
    --scrollbar-thumb: #CBD5E1;

    color-scheme: light;
}
