/* ========================================
   BLOG STYLES - TaskMeridian
   ======================================== */

/* Blog Header */
.blog-header {
    padding: 80px 0 40px;
    text-align: center;
    background: #F8FAFC;
}

.blog-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: #0F172A;
}

.blog-intro {
    font-size: 1.2rem;
    color: #64748B;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Blog Categories */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 24px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    border-color: #94A3B8;
    color: #0F172A;
}

.category-btn.active {
    background: #0F172A;
    border-color: #0F172A;
    color: white;
}

/* Featured Post */
.featured-post {
    padding: 40px 0;
    background: #F8FAFC;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.featured-card:hover {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.featured-image {
    position: relative;
    min-height: 400px;
}

.post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #F1F5F9;
}

.post-thumbnail-placeholder.featured-placeholder {
    background: #1E293B;
}

.post-thumbnail-placeholder svg {
    opacity: 0.5;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #0F172A;
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 48px 48px 48px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.post-category {
    background: #F1F5F9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #E2E8F0;
}

.post-date, .read-time {
    font-size: 0.85rem;
    color: #94A3B8;
}

.featured-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.featured-content > p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.post-author span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Blog Grid */
.blog-grid-section {
    padding: 60px 0;
    background: #F8FAFC;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image .post-thumbnail-placeholder {
    min-height: 200px;
    background: #F1F5F9;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-content > p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}

.read-more {
    color: #0F172A;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 48px;
}

.load-more-btn {
    background: white;
    border: 1px solid #E2E8F0;
    color: #0F172A;
    font-weight: 500;
    padding: 12px 32px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    border-color: #94A3B8;
}

/* Active Nav State */
.nav-links a.active {
    color: #0F172A;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .featured-content {
        padding: 32px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media (max-width: 768px) {
    .blog-header {
        padding: 60px 0 32px;
    }
    
    .blog-categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-box {
        padding: 32px;
    }
    
    .newsletter-form-inline {
        flex-direction: column;
    }
}
