/* Modern News Page Styles */
.news-page-container {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    min-height: 100vh;
}

/* Breadcrumb Section */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: var(--text-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* News Hero Section */
.news-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--accent-color) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="news-grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="20" fill="url(%23news-grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, rgba(255,255,255,1), rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--leading-tight);
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.hero-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.hero-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    font-weight: 600;
}

/* News Toolbar */
.news-toolbar {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin: -3rem auto 3rem;
    max-width: 1000px;
    position: relative;
    z-index: 3;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-primary);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
}

.news-stats i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Featured Article */
.featured-article {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 4rem;
    transition: all var(--transition-normal);
}

.featured-article:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.featured-image-container {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-article:hover .featured-image-container img {
    transform: scale(1.05);
}

.featured-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.featured-content {
    padding: 2.5rem;
}

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

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.featured-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    margin-bottom: 1.5rem;
}

.featured-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.featured-excerpt {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.news-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

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

.news-card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin-bottom: 1rem;
}

.news-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.news-card-meta i {
    font-size: 1rem;
}

.news-card-excerpt {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: auto;
    font-size: var(--text-sm);
}

.news-card-footer {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.news-card-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    margin-bottom: 4rem;
}

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

.empty-state-title {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.empty-state-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.pagination {
    gap: 0.5rem;
}

.page-item .page-link {
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
}

.page-item .page-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="newsletter-grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="20" fill="url(%23newsletter-grid)"/></svg>');
    opacity: 0.3;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.newsletter-title {
    color: white;
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: var(--text-2xl);
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input-group {
    margin-bottom: 1.5rem;
}

.newsletter-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

/* Topics Section */
.topics-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.topics-title {
    text-align: center;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 2rem;
    font-size: var(--text-2xl);
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.topic-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.topic-tag:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.topic-tag i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-stat {
        padding: 1rem;
    }
    
    .hero-stat-number {
        font-size: 1.75rem;
    }
    
    .news-toolbar {
        margin: -2rem 1rem 2rem;
        padding: 1.5rem;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .news-stats {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .filter-group {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .featured-article {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .featured-title {
        font-size: var(--text-2xl);
    }
    
    .newsletter-card {
        padding: 2rem 1.5rem;
    }
    
    .topic-tags {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .topic-tag {
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-toolbar {
        margin: -1.5rem 0.5rem 1.5rem;
        padding: 1rem;
    }
    
    .search-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .featured-article {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .featured-meta {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .news-grid {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .newsletter-card {
        padding: 1.5rem 1rem;
    }
    
    .newsletter-title {
        font-size: var(--text-xl);
    }
    
    .newsletter-description {
        font-size: var(--text-base);
    }
}

/* Dark theme support */
.dark-theme .news-card,
.dark-theme .featured-article,
.dark-theme .empty-state,
.dark-theme .news-toolbar {
    background: var(--bg-secondary);
    border-color: var(--border-dark);
}

.dark-theme .news-card-footer {
    background: var(--bg-tertiary);
    border-color: var(--border-dark);
}

.dark-theme .topic-tag {
    background: var(--bg-secondary);
    border-color: var(--border-dark);
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .news-card,
    .featured-article,
    .news-toolbar {
        border-width: 2px;
    }
    
    .topic-tag,
    .filter-select {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .news-card,
    .featured-article,
    .topic-tag,
    .hero-stat {
        transition: none;
    }
    
    .news-card:hover,
    .featured-article:hover {
        transform: none;
    }
    
    .news-card:hover .news-card-image img,
    .featured-article:hover .featured-image-container img {
        transform: none;
    }
}