/**
 * AI Smart Advisors - Blog Page Styles
 */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8rem 0 5rem;
    position: relative;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero .hero-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.blog-hero .hero-title {
    color: white;
}

.blog-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.blog-search {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
    background: white;
    border-radius: var(--radius-full);
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
}

.blog-search input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: var(--radius-full);
}

.blog-search button {
    background: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s ease;
}

.blog-search button:hover {
    background: var(--primary-dark);
}

/* Categories */
.blog-categories {
    background: var(--bg-primary);
    padding: 0 0 3rem;
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid var(--bg-tertiary);
}

.category-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.5rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Featured Article */
.featured-article {
    background: var(--bg-secondary);
    padding: 3rem 0 5rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.featured-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.image-placeholder {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.article-category {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.article-date,
.article-read-time {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.featured-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.featured-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

/* Articles Grid */
.blog-articles {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.article-image {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image .image-placeholder {
    font-size: 4rem;
}

.article-content {
    padding: 1.5rem;
}

.article-content .article-meta {
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

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

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Newsletter */
.blog-newsletter {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 5rem 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-content > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.newsletter-form {
    margin-bottom: 1rem;
}

.newsletter-inputs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.newsletter-inputs input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.newsletter-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Article Single Page Styles (for future use) */
.article-single {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.article-single-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-single-header {
    margin-bottom: 3rem;
}

.article-single-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-single-body {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-single-body p {
    margin-bottom: 1.5rem;
}

.article-single-body h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

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

    .featured-image {
        min-height: 250px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-inputs {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .blog-hero {
        padding: 6rem 0 3rem;
    }

    .category-filter {
        gap: 0.25rem;
    }

    .category-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }
}

/* Hidden class for filtering */
.article-card.hidden {
    display: none;
}
