/* ── RUBRIKA TABS ── */
.rubrika-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.rubrika-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border);
    color: var(--text-2);
    background: var(--bg-card);
    transition: all .18s ease;
}

.rubrika-tab:hover {
    border-color: var(--brand-bright);
    color: var(--brand-bright);
    background: var(--bg-subtle);
}

.rubrika-tab.active {
    background: var(--brand-bright);
    border-color: var(--brand-bright);
    color: #fff;
}

.rubrika-tab .count {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.78rem;
}

.rubrika-tab:not(.active) .count {
    background: var(--bg-subtle);
    color: var(--text-3);
}

/* ── ARTICLES GRID ── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    border-color: var(--brand-bright);
}

.article-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--bg-subtle);
    display: block;
}

.article-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 2rem;
}

.article-card-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-card-date {
    font-size: 0.78rem;
    color: var(--text-3);
    font-weight: 500;
}

.article-card-rubrika {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* štítky rubrik */
.rubrika-blog {
    background: rgba(46, 196, 160, .15);
    color: var(--brand-green);
}

.rubrika-napsali {
    background: rgba(78, 146, 240, .15);
    color: var(--brand-bright);
}

.article-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-1);
    margin: 0;
    flex: 1;
}

.article-card:hover .article-card-title {
    color: var(--brand-bright);
}

.article-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-3);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px 16px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-3);
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card-author svg {
    flex-shrink: 0;
}

.read-more {
    color: var(--brand-bright);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: gap .15s ease;
}

.article-card:hover .read-more {
    gap: 8px;
}

/* ── EMPTY STATE ── */
.articles-empty {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-3);
}

.articles-empty svg {
    margin-bottom: 16px;
    opacity: .4;
}

.articles-empty h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-2);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}