/*
 * TradePal design tokens: the one place for brand colours, type and shape.
 * Values match tradepalapp.com.au (app/globals.css on the website). The website can import this
 * file later instead of keeping its own copy.
 *
 * Rules: purple = identity (logo, active nav, icons, charts, badges, links).
 *        orange = primary action buttons only (with dark text, like the website).
 *        green  = money and success.  red = destructive actions only.
 */
:root {
  /* Brand */
  --tp-brand: #5051F9;
  --tp-brand-hover: #3f40e0;
  --tp-brand-deep: #1e1b5c;
  --tp-brand-soft: #ececfe;
  --tp-cta: #FF7A1A;
  --tp-cta-hover: #ff8c38;
  --tp-cta-ink: #17151f;

  /* Surfaces and text */
  --tp-paper: #f6f3ec;
  --tp-surface: #ffffff;
  --tp-surface-2: #fbfaf7;
  --tp-border: #e7e2d7;
  --tp-border-strong: #d6cfc0;
  --tp-ink: #17151f;
  --tp-ink-soft: #4b4658;
  --tp-ink-muted: #6a6577;

  /* Status */
  --tp-money: #15803d;
  --tp-money-soft: #e3f4e8;
  --tp-warn: #a15c07;
  --tp-warn-soft: #fdf1dc;
  --tp-danger: #c0262d;
  --tp-danger-soft: #fbe7e7;
  --tp-info-soft: #ececfe;

  /* Type */
  --tp-font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --tp-font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tp-font-mono: "Geist Mono", ui-monospace, Consolas, monospace;

  /* Shape */
  --tp-radius: 0.625rem;
  --tp-radius-lg: 0.875rem;
  --tp-radius-pill: 9999px;
  --tp-shadow-sm: 0 1px 2px rgba(23, 21, 31, 0.05);
  --tp-shadow: 0 1px 2px rgba(23, 21, 31, 0.04), 0 4px 16px -6px rgba(23, 21, 31, 0.10);
  --tp-shadow-lg: 0 12px 40px -12px rgba(30, 27, 92, 0.25);
  --tp-ring: 0 0 0 3px rgba(80, 81, 249, 0.28);

  color-scheme: light;
}

/* Dark mode: deep indigo built from the brand purple */
:root[data-theme="dark"] {
  --tp-brand: #8d8eff;
  --tp-brand-hover: #a9aaff;
  --tp-brand-deep: #0b0a24;
  --tp-brand-soft: #25235a;
  --tp-cta: #ff8a33;
  --tp-cta-hover: #ff9d55;
  --tp-cta-ink: #17151f;

  --tp-paper: #100e2a;
  --tp-surface: #18163a;
  --tp-surface-2: #1d1b45;
  --tp-border: #2c2961;
  --tp-border-strong: #3b3878;
  --tp-ink: #f2f1fb;
  --tp-ink-soft: #cbc8ea;
  --tp-ink-muted: #9d99c8;

  --tp-money: #4ade80;
  --tp-money-soft: #12321f;
  --tp-warn: #fbbf24;
  --tp-warn-soft: #3a2a0c;
  --tp-danger: #f87171;
  --tp-danger-soft: #3d1518;
  --tp-info-soft: #25235a;

  --tp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --tp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px -8px rgba(0, 0, 0, 0.5);
  --tp-shadow-lg: 0 16px 48px -12px rgba(0, 0, 0, 0.6);
  --tp-ring: 0 0 0 3px rgba(141, 142, 255, 0.35);

  color-scheme: dark;
}
