/* ============================================
   NEWSLETTER PAGE STYLES
   ============================================ */

/* Newsletter Hero */
.newsletter-hero {
    padding: var(--spacing-xl) 0;
    padding-top: 120px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin: var(--spacing-md) 0;
    line-height: 1.2;
}

.newsletter-hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Newsletter Filters */
.newsletter-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) 0;
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

/* Newsletter Articles Grid */
.newsletter-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.newsletter-article {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.newsletter-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.newsletter-article.featured {
    grid-column: span 2;
}

/* Article Image */
.article-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.newsletter-article:hover .article-image img {
    transform: scale(1.1);
}

.article-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article Video */
.article-video {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    color: var(--primary);
}

.video-placeholder p {
    font-size: 1rem;
    margin: 0;
}

/* Article Chart */
.article-chart {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.chart-placeholder i {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    color: var(--secondary);
}

.chart-placeholder p {
    font-size: 1rem;
    margin: 0;
}

/* Article Gallery */
.article-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    height: 300px;
}

.gallery-item {
    overflow: hidden;
}

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

.newsletter-article:hover .gallery-item img {
    transform: scale(1.1);
}

/* Article Content */
.article-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.article-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-category {
    background: rgba(0, 102, 255, 0.2);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    margin: 0 0 var(--spacing-md) 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-title a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.article-excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
}

.article-link:hover {
    color: var(--white);
    gap: 12px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Load More Button */
.newsletter-load-more {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .newsletter-article.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .newsletter-hero {
        padding-top: 100px;
    }
    
    .newsletter-articles {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .newsletter-article.featured {
        grid-column: span 1;
    }
    
    .article-image,
    .article-video,
    .article-chart {
        height: 250px;
    }
    
    .article-gallery {
        height: 200px;
    }
    
    .article-content {
        padding: var(--spacing-md);
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .newsletter-filters {
        gap: var(--spacing-xs);
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .article-image,
    .article-video,
    .article-chart {
        height: 200px;
    }
    
    .article-gallery {
        grid-template-columns: 1fr;
        height: 400px;
    }
}

/* Hidden articles (for filtering) */
.newsletter-article.hidden {
    display: none;
}

