/* ============================================================
   PRESTASHOP DEVDOCS — Design Token System
   ============================================================ */

:root {
  /* ── Brand ─────────────────────────────────────────────── */
  --brand-primary:   #6366f1;
  --brand-secondary: #8b5cf6;
  --brand-accent:    #06b6d4;

  /* ── Category Colors (Domain Palette) ────────────────────*/
  --cat-hooks:       #3b82f6;   /* Electric Blue    */
  --cat-modules:     #10b981;   /* Emerald Green    */
  --cat-themes:      #8b5cf6;   /* Violet           */
  --cat-overrides:   #f59e0b;   /* Amber            */
  --cat-database:    #14b8a6;   /* Teal             */
  --cat-admin:       #6366f1;   /* Indigo           */
  --cat-front:       #f43f5e;   /* Rose             */
  --cat-webservice:  #0ea5e9;   /* Sky              */
  --cat-security:    #ef4444;   /* Red              */
  --cat-performance: #f97316;   /* Orange           */
  --cat-multistore:  #22d3ee;   /* Cyan             */
  --cat-i18n:        #84cc16;   /* Lime             */
  --cat-payment:     #eab308;   /* Yellow           */
  --cat-carriers:    #a78bfa;   /* Soft Purple      */
  --cat-email:       #ec4899;   /* Pink             */

  /* ── Semantic Colors ────────────────────────────────────── */
  --color-success:  #10b981;
  --color-warning:  #f59e0b;
  --color-danger:   #ef4444;
  --color-info:     #3b82f6;
  --color-tip:      #8b5cf6;

  /* ── Neutrals ───────────────────────────────────────────── */
  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  --neutral-950: #020617;

  /* ── Typography ─────────────────────────────────────────── */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Consolas', 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;
  --text-7xl:  4.5rem;

  --leading-tight:  1.25;
  --leading-normal: 1.5;
  --leading-loose:  1.75;

  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    900;

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

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

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-sm:    0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl:    0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-2xl:   0 25px 50px -12px rgba(0,0,0,.25);
  --shadow-card:        0 0 0 1px rgba(255,255,255,.05), 0 4px 16px rgba(0,0,0,.3);
  --shadow-card-hover:  0 0 0 1px rgba(255,255,255,.12), 0 8px 32px rgba(0,0,0,.4);
  --shadow-glow:        0 0 24px rgba(99,102,241,.35);

  /* ── Animations ──────────────────────────────────────────── */
  --dur-fast:   150ms;
  --dur-normal: 250ms;
  --dur-slow:   400ms;
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:    cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* ── Z-index ─────────────────────────────────────────────── */
  --z-sidebar:  100;
  --z-header:   200;
  --z-modal:    300;
  --z-overlay:  400;
  --z-toast:    500;

  /* ── Light Theme Surface ─────────────────────────────────── */
  --bg-base:       #ffffff;
  --bg-surface:    #f8fafc;
  --bg-elevated:   #ffffff;
  --bg-overlay:    rgba(0,0,0,.5);
  --bg-code:       #1e293b;
  --bg-hero:       linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-inverse:   #f8fafc;
  --text-code:      #e2e8f0;

  --border-color:   #e2e8f0;
  --border-subtle:  rgba(0,0,0,.06);
  --border-code:    rgba(255,255,255,.08);

  /* ── Sidebar ─────────────────────────────────────────────── */
  --sidebar-width:  260px;
  --header-height:  64px;
  --toc-width:      220px;
}

/* ── Dark Theme ───────────────────────────────────────────── */
[data-theme="dark"],
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-base:       #0f172a;
    --bg-surface:    #1e293b;
    --bg-elevated:   #1e293b;
    --bg-code:       #0d1117;

    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    --border-color:   rgba(255,255,255,.08);
    --border-subtle:  rgba(255,255,255,.04);

    --shadow-card:       0 0 0 1px rgba(255,255,255,.06), 0 4px 20px rgba(0,0,0,.5);
    --shadow-card-hover: 0 0 0 1px rgba(255,255,255,.12), 0 8px 32px rgba(0,0,0,.6);
  }
}

[data-theme="dark"] {
  --bg-base:       #0f172a;
  --bg-surface:    #1e293b;
  --bg-elevated:   #1e293b;
  --bg-code:       #0d1117;
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --border-color:   rgba(255,255,255,.08);
  --border-subtle:  rgba(255,255,255,.04);
  --shadow-card:       0 0 0 1px rgba(255,255,255,.06), 0 4px 20px rgba(0,0,0,.5);
  --shadow-card-hover: 0 0 0 1px rgba(255,255,255,.12), 0 8px 32px rgba(0,0,0,.6);
}
