/**
 * CSS Custom Properties (Variables)
 * Myśl Konserwatywna - Portal Publicystyczny
 * 
 * Stonowana, klasyczna paleta kolorów
 * Mobile-first approach
 */

:root {
  /* ===========================================
     KOLORY GŁÓWNE
     =========================================== */
  
  /* Primary - Granat (nagłówki, akcenty, linki) */
  --color-primary: #1a365d;
  --color-primary-dark: #0f2442;
  --color-primary-light: #2c5282;
  --color-primary-rgb: 26, 54, 93;
  
  /* Secondary - Bordo (CTA, wyróżnienia, hover) */
  --color-secondary: #8b2635;
  --color-secondary-dark: #6b1d29;
  --color-secondary-light: #a83244;
  --color-secondary-rgb: 139, 38, 53;
  
  /* Accent - Złoto (detale, ikony, dekoracje) */
  --color-accent: #b8860b;
  --color-accent-light: #daa520;
  --color-accent-dark: #8b6914;
  --color-accent-rgb: 184, 134, 11;

  /* ===========================================
     KOLORY NEUTRALNE
     =========================================== */
  
  /* Tła */
  --color-bg: #faf9f7;           /* Kremowa biel - główne tło */
  --color-bg-alt: #f5f3ef;       /* Jaśniejsze tło sekcji */
  --color-surface: #ffffff;      /* Karty, elementy, modale */
  --color-surface-elevated: #ffffff;
  
  /* Tekst */
  --color-text: #2d3748;         /* Ciemny szary - tekst główny */
  --color-text-light: #4a5568;   /* Jaśniejszy tekst */
  --color-text-muted: #718096;   /* Wyciszony tekst (meta, daty) */
  --color-text-inverse: #ffffff; /* Tekst na ciemnym tle */
  
  /* Obramowania */
  --color-border: #e2e0dc;
  --color-border-dark: #cbd5e0;
  --color-border-light: #edf2f7;
  
  /* Stany */
  --color-success: #38a169;
  --color-warning: #d69e2e;
  --color-error: #c53030;
  --color-info: #3182ce;

  /* ===========================================
     TYPOGRAFIA
     =========================================== */
  
  /* Font families */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Source Code Pro', Consolas, Monaco, monospace;
  
  /* Font weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;
  
  /* Letter spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;

  /* ===========================================
     ROZMIARY TEKSTU (Mobile-first)
     =========================================== */
  
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */

  /* ===========================================
     SPACING
     =========================================== */
  
  --space-0: 0;
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */

  /* ===========================================
     LAYOUT
     =========================================== */
  
  --container-max: 1200px;
  --container-padding: var(--space-4);
  --content-max-width: 720px;  /* Dla artykułów */
  
  /* Grid gaps */
  --grid-gap-sm: var(--space-4);
  --grid-gap-md: var(--space-6);
  --grid-gap-lg: var(--space-8);

  /* ===========================================
     SHADOWS
     =========================================== */
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  
  /* Colored shadows */
  --shadow-primary: 0 4px 14px rgba(var(--color-primary-rgb), 0.25);
  --shadow-secondary: 0 4px 14px rgba(var(--color-secondary-rgb), 0.25);

  /* ===========================================
     TRANSITIONS
     =========================================== */
  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slower: 500ms ease;
  
  /* Specific transitions */
  --transition-colors: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  --transition-transform: transform var(--transition-base);
  --transition-opacity: opacity var(--transition-base);
  --transition-shadow: box-shadow var(--transition-base);

  /* ===========================================
     BORDER RADIUS
     =========================================== */
  
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-md: 0.25rem;    /* 4px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 1rem;       /* 16px */
  --radius-full: 9999px;

  /* ===========================================
     Z-INDEX
     =========================================== */
  
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* ===========================================
     BREAKPOINTS (for reference in JS)
     =========================================== */
  
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1440px;
}

/* ===========================================
   RESPONSIVE OVERRIDES
   =========================================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
  :root {
    --text-3xl: 2.25rem;     /* 36px */
    --text-4xl: 2.75rem;     /* 44px */
    --text-5xl: 3.5rem;      /* 56px */
    --container-padding: var(--space-6);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  :root {
    --text-4xl: 3rem;        /* 48px */
    --text-5xl: 4rem;        /* 64px */
    --container-padding: var(--space-8);
  }
}

/* Large desktop (1440px+) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1400px;
  }
}
