/* General Marketplace Theme — CSS Variables
   Override these in niche themes to change the look without touching HTML
   Light mode on :root, dark mode on [data-theme="dark"] */
:root {
    /* ── Colors ── */
    --color-primary: #8b5cf6;
    --color-primary-hover: #7c3aed;
    --color-primary-light: #ede9fe;
    --color-secondary: #10b981;
    --color-secondary-hover: #059669;
    --color-accent: #8b5cf6;
    --color-accent-hover: #7c3aed;

    /* ── Backgrounds ── */
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-card: #ffffff;
    --color-bg-header: #ffffff;
    --color-bg-footer: #0f172a;

    /* ── Text ── */
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #ffffff;
    --color-text-footer: #94a3b8;
    --color-text-footer-heading: #e2e8f0;

    /* ── Borders ── */
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-border-focus: #8b5cf6;

    /* ── Typography ── */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

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

    /* ── Border Radius ── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);

    /* ── Layout ── */
    --max-width: 1280px;
    --header-height: 70px;
    --sidebar-width: 260px;

    /* ── Transitions ── */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

[data-theme="dark"] {
    --color-primary: #a78bfa;
    --color-primary-hover: #c4b5fd;
    --color-primary-light: #312e81;
    --color-secondary: #34d399;
    --color-secondary-hover: #6ee7b7;
    --color-accent: #a78bfa;
    --color-accent-hover: #c4b5fd;

    --color-bg: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-tertiary: #334155;
    --color-bg-card: #1e293b;
    --color-bg-header: #0f172a;
    --color-bg-footer: #020617;

    --color-text: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-text-inverse: #0f172a;
    --color-text-footer: #64748b;
    --color-text-footer-heading: #cbd5e1;

    --color-border: #334155;
    --color-border-light: #1e293b;
    --color-border-focus: #a78bfa;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}
