/* ============================================================
   PROMPT SOLUTIONS — DESIGN TOKENS
   Dark-primary marketplace palette. Clean, advanced, inviting.
   ============================================================ */

:root, [data-theme="light"] {
  /* Surfaces */
  --color-bg:               #f5f6f8;
  --color-surface:          #ffffff;
  --color-surface-2:        #f0f2f5;
  --color-surface-offset:   #e8eaee;
  --color-divider:          #dde0e6;
  --color-border:           #d0d4db;

  /* Text */
  --color-text:             #111827;
  --color-text-muted:       #6b7280;
  --color-text-faint:       #9ca3af;
  --color-text-inverse:     #f9fafb;

  /* Primary Accent — Electric Indigo */
  --color-primary:          #4f46e5;
  --color-primary-hover:    #4338ca;
  --color-primary-active:   #3730a3;
  --color-primary-highlight:#eef2ff;

  /* Secondary — Slate */
  --color-secondary:        #0f172a;
  --color-secondary-hover:  #1e293b;

  /* Success */
  --color-success:          #059669;
  --color-success-highlight:#d1fae5;

  /* Error */
  --color-error:            #dc2626;
  --color-error-highlight:  #fee2e2;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.625rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm:  0 1px 3px oklch(0.1 0.01 260 / 0.08);
  --shadow-md:  0 4px 16px oklch(0.1 0.01 260 / 0.10);
  --shadow-lg:  0 12px 40px oklch(0.1 0.01 260 / 0.14);
  --shadow-glow: 0 0 40px oklch(0.55 0.22 264 / 0.25);

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* 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;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body:    'General Sans', 'Inter', sans-serif;
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg:               #0d0f14;
  --color-surface:          #141720;
  --color-surface-2:        #1a1e2a;
  --color-surface-offset:   #1f2333;
  --color-divider:          #252b3b;
  --color-border:           #2d3448;

  --color-text:             #e8eaf0;
  --color-text-muted:       #8892a4;
  --color-text-faint:       #4d5672;
  --color-text-inverse:     #0d0f14;

  --color-primary:          #6366f1;
  --color-primary-hover:    #818cf8;
  --color-primary-active:   #a5b4fc;
  --color-primary-highlight:#1e1b4b;

  --color-secondary:        #e8eaf0;
  --color-secondary-hover:  #c7cce0;

  --color-success:          #34d399;
  --color-success-highlight:#064e3b;

  --color-error:            #f87171;
  --color-error-highlight:  #7f1d1d;

  --shadow-sm:  0 1px 3px oklch(0 0 0 / 0.3);
  --shadow-md:  0 4px 16px oklch(0 0 0 / 0.4);
  --shadow-lg:  0 12px 40px oklch(0 0 0 / 0.5);
  --shadow-glow: 0 0 60px oklch(0.6 0.2 264 / 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #0d0f14;
    --color-surface:          #141720;
    --color-surface-2:        #1a1e2a;
    --color-surface-offset:   #1f2333;
    --color-divider:          #252b3b;
    --color-border:           #2d3448;
    --color-text:             #e8eaf0;
    --color-text-muted:       #8892a4;
    --color-text-faint:       #4d5672;
    --color-text-inverse:     #0d0f14;
    --color-primary:          #6366f1;
    --color-primary-hover:    #818cf8;
    --color-primary-active:   #a5b4fc;
    --color-primary-highlight:#1e1b4b;
    --color-secondary:        #e8eaf0;
    --color-secondary-hover:  #c7cce0;
    --color-success:          #34d399;
    --color-success-highlight:#064e3b;
    --color-error:            #f87171;
    --color-error-highlight:  #7f1d1d;
    --shadow-sm:  0 1px 3px oklch(0 0 0 / 0.3);
    --shadow-md:  0 4px 16px oklch(0 0 0 / 0.4);
    --shadow-lg:  0 12px 40px oklch(0 0 0 / 0.5);
    --shadow-glow: 0 0 60px oklch(0.6 0.2 264 / 0.3);
  }
}
