/* ==========================================================================
   ARTICLES PAGE - Stránka se seznamem článků
   ========================================================================== */

/* Filtr kategorií */
.articles-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.filter-btn.active {
    background: #175ee6;
    border-color: #175ee6;
    color: white;
}

/* Grid je nastavený tak, aby byly 3 sloupce na větších obrazovkách */

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    box-shadow: 0 12px 28px rgba(23,94,230,0.15);
    transform: translateY(-6px);
}

/* Cover */
.article-card-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f1f5f9;
    overflow: hidden;
}

.article-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.article-card:hover .article-card-cover img {
    transform: scale(1.05);
}

/* Content */
.article-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #175ee6;
    background: rgba(23, 94, 230, 0.08);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.article-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

.article-card-title a {
    color: #1e293b;
    text-decoration: none;
}

.article-card-title a:hover {
    color: #175ee6;
}

.article-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 1rem;
    flex: 1;
}

/* Meta */
.article-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.article-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.article-card-meta i {
    color: #175ee6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f8fafc;
    border-color: #175ee6;
    color: #175ee6;
}

.pagination-btn.active {
    background: #175ee6;
    border-color: #175ee6;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.empty-state-desc {
    font-size: 1rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .articles-filter {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .article-card-title {
        font-size: 1.125rem;
    }
    
    .pagination {
        gap: 0.375rem;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 0.75rem;
        font-size: 0.875rem;
    }
}
