/* ==============================================================================
   modern.css - Moderní designový systém pro web ales.frigoteam.cz
   Optimalizováno pro rychlost, bezpečnost, přístupnost (WCAG) a moderní vzhled.
   ============================================================================== */

:root {
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --color-primary: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-primary-deep: #0f172a;
    --color-accent: #6366f1;
    --color-accent-purple: #8b5cf6;
    --color-emerald: #10b981;
    --color-amber: #f59e0b;
    --color-rose: #f43f5e;

    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-deep);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism navigační lišta */
.glass-nav {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Moderní gradienty */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-hero-bg {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(219, 39, 119, 0.1), transparent 50%),
                #ffffff;
}

/* Karty */
.card-modern {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

/* Tlačítka */
.btn-primary-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary-modern {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-secondary-modern:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Odznáčky (Badges) */
.badge-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
}

/* Omezení zobrazení textu */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Formátování obsahu článků */
.article-prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.article-prose p {
    margin-bottom: 1.5rem;
}

.article-prose h2, .article-prose h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-prose ul, .article-prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 1.5rem 0;
}
