/* News Source Attribution Styles */

.badge-news-source {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
    text-transform: capitalize;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.badge-news-source:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.badge-news-source i {
    opacity: 0.9;
}

/* News content styling variations */
.badge-news-source.news-article {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.badge-news-source.opinion-piece {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.badge-news-source.expert-analysis {
    background: linear-gradient(135deg, #059669, #10b981);
}

.badge-news-source.scientific-paper {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.badge-news-source.government-report {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

/* News source post meta styling */
.post-meta .post-time strong {
    color: #374151;
    font-weight: 600;
}

/* News content card modifications */
.content-card.news-content {
    border-left: 4px solid #2563eb;
    background: linear-gradient(to right, rgba(37, 99, 235, 0.02), transparent);
}

.content-card.news-content .post-header {
    position: relative;
}

.content-card.news-content .post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1rem;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #2563eb, #3b82f6);
    border-radius: 2px;
}

/* News outlet styling */
.news-outlet-name {
    font-weight: 600;
    color: #1f2937;
}

.news-publication-date {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .badge-news-source {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .post-meta .post-time {
        font-size: 0.8rem;
    }
}

/* News source legend for filtering pages */
.news-source-legend {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.news-source-legend h6 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-source-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-source-types .badge {
    margin-right: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .badge-news-source {
        border-color: rgba(37, 99, 235, 0.5);
    }

    .content-card.news-content {
        background: linear-gradient(to right, rgba(37, 99, 235, 0.05), transparent);
    }

    .news-source-legend {
        background: #1f2937;
        border-color: #374151;
    }

    .news-source-legend h6 {
        color: #f9fafb;
    }

    .post-meta .post-time strong {
        color: #f3f4f6;
    }

    .news-outlet-name {
        color: #f9fafb;
    }

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