/**
 * CSS Custom Properties - Design Tokens
 * Nowy Tydzień Theme
 * 
 * @package NowyTydzien
 * @author Rafał Dziewa
 * @link https://dziewa.pl/
 * @version 2.0.0
 */

:root {
    /* ============================================
       KOLORY GŁÓWNE
       ============================================ */
    --color-primary: #e11b22;
    --color-primary-dark: #c01419;
    --color-primary-light: #ff3338;
    
    --color-secondary: #333333;
    --color-secondary-dark: #1a1a1a;
    --color-secondary-light: #666666;
    
    /* ============================================
       KOLORY TŁA
       ============================================ */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #fafafa;
    --bg-placeholder: #ebebeb;
    --bg-header: var(--color-primary);
    --bg-footer: #2c2c2c;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    /* ============================================
       KOLORY TEKSTU
       ============================================ */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    
    /* ============================================
       KOLORY LINKÓW
       ============================================ */
    --link-color: #0066cc;
    --link-hover: #004499;
    --link-visited: #551a8b;
    
    /* ============================================
       KOLORY OBRAMOWAŃ
       ============================================ */
    --border-color: #e0e0e0;
    --border-color-light: #f0f0f0;
    --border-color-dark: #cccccc;
    
    /* ============================================
       CIENIE
       ============================================ */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    
    /* ============================================
       TYPOGRAFIA - ROZMIARY
       ============================================ */
    --font-size-2xs: 0.625rem;    /* 10px */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-toc: 0.9375rem;   /* 15px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-md: 1.125rem;     /* 18px */
    --font-size-lg: 1.25rem;      /* 20px */
    --font-size-xl: 1.5rem;       /* 24px */
    --font-size-2xl: 2rem;        /* 32px */
    --font-size-3xl: 2.5rem;      /* 40px */
    --font-size-4xl: 3rem;        /* 48px */
    
    /* ============================================
       TYPOGRAFIA - KROJE PISMA
       ============================================ */
    --font-family-sans: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-family-mono: 'Courier New', Courier, monospace;
    
    /* ============================================
       TYPOGRAFIA - WAGI
       ============================================ */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* ============================================
       TYPOGRAFIA - LINE HEIGHT
       ============================================ */
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
    --line-height-loose: 2;
    
    /* ============================================
       SPACING (bazowany na 8px grid)
       ============================================ */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    --space-4xl: 6rem;     /* 96px */
    
    /* ============================================
       BORDER RADIUS
       ============================================ */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* ============================================
       TRANSITIONS
       ============================================ */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* ============================================
       BREAKPOINTS (do media queries)
       ============================================ */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* ============================================
       LAYOUT
       ============================================ */
    --container-max-width: 1280px;
    --header-height: 60px;
    --topbar-height: 30px;
    --sidebar-width: 300px;
    
    /* ============================================
       Z-INDEX LAYERS
       ============================================ */
    --z-index-base: 1;
    --z-index-dropdown: 100;
    --z-index-sticky: 200;
    --z-index-header: 500;
    --z-index-overlay: 900;
    --z-index-modal: 1000;
    --z-index-tooltip: 1100;
}

/* ============================================
   DARK MODE THEME
   ============================================ */
body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2a2a2a;
    --bg-placeholder: #2e2e2e;
    --bg-header: var(--color-primary-dark);
    --bg-footer: #0f0f0f;
    --bg-overlay: rgba(0, 0, 0, 0.85);
    
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --text-muted: #666666;
    
    --link-color: #5599ff;
    --link-hover: #77aaff;
    
    --border-color: #333333;
    --border-color-light: #2a2a2a;
    --border-color-dark: #444444;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
body.high-contrast {
    --color-primary: #ff0000;
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --border-color: #ffffff;
    --link-color: #ffff00;
}
