/* ==========================================================================
   AlleProfit Design System — CSS Custom Properties
   ========================================================================== */

:root {
  /* ---- Colors: graal palette (ALPR-95, jasny motyw jako jedyny) ---- */
  --color-bg: #eae7de;
  --color-surface: #f4f2ec;
  --color-surface-hover: #dfdbd0;
  /* Subtle inset fill for badges/pills/info dots. Referenced with hardcoded
     light fallbacks (#eef2ff) across several JS modules — defining it here
     keeps them on the single palette source (audit ALPR-58; graal value
     since ALPR-95). */
  --color-bg-subtle: #dfdbd0;
  --color-border: rgba(25, 28, 33, 0.16);
  --color-text: #191c21;
  /* AA (pomiar 2026-07-31): #4e545c = 6.18:1 na #eae7de, 6.83:1 na #f4f2ec. */
  --color-text-secondary: #4e545c;
  /* AA bump (audit 2026-07-01): #94a3b8 was 2.56:1 on white (th, hints,
     empty-state copy). #64748b = 4.76:1. ALPR-95: #4e545c = 6.18:1 na
     nowym tle #eae7de (pomiar 2026-07-31). */
  --color-text-muted: #4e545c;

  --color-primary: #ff5a00;
  --color-primary-hover: #d64a00;
  --color-primary-light: #f8e7d8;
  /* Near-black on brand orange (Allegro-style). White was 3.13:1 on #ff5a00
     (AA fail on every primary button); near-black jak w graal btn-p:
     #1a0f05 = 6.02:1 na #ff5a00 (pomiar 2026-07-31). */
  --color-primary-text: #1a0f05;

  --color-gold: #b08e3e;
  --color-gold-hover: #97782f;
  --color-gold-light: #efe6ce;
  --color-gold-text: #6b5415;

  --color-success: #1b7a4b;
  --color-success-hover: #146239;
  --color-success-light: #dcebe0;
  --color-success-text: #14523a;

  --color-danger: #c11b2a;
  --color-danger-hover: #a11523;
  --color-danger-light: #f3dcda;
  --color-danger-text: #7c1017;

  --color-warning: #b45309;
  --color-warning-hover: #92400e;
  --color-warning-light: #f4e4ce;
  --color-warning-text: #7c3a06;

  --color-info: #2b6cb0;
  --color-info-light: #dfe7f0;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(25, 28, 33, 0.05);
  --shadow: 0 1px 3px rgba(25, 28, 33, 0.07), 0 1px 2px rgba(25, 28, 33, 0.04);
  --shadow-md: 0 4px 6px rgba(25, 28, 33, 0.05), 0 2px 4px rgba(25, 28, 33, 0.04);
  --shadow-lg: 0 10px 25px rgba(25, 28, 33, 0.07), 0 4px 10px rgba(25, 28, 33, 0.04);
  --shadow-xl: 0 20px 50px rgba(25, 28, 33, 0.09);

  /* ---- 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;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* ---- Border Radii ---- */
  /* Graal: ostre rogi (ALPR-95). --radius-full zostaje dla kropek statusów
     i elementów celowo okrągłych. */
  --radius-sm: 0;
  --radius: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-2xl: 0;
  --radius-full: 9999px;

  /* ---- Typography ---- */
  --font: 'Chivo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Red Hat Mono', 'JetBrains Mono', ui-monospace, 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;

  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

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

  /* ---- Z-Index Scale ---- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  /* Toast must sit above blocking modals like the subscription-gate
     (zIndex 11000 inline) — otherwise post-payment toasts ("Płatność
     zaakceptowana") render under the gate and the user sees nothing. */
  --z-toast: 13000;

  /* ---- Layout ---- */
  --sidebar-width: 260px;
  --sidebar-collapsed: 64px;
  --topbar-height: 64px;
  --container-max: 1280px;
}
