/* =============================================================
   Design Tokens — AgentBridge Documentation
   ============================================================= */
:root {
  /* Brand */
  --color-brand:        #6366f1;
  --color-brand-light:  #818cf8;
  --color-brand-dark:   #4f46e5;
  --color-brand-muted:  #eef2ff;

  /* Neutrals */
  --color-bg:           #ffffff;
  --color-bg-subtle:    #f8fafc;
  --color-bg-muted:     #f1f5f9;
  --color-border:       #e2e8f0;
  --color-border-strong:#cbd5e1;

  /* Text */
  --color-text:         #0f172a;
  --color-text-muted:   #475569;
  --color-text-subtle:  #94a3b8;
  --color-text-invert:  #ffffff;

  /* Semantic */
  --color-success:      #10b981;
  --color-success-bg:   #ecfdf5;
  --color-warning:      #f59e0b;
  --color-warning-bg:   #fffbeb;
  --color-danger:       #ef4444;
  --color-danger-bg:    #fef2f2;
  --color-info:         #3b82f6;
  --color-info-bg:      #eff6ff;

  /* Code */
  --color-code-bg:      #0f172a;
  --color-code-text:    #e2e8f0;
  --color-code-inline-bg: #f1f5f9;
  --color-code-inline:  #be185d;

  /* Typography */
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia 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;

  --font-normal:  400;
  --font-medium:  500;
  --font-semibold:600;
  --font-bold:    700;

  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.625;

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

  /* Radii */
  --radius-sm:  0.25rem;
  --radius-md:  0.375rem;
  --radius-lg:  0.5rem;
  --radius-xl:  0.75rem;
  --radius-2xl: 1rem;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);

  /* Layout */
  --sidebar-width:     260px;
  --toc-width:         220px;
  --content-max-width: 720px;
  --header-height:     60px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   200ms ease;
  --transition-slow:   300ms ease;
}

/* ----- Dark mode ------------------------------------------ */
[data-theme="dark"] {
  --color-bg:           #0f172a;
  --color-bg-subtle:    #1e293b;
  --color-bg-muted:     #1e293b;
  --color-border:       #334155;
  --color-border-strong:#475569;

  --color-text:         #f1f5f9;
  --color-text-muted:   #94a3b8;
  --color-text-subtle:  #64748b;

  --color-brand-muted:  #1e1b4b;

  --color-success-bg:   #052e16;
  --color-warning-bg:   #1c1400;
  --color-danger-bg:    #1c0606;
  --color-info-bg:      #0c1a33;

  --color-code-bg:      #020817;
  --color-code-inline-bg:#1e293b;
  --color-code-inline:  #f472b6;

  color-scheme: dark;
}
