/* ============================================
   CSS VARIABLES - Společné proměnné pro celý web
   ============================================ */

:root {
    /* Brand colors */
    --primary-color: #1b98e0;
    --primary-color-dark: #157ab8;
    --primary-color-light: #e3f2fd;
    --brand-blue: #13294b;
    --brand-blue-light: #1e3a5f;

    /* Semantic colors */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    /* Text colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-light: #f8f9fa;

    /* Background colors */
    --background-color: #f8f9fa;
    --background-dark: #e9ecef;
    --background-white: #ffffff;

    /* Border colors */
    --border-color: #dee2e6;
    --border-light: #e9ecef;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* Card backgrounds */
    --card-bg: #ffffff;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        /* Text colors */
        --text-primary: #e9ecef;
        --text-secondary: #adb5bd;
        --text-muted: #6c757d;

        /* Background colors */
        --background-color: #0d1117;
        --background-dark: #161b22;
        --background-white: #1a1a1a;

        /* Border colors */
        --border-color: #30363d;
        --border-light: #21262d;

        /* Card backgrounds */
        --card-bg: #161b22;

        /* Shadows - darker for dark mode */
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
    }
}

/* Manual dark mode class (for toggle) */
[data-bs-theme="dark"],
[data-theme="dark"] {
    /* Text colors */
    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --text-muted: #6c757d;

    /* Background colors */
    --background-color: #0d1117;
    --background-dark: #161b22;
    --background-white: #1a1a1a;
    --bg-tertiary: #1f2937;

    /* Border colors */
    --border-color: #30363d;
    --border-light: #21262d;

    /* Card backgrounds */
    --card-bg: #161b22;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Light mode variables */
[data-theme="light"] {
    /* Text colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;

    /* Background colors */
    --background-color: #f8f9fa;
    --background-dark: #e9ecef;
    --background-white: #ffffff;
    --bg-tertiary: #ffffff;

    /* Border colors */
    --border-color: #dee2e6;
    --border-light: #e9ecef;

    /* Card backgrounds */
    --card-bg: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
}
