/* ─────────────────────────────────────────────────────────────────────
   Article Discovery — Sort Tabs, Category Pills, Trending Widget
   ───────────────────────────────────────────────────────────────────── */

/* ── Discovery controls container ────────────────────────────────── */

.bzc-article-discovery {
    margin-bottom: 20px;
}

/* ── Sort tabs ───────────────────────────────────────────────────── */

.bzc-article-sort-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eff3f4;
}

.bzc-article-sort-tab {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #536471;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.bzc-article-sort-tab:hover {
    color: #0f1419;
    background: rgba(15, 20, 25, 0.04);
}

.bzc-article-sort-tab--active {
    color: #0f1419;
    border-bottom-color: #1d9bf0;
}

/* ── Category pills ──────────────────────────────────────────────── */

.bzc-article-category-filter {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bzc-article-category-filter::-webkit-scrollbar {
    display: none;
}

.bzc-article-category-pill {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #536471;
    text-decoration: none;
    border: 1px solid #cfd9de;
    border-radius: 9999px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.bzc-article-category-pill:hover {
    color: #0f1419;
    border-color: #0f1419;
}

.bzc-article-category-pill--active {
    color: #fff;
    background: #1d9bf0;
    border-color: #1d9bf0;
}

.bzc-article-category-pill--active:hover {
    color: #fff;
    background: #1a8cd8;
    border-color: #1a8cd8;
}

/* ── Trending widget ─────────────────────────────────────────────── */

.bzc-trending-widget {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bzc-trending-widget__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eff3f4;
}

.bzc-trending-widget__item:last-child {
    border-bottom: none;
}

.bzc-trending-widget__rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #536471;
}

.bzc-trending-widget__content {
    min-width: 0;
    flex: 1;
}

.bzc-trending-widget__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f1419;
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bzc-trending-widget__title:hover {
    color: #1d9bf0;
}

.bzc-trending-widget__meta {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    font-size: 12px;
    color: #536471;
}

.bzc-trending-widget__author {
    font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media ( max-width: 768px ) {
    .bzc-article-sort-tabs {
        gap: 0;
    }

    .bzc-article-sort-tab {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
    }

    .bzc-article-category-filter {
        padding-bottom: 8px;
    }

    .bzc-article-card__thumbnail {
        width: 80px;
        height: 80px;
    }

    .bzc-article-card__hero-image {
        height: 160px;
    }

    .bzc-article-card__thumb-small {
        width: 60px;
        height: 60px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ARTICLE CARD LAYOUTS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Shared base ─────────────────────────────────────────────────── */

.bzc-article-grid {
    display: flex;
    flex-direction: column;
}

.bzc-article-card {
    border-bottom: 1px solid #eff3f4;
}

.bzc-article-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f1419;
    line-height: 1.3;
    margin: 4px 0;
}

.bzc-article-card__title a {
    color: inherit;
    text-decoration: none;
}

.bzc-article-card__title a:hover {
    color: #1d9bf0;
}

.bzc-article-card__excerpt {
    font-size: 14px;
    color: #536471;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bzc-article-card__excerpt--tall {
    -webkit-line-clamp: 3;
}

.bzc-article-card__byline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #536471;
    flex-wrap: wrap;
}

.bzc-article-card__avatar {
    display: flex;
    flex-shrink: 0;
}

.bzc-article-card__avatar img {
    border-radius: 50%;
}

.bzc-article-card__author-name {
    font-weight: 600;
    color: #0f1419;
    text-decoration: none;
}

.bzc-article-card__author-name:hover {
    text-decoration: underline;
}

.bzc-article-card__mention {
    color: #536471;
}

.bzc-article-card__meta {
    display: flex;
    gap: 4px;
    font-size: 12px;
    color: #536471;
    margin-top: 6px;
}

.bzc-article-card__meta a {
    color: inherit;
    text-decoration: none;
}

.bzc-article-card__meta a:hover {
    text-decoration: underline;
}

.bzc-article-card__meta-sep {
    color: #cfd9de;
}

.bzc-article-card__date {
    color: #536471;
}

/* ── Editorial layout ────────────────────────────────────────────── */

.bzc-article-card--editorial {
    display: flex;
    gap: 16px;
    padding: 16px 0;
}

.bzc-article-card--editorial .bzc-article-card__content {
    flex: 1;
    min-width: 0;
}

.bzc-article-card__thumbnail {
    width: 120px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.bzc-article-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Hero layout ─────────────────────────────────────────────────── */

.bzc-article-card--hero-featured {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 8px;
    border-bottom: none;
}

.bzc-article-card__hero-image {
    display: flex;
    align-items: flex-end;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    text-decoration: none;
}

.bzc-article-card__hero-overlay {
    padding: 20px;
    background: linear-gradient( transparent, rgba( 0, 0, 0, 0.75 ) );
    width: 100%;
}

.bzc-article-card__trending-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #1d9bf0;
    background: rgba( 29, 155, 240, 0.15 );
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.bzc-article-card__hero-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 4px;
}

.bzc-article-card__hero-meta {
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: rgba( 255, 255, 255, 0.8 );
}

.bzc-article-card--hero-compact {
    display: flex;
    gap: 14px;
    padding: 14px 0;
}

.bzc-article-card--hero-compact .bzc-article-card__content {
    flex: 1;
    min-width: 0;
}

.bzc-article-card__thumb-small {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.bzc-article-card__thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Timeline layout ─────────────────────────────────────────────── */

.bzc-article-card--timeline {
    padding: 14px 0;
}

.bzc-layout-timeline .bzc-article-card__title {
    font-size: 16px;
    margin: 4px 0;
}

.bzc-layout-timeline .bzc-article-card__excerpt {
    margin-bottom: 10px;
}

.bzc-article-card__interactions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.bzc-article-card__interactions span {
    font-size: 13px;
    color: #536471;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bzc-article-card__interactions svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.bzc-article-card__category-pill {
    font-size: 11px;
    color: #536471;
    background: #eff3f4;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    white-space: nowrap;
}

/* ── AJAX loading state ──────────────────────────────────────────── */

.bzc-article-grid.bzc-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* ── AJAX-mode load more button ──────────────────────────────────── */

.bzc-load-more {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1d9bf0;
    text-align: center;
    text-decoration: none;
    border: 1px solid #cfd9de;
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease;
}

.bzc-load-more:hover {
    background: rgba( 29, 155, 240, 0.06 );
    color: #1d9bf0;
}

.bzc-load-more.loading {
    opacity: 0.6;
    pointer-events: none;
}
