/**
 * RNZ-Inspired News Section
 * Clean, stacked cards with images on the left
 */

/* News Section Container */
.news-stream-section {
    background: #fff;
    padding: 2.5rem 0;
    border-top: 1px solid #e5e7eb;
}

.news-stream-section .section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #c4262e;
    /* RNZ Red accent */
}

.news-stream-section .section-title-main {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-stream-section .section-title-main .title-badge {
    background: #c4262e;
    color: white;
    font-size: 0.65rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-stream-section .section-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.news-stream-section .section-link {
    float: right;
    font-size: 0.85rem;
    color: #c4262e;
    text-decoration: none;
    font-weight: 600;
}

.news-stream-section .section-link:hover {
    text-decoration: underline;
}

/* News Card Stack - RNZ Style */
.news-card-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual News Card */
.news-card-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.news-card-item:hover {
    background: #f9fafb;
}

.news-card-item:last-child {
    border-bottom: none;
}

/* News Card Image */
.news-card-image {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    flex-shrink: 0;
}

.news-card-image-placeholder {
    width: 180px;
    height: 120px;
    background: linear-gradient(135deg, #2c5f41 0%, #1e4530 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

/* News Card Content */
.news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.news-card-source {
    color: #c4262e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.news-card-date {
    color: #9ca3af;
}

.news-card-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-item:hover .news-card-title {
    color: #c4262e;
}

.news-card-summary {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.news-card-action {
    font-size: 0.8rem;
    color: #c4262e;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-card-action:hover {
    text-decoration: underline;
}

.news-card-action.secondary {
    color: #6b7280;
}

/* View All Link */
.news-view-all {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
}

.news-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.news-view-all a:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

/* Loading State */
.news-loading {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 0;
}

.news-loading-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.25rem;
}

.news-loading-image {
    width: 180px;
    height: 120px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.news-loading-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-loading-line {
    height: 1rem;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.news-loading-line.title {
    width: 80%;
    height: 1.25rem;
}

.news-loading-line.summary {
    width: 100%;
}

.news-loading-line.meta {
    width: 40%;
    height: 0.75rem;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Empty State */
.news-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

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

/* Responsive */
@media (max-width: 640px) {
    .news-card-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-card-image,
    .news-card-image-placeholder {
        width: 100%;
        height: 180px;
    }

    .news-loading-item {
        grid-template-columns: 1fr;
    }

    .news-loading-image {
        width: 100%;
        height: 180px;
    }
}