/* ============================================
   KiwiClub Sweden — News Styles
   ============================================ */

/* Region tabs — primary filter */
.news-region-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.region-tab {
    padding: 10px 22px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.region-tab:hover {
    border-color: var(--aurora-green);
    color: var(--text-primary);
    background: rgba(0, 214, 143, 0.06);
    transform: translateY(-1px);
}

.region-tab.active {
    background: rgba(0, 214, 143, 0.15);
    border-color: var(--aurora-green);
    color: var(--aurora-green);
    font-weight: 600;
    box-shadow: 0 0 16px rgba(0, 214, 143, 0.1);
}

/* Source tabs — secondary filter */
.news-source-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.source-tab {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.source-tab:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.source-tab.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-weight: 500;
}

.news-layout {
    padding: 32px 0 80px;
}

.news-update-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(0, 214, 143, 0.04);
    border: 1px solid rgba(0, 214, 143, 0.1);
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.news-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* News Card */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.news-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-image {
    width: 100%;
    height: 180px;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

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

/* Source badge — base */
.news-source-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    background: rgba(60, 60, 60, 0.8);
    color: #fff;
}

/* NZ sources */
.news-source-badge.stuff {
    background: rgba(220, 50, 50, 0.85);
    color: #fff;
}

.news-source-badge.nz-herald {
    background: rgba(0, 80, 160, 0.85);
    color: #fff;
}

.news-source-badge.rnz {
    background: rgba(20, 20, 20, 0.85);
    color: #fff;
}

.news-source-badge.spinoff {
    background: rgba(240, 160, 60, 0.85);
    color: #1a1a2e;
}

/* Sweden sources */
.news-source-badge.thelocal {
    background: rgba(255, 204, 0, 0.9);
    color: #1a1a2e;
}

.news-source-badge.radiosweden {
    background: rgba(0, 106, 167, 0.9);
    color: #fff;
}

/* International sources */
.news-source-badge.guardian {
    background: rgba(5, 41, 98, 0.9);
    color: #fff;
}

.news-source-badge.bbc {
    background: rgba(187, 25, 25, 0.9);
    color: #fff;
}

.news-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-body h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.news-footer .source {
    font-weight: 600;
}

.read-more-link {
    font-size: 0.8rem;
    color: var(--aurora-green);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hero news card (first item) */
.news-card.hero-news {
    grid-column: 1 / -1;
}

.news-card.hero-news a {
    flex-direction: row;
}

.news-card.hero-news .news-image {
    width: 45%;
    height: auto;
    min-height: 260px;
    flex-shrink: 0;
}

.news-card.hero-news .news-body {
    padding: 24px;
}

.news-card.hero-news h3 {
    font-size: 1.3rem;
    -webkit-line-clamp: 4;
}

.news-card.hero-news .news-excerpt {
    -webkit-line-clamp: 4;
}

/* Load more button */
.load-more-btn {
    display: block;
    margin: 32px auto 0;
    padding: 12px 32px;
    background: rgba(0, 214, 143, 0.1);
    border: 1px solid rgba(0, 214, 143, 0.3);
    color: var(--aurora-green);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: rgba(0, 214, 143, 0.18);
    border-color: var(--aurora-green);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .news-feed {
        grid-template-columns: 1fr;
    }

    .news-card.hero-news a {
        flex-direction: column;
    }

    .news-card.hero-news .news-image {
        width: 100%;
        min-height: 180px;
    }

    .news-region-tabs {
        gap: 6px;
    }

    .region-tab {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}