/* News Page Styles */

/* News Hero Section */
.news-hero {
    background: linear-gradient(135deg, var(--mdb-primary) 0%, rgba(var(--mdb-primary-rgb), 0.8) 100%);
    padding: 3rem 0 2rem;
    margin: -1rem -1rem 2rem -1rem;
    position: relative;
    overflow: hidden;
}

[data-mdb-theme="dark"] .news-hero {
    background: linear-gradient(135deg, rgba(var(--mdb-primary-rgb), 0.9) 0%, rgba(var(--mdb-primary-rgb), 0.7) 100%);
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.news-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
}

.news-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.news-hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.news-hero-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

/* Breadcrumb Section - Use base breadcrumb styles, just add wrapper */
.breadcrumb-section {
    margin-bottom: 1.5rem;
}

/* Featured Article */
.featured-section {
    margin-bottom: 2.5rem;
}

.featured-article {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--mdb-warning);
    color: #000000;
    padding: 0.4rem 0.875rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    z-index: 2;
}

.featured-content {
    padding: 2rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.network-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--mdb-primary);
    color: #ffffff !important;
    padding: 0.4rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.network-badge:hover {
    background: rgba(var(--mdb-primary-rgb), 0.85);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    line-height: 1.3;
    color: var(--mdb-text-primary);
}

.featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-title a:hover {
    color: var(--mdb-primary);
}

.featured-excerpt {
    color: var(--mdb-text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mdb-border-color);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--mdb-text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.author-name:hover {
    color: var(--mdb-primary);
}

.article-date {
    color: var(--mdb-text-muted);
    font-size: 0.875rem;
}

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

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

.news-card {
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    line-height: 1.4;
    color: var(--mdb-text-primary);
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: var(--mdb-primary);
}

.news-card-excerpt {
    color: var(--mdb-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--mdb-border-color);
}

.news-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.read-more-btn {
    color: var(--mdb-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.read-more-btn:hover {
    gap: 0.75rem;
    color: var(--mdb-primary);
}

/* Pagination - Use base pagination, minimal override */
.pagination-section {
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--mdb-text-muted);
    margin-bottom: 1.25rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--mdb-text-primary);
    margin-bottom: 0.875rem;
}

.empty-state p {
    color: var(--mdb-text-secondary);
    font-size: 1.0625rem;
}

/* Feed Subscription Buttons */
.feed-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feed-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.625rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.feed-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feed-btn i {
    font-size: 1rem;
}

.feed-rss:hover {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #ffffff !important;
}

.feed-atom:hover {
    background: #ff9900 !important;
    border-color: #ff9900 !important;
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .news-hero {
        padding: 2rem 0 1.5rem;
    }
    
    .news-hero h1 {
        font-size: 1.75rem;
    }
    
    .news-hero-icon {
        font-size: 3rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.375rem;
    }
}
