/* ============================================================
   NEWS HUB STYLES
   Page-specific styles for /news.php
   Uses BusOva theme variables for light/dark support
   ============================================================ */

/* Source filter chips */
.news-source-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.news-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.news-chip:hover {
    border-color: var(--color-primary);
    color: var(--text-primary);
}

.news-chip.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.news-chip img {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    flex-shrink: 0;
}

/* Article card (entire card is an <a>) */
.news-article {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
    color: inherit;
    overflow: hidden;
}

.news-article:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color-dark);
}

/* Thumbnail */
.news-article-thumb {
    flex-shrink: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--bg-surface);
}

.news-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.25;
}

/* Content */
.news-article-body {
    flex: 1;
    min-width: 0;
    padding: 0.75rem;
}

.news-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    font-size: var(--font-size-xs);
}

.news-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: #fff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-source-badge img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.news-article-title {
    margin: 0 0 0.2rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

.news-article:hover .news-article-title {
    color: var(--color-primary);
}

.news-article-desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: 500;
}

.news-read-more img {
    width: 26px;
    height: 26px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 640px) {
    .news-article-thumb {
        height: 140px;
    }
    .news-source-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .news-chip {
        white-space: nowrap;
        flex-shrink: 0;
    }
}