/* ========================================
   News Section Styles
   ======================================== */

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* News Card Image */
.news-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-dark);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

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

/* Category Filter */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}

.news-filter-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.news-filter-tag:hover,
.news-filter-tag.active {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

/* Article Hero Image */
.article-hero-image {
    margin-top: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-dark);
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Layout */
.article-header {
    margin-bottom: 32px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.article-reading-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Article Content */
.article-content {
    max-width: 720px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

.article-content a:visited {
    color: #1e3a5f;
}

.article-content a:hover {
    color: var(--primary-dark);
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--primary-subtle);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p {
    color: var(--text);
    font-style: italic;
    margin-bottom: 0;
}

.article-content code {
    font-family: var(--font-mono);
    background: var(--bg-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Article CTA */
.article-cta {
    margin-top: 48px;
    padding: 40px 32px;
    background: var(--bg-dark);
    border: none;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.article-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 32px;
}

.article-content .article-cta h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-inverse);
    margin: 0 0 8px;
}

.article-content .article-cta p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 24px;
}

.article-content .article-cta .btn {
    text-decoration: none;
    color: var(--text-inverse);
    font-size: 1rem;
    padding: 16px 32px;
    position: relative;
    z-index: 1;
}

.article-content .article-cta .btn:hover {
    color: var(--text-inverse);
}

/* Author Byline (E-E-A-T) */
.article-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-byline .byline-text {
    color: var(--text-secondary);
}

.article-byline .byline-separator {
    color: var(--border);
}

.article-byline .byline-date {
    color: var(--text-muted);
}

/* Article section divider */
.article-content > hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0 0;
}

/* Enhanced Disclaimer */
.article-legal-disclaimer {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 32px;
    margin-bottom: 40px;
}

.article-legal-disclaimer p {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    line-height: 1.6;
    margin-bottom: 8px;
}

.article-legal-disclaimer p:last-child {
    margin-bottom: 0;
}

.article-legal-disclaimer a {
    color: var(--primary) !important;
}

.article-disclaimer-affiliation {
    font-size: 0.8rem !important;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px !important;
}

/* Related Posts */
.related-posts {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-posts-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.related-post-card:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.related-post-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.related-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.related-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.related-posts-cta {
    text-align: center;
    margin-top: 24px;
}

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

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .article-byline {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .article-byline .byline-separator {
        display: none;
    }
}
