:root {
    /* Light Mode Colors - výchozí hodnoty, mohou být přepsány z nastavení */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #f59e0b;
    --text: #0f172a;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-secondary: #f1f5f9;
    --border: #e2e8f0;
    --danger: #ef4444;
    --success: #22c55e;
    
    /* Sidebar Colors - vždy tmavý */
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --sidebar-hover: #1e293b;

    /* Dimensions */
    --sidebar-width: 260px;
    --radius: 8px;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #f59e0b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --border: #334155;
    --danger: #ef4444;
    --success: #22c55e;
    
    /* Sidebar Colors - zůstávají stejné (vždy tmavý) */
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --sidebar-hover: #1e293b;
    
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a.body-text { text-decoration: underline; color: inherit; transition: 0.2s; }
/* Odkazy v obsahu článků mají být podtržené, ale ne v nadpisech */
.body-text a,
.article-content a {
    text-decoration: underline;
    color: var(--primary);
}
.body-text a:hover,
.article-content a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
/* Odkazy v nadpisech (h1-h6) nejsou podtržené */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.article-card-row h3 a,
.articles-grid-2 .article-card h3 a,
.articles-grid-3 .article-card h3 a,
.articles-grid-4 .article-card h3 a {
    text-decoration: none !important;
}
h1, h2, h3, h4 { font-weight: 600; color: var(--text); margin-top: 1rem; margin-bottom: 1rem; }
p { margin-top: 1rem; margin-bottom: 1rem; }
ul { margin-top: 1rem; margin-bottom: 1rem; padding: 2rem 2rem 2rem 2rem; background-color: var(--bg-secondary); border-radius: var(--radius);}
/* --- COMPONENTS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.container-medium { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 8px;
    padding: 8px 16px; 
    border-radius: var(--radius); 
    font-weight: 500; 
    cursor: pointer; 
    border: 1px solid transparent; 
    font-size: 0.9rem;
    transition: all 0.2s;
    line-height: 1;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--bg-secondary); }
.btn-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
[data-theme="dark"] .btn-danger { background: #7f1d1d; color: #fecaca; border-color: #991b1b; }
.btn-icon { padding: 8px; border-radius: 6px; color: var(--text-light); border: 1px solid var(--border); background: var(--bg); cursor: pointer;}
.btn-icon:hover { background: var(--bg-secondary); color: var(--primary); }

.form-control { 
    display: block;
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    background: var(--bg); 
    color: var(--text); 
    margin-bottom: 15px; 
    font-family: inherit;
    font-size: 0.95rem;
}
.form-control:focus { outline: 2px solid var(--primary); border-color: transparent; }

.card { 
    background: var(--bg); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 24px; 
    box-shadow: var(--shadow); 
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

/* --- ADMIN LAYOUT --- */
.admin-body { 
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
    background: var(--bg-secondary);
}

/* Admin Sidebar - vždy tmavý, nezávislý na dark/light mode */
.admin-sidebar { 
    width: var(--sidebar-width); 
    background: #0f172a !important; 
    color: #94a3b8 !important; 
    flex-shrink: 0; 
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1e293b !important;
}

.sidebar-header { 
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #1e293b !important;
    color: #ffffff !important;
    background: #0f172a !important;
}

.sidebar-header h3 { 
    margin: 0; 
    font-size: 1.1rem; 
    letter-spacing: 0.5px; 
    color: #ffffff !important; 
}

.sidebar-menu { 
    list-style: none; 
    padding: 16px 12px; 
    flex: 1;
    overflow-y: auto;
    background: #0f172a !important;
    color: #94a3b8 !important;
}

.sidebar-menu li { 
    margin-bottom: 4px;
    color: #94a3b8 !important;
}

.sidebar-menu li a { 
    display: flex; 
    align-items: center;
    gap: 12px;
    padding: 10px 12px; 
    color: #94a3b8 !important; 
    font-weight: 500; 
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: transparent !important;
}

.sidebar-menu li a,
.sidebar-menu li a * {
    color: #94a3b8 !important;
}

.sidebar-menu li a i { 
    font-size: 1.2rem;
    color: #94a3b8 !important;
}

.sidebar-menu li a:hover,
.sidebar-menu li a:hover * { 
    background: #1e293b !important; 
    color: #ffffff !important; 
}

.sidebar-menu li a.active,
.sidebar-menu li a.active * { 
    background: var(--primary) !important; 
    color: #ffffff !important; 
}

.sidebar-menu li a[style*="color"] {
    color: #94a3b8 !important;
}

.sidebar-menu li a[style*="color"]:hover {
    color: #ffffff !important;
}

.admin-content { 
    flex: 1; 
    overflow-y: auto; 
    padding: 32px;
    background: var(--bg);
    color: var(--text);
}



.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 32px; 
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* --- GRID FIX --- */
.dashboard-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); /* Přesně 4 sloupce vedle sebe */
    gap: 24px;
    align-items: start; /* Aby se karty nenatahovaly na výšku */
}

/* --- TABLE FIXES --- */
.data-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.9rem; 
    table-layout: auto; /* Auto layout pro flexibilní šířky */
}
.data-table th { 
    text-align: left; 
    padding: 12px 16px; 
    color: var(--text-light); 
    font-weight: 600; 
    border-bottom: 1px solid var(--border); 
    background: var(--bg-secondary); 
    white-space: nowrap;
}
.data-table td { 
    padding: 12px 16px; 
    border-bottom: 1px solid var(--border); 
    vertical-align: middle;
    word-wrap: break-word; /* Zalamování dlouhých textů */
    overflow-wrap: break-word;
}
.data-table tr:last-child td { border-bottom: none; }

/* Fix pro tabulku kategorií - správné šířky sloupců */
.data-table th:nth-child(1),
.data-table td:nth-child(1) { width: 60px; min-width: 60px; max-width: 60px; } /* ID */
.data-table th:nth-child(2),
.data-table td:nth-child(2) { width: 30%; min-width: 150px; } /* Název */
.data-table th:nth-child(3),
.data-table td:nth-child(3) { width: 25%; min-width: 120px; } /* Slug */
.data-table th:nth-child(4),
.data-table td:nth-child(4) { width: 15%; min-width: 120px; max-width: 150px; } /* Počet článků */
.data-table th:nth-child(5),
.data-table td:nth-child(5) { width: 100px; min-width: 100px; max-width: 100px; } /* Akce */

/* Badge Status */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; flex-shrink: 0; }
.status-dot.published { background: var(--success); }
.status-dot.draft { background: #94a3b8; }
.status-dot.pending { background: var(--secondary); }
.status-dot.completed { background: var(--success); }
.status-dot.failed { background: var(--danger); }

/* Utility */
.form-row { display: flex; gap: 24px; margin-bottom: 15px; }
.col-8 { flex: 2; }
.col-4 { flex: 1; }
.col-6 { flex: 1; }
.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.alert-success { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; padding: 16px; border-radius: var(--radius); margin-bottom: 24px; }
[data-theme="dark"] .alert-success { background: #14532d; border: 1px solid #166534; color: #bbf7d0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.text-light { color: var(--text-light); font-size: 0.85rem; }

/* Stat Cards */
.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.stat-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}

/* Frontend Headers */
header.main-header { 
    border-bottom: 1px solid var(--border); 
    padding: 20px 0; 
    margin-bottom: 40px; 
    background: var(--bg); 
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

/* Theme Toggle Button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.theme-toggle img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
    transition: filter 0.2s;
}

[data-theme="dark"] .theme-toggle img {
    filter: brightness(0) invert(1);
}

.theme-toggle:hover img {
    opacity: 0.8;
}
header.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}
.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
.nav-links { 
    display: flex; 
    gap: 24px; 
    margin-top: 0; 
    align-items: center; 
    flex-wrap: wrap;
    order: 2;
}
.nav-links a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--primary);
}
.logo { 
    order: 1;
    flex: 1;
}
.logo a { 
    font-weight: 800; 
    font-size: 1.5rem; 
    letter-spacing: -0.5px; 
    color: var(--text); 
    display: block;
}
.theme-toggle {
    order: 3;
    margin-left: auto;
}
.magazine-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.grid-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }

/* Zobrazení článků - 2, 3, 4 sloupce (karty) */
.articles-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.articles-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.articles-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

/* Sdílené styly pro všechny grid layouty */
.articles-grid-2 .article-card,
.articles-grid-3 .article-card,
.articles-grid-4 .article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.articles-grid-2 .article-card:hover,
.articles-grid-3 .article-card:hover,
.articles-grid-4 .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
[data-theme="dark"] .articles-grid-2 .article-card:hover,
[data-theme="dark"] .articles-grid-3 .article-card:hover,
[data-theme="dark"] .articles-grid-4 .article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.articles-grid-2 .article-card a,
.articles-grid-3 .article-card a,
.articles-grid-4 .article-card a {
    display: block;
    width: 100%;
    overflow: hidden;
}

.articles-grid-2 .article-card img,
.articles-grid-3 .article-card img,
.articles-grid-4 .article-card img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    display: block;
}

.articles-grid-2 .article-card .content,
.articles-grid-3 .article-card .content,
.articles-grid-4 .article-card .content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.articles-grid-2 .article-card h3,
.articles-grid-3 .article-card h3,
.articles-grid-4 .article-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.articles-grid-2 .article-card p,
.articles-grid-3 .article-card p,
.articles-grid-4 .article-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Řádkové zobrazení článků */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.article-card-row {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s;
}

.article-card-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
[data-theme="dark"] .article-card-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.article-card-row img {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
}

.article-card-row .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-row h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.article-card-row p {
    margin: 0;
    color: var(--text-light);
}

/* Sidebar Articles */
.sidebar-article {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.sidebar-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sidebar-article-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
}
.sidebar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-article-content {
    flex: 1;
    min-width: 0;
}
.sidebar-article-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 4px 0 0 0;
    line-height: 1.4;
}
.sidebar-article-content h4 a {
    color: var(--text);
    transition: color 0.2s;
}
.sidebar-article-content h4 a:hover {
    color: var(--primary);
}
.article-meta-small {
    font-size: 0.75rem;
    color: var(--text-light);
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.category-badge:hover {
    opacity: 0.9;
}

.sidebar-perex {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.5;
}

/* Frontend Components */
.article-hero { margin-bottom: 40px; }
.article-hero img { width: 100%; height: auto; border-radius: var(--radius); }
.article-card-row { display: flex; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-card-row img { width: 200px; height: 150px; object-fit: cover; border-radius: var(--radius); }
.sidebar-widget { background: var(--bg-secondary); 
    padding: 3px 10px 10px 20px; border-radius: var(--radius); margin-bottom: 24px; }
.latest-news { display: flex; flex-direction: column; }


/* --- RESPONSIVE DESIGN --- */

/* Tablet a menší (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Admin */
    .admin-body {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #1e293b;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    
    .sidebar-menu li {
        margin-bottom: 0;
    }
    
    .sidebar-menu li a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .admin-content {
        padding: 20px;
        overflow-x: auto;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr); /* Na mobilu 2 sloupce */
    }
    
    @media (max-width: 640px) {
        .dashboard-grid {
            grid-template-columns: 1fr; /* Na velmi malých obrazovkách 1 sloupec */
        }
    }
    
    .admin-topbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }
    
    /* Frontend */
    .magazine-grid,
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .main-content {
        order: 1; /* Hlavní obsah první na mobilu */
    }
    
    .magazine-grid .sidebar,
    .grid-layout .sidebar {
        order: 2; /* Sidebar až po obsahu na mobilu */
    }
    
    .articles-grid-2,
    .articles-grid-3,
    .articles-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .article-card-row {
        flex-direction: column;
    }
    
    .article-card-row img {
        width: 100%;
        height: 200px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    header.main-header {
        padding: 15px 0;
        position: relative;
    }
    
    header.main-header .container {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 0;
        padding: 0;
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s, opacity 0.3s, padding 0.3s;
    }
    
    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        padding: 20px;
    }
    
    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        display: block;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .logo {
        width: 100%;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .nav-links {
        width: 100%;
        gap: 12px;
        flex-wrap: wrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .nav-links a {
        white-space: nowrap;
        font-size: 0.9rem;
    }
    
    .article-card-row {
        flex-direction: column;
    }
    
    .article-card-row img {
        width: 100% !important;
        height: auto !important;
    }
    
    .sidebar {
        order: 2; /* Sidebar až po článku na mobilu */
    }
    
    .content {
        order: 1; /* Článek první na mobilu */
    }
    
    .sidebar-article {
        flex-direction: column;
    }
    
    .sidebar-article-image {
        width: 100%;
        height: 180px;
        margin-bottom: 8px;
    }
}

/* Mobil (max-width: 768px) */
@media (max-width: 768px) {
    /* Admin */
    .admin-content {
        padding: 15px;
    }
    
    .card {
        padding: 16px;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
    
    /* Skrytí některých sloupců na mobilu pro lepší čitelnost */
    .data-table th:nth-child(1),
    .data-table td:nth-child(1) {
        display: none; /* ID sloupec */
    }
    
    /* Pro tabulku kategorií - skrytí slug na mobilu */
    .data-table th:nth-child(3),
    .data-table td:nth-child(3) {
        display: none;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .form-control {
        font-size: 16px; /* Zabránění zoomu na iOS */
    }
    
    .dashboard-grid {
        gap: 16px;
    }
    
    /* Frontend */
    .magazine-grid {
        gap: 24px;
    }
    
    .article-hero {
        margin-bottom: 24px;
    }
    
    .article-card-row {
        flex-direction: column;
    }
    
    .article-card-row img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 12px;
    }
    
    .sidebar {
        order: 2; /* Sidebar až po článku na mobilu */
    }
    
    .content {
        order: 1; /* Článek první na mobilu */
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
}

/* Velmi malé obrazovky (max-width: 480px) */
@media (max-width: 480px) {
    .admin-content {
        padding: 10px;
    }
    
    .card {
        padding: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .magazine-grid {
        gap: 16px;
    }
}