/* BoardNest Design System — zgodny z Księgą Produktu v0.43 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Kolory — ciemna estetyka planszówkowa */
  --color-primary: #3db896;
  --color-primary-hover: #34a384;
  --color-primary-light: rgba(61, 184, 150, 0.14);
  --color-accent: #e8a838;
  --color-accent-hover: #f0b84a;
  --color-accent-light: rgba(232, 168, 56, 0.14);

  --color-bg: #0f1412;
  --color-surface: #1a2220;
  --color-surface-elevated: #232c29;
  --color-border: #2d3a36;
  --color-border-strong: #3f4f49;

  --color-text: #e8ede9;
  --color-text-muted: #8a9b94;
  --color-text-inverse: #0f1412;

  --color-success: #4ade80;
  --color-success-bg: rgba(74, 222, 128, 0.12);
  --color-warning: #f0b84a;
  --color-warning-bg: rgba(240, 184, 74, 0.12);
  --color-danger: #f87171;
  --color-danger-bg: rgba(248, 113, 113, 0.12);
  --color-info: #60a5fa;
  --color-info-bg: rgba(96, 165, 250, 0.12);

  /* Typografia */
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, serif;

  --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: 2rem;
  --text-4xl: 2.75rem;

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

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.65);

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 64px;
  --max-width: 1200px;
  --max-width-narrow: 720px;

  /* Transitions */
  --transition: 180ms ease;
}

/* Desktop — większa typografia i odstępy */
@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }

  :root {
    --sidebar-width: 288px;
    --header-height: 72px;
    --max-width: 1280px;
    --max-width-narrow: 800px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
}

.serif { font-family: var(--font-serif); }

.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
