/* ========== BLOG ARCHIVE STYLES ========== */

/* Blog Header */
.blog-archive {
    padding: clamp(28px, 5vw, 64px) 0;
    background: #f8fafc;
}

/* Dark theme */
.blog-archive {
    background: #070b12;
    color: #f8fafc;
}

.blog-title,
.post-title,
.post-card h2,
.post-card h3 {
    color: #f8fafc;
}

.blog-description,
.post-excerpt,
.post-meta,
.post-card p {
    color: #a7b4c8;
}

.blog-categories,
.post-card {
    background: #111827;
    border-color: #263247;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.cat-btn {
    background: #0b111c;
    color: #a7b4c8;
}

.cat-btn:hover {
    background: #162033;
    color: #f8fafc;
}

.cat-btn.active {
    background: #2563eb;
    color: #fff;
}

.post-thumbnail,
.post-thumbnail__placeholder {
    background: #0b111c;
    color: #7f8ea5;
}

.blog-header {
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 760px;
}

.blog-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: .78rem;
    font-weight: 900;
}

.blog-title {
    color: #0f172a;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.blog-description {
    color: #666;
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Categories Filter */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    background: #fff;
    padding: 10px;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    background: #f8fafc;
    border: none;
    padding: 0 1.1rem;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    color: #666;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.cat-btn:hover {
    color: #1a1a1a;
    background: #f5f5f5;
}

.cat-btn.active {
    background: #1a1a1a;
    color: #fff;
}

/* Posts Grid */
.blog-archive .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 3rem;
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e8edf3;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #ddd;
}

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

.post-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f5f5;
}

.post-thumbnail__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.03);
}

.post-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff;
}

.post-category.articles {
    background: #1e3a8a;
}

.post-category.news {
    background: #e33629;
}

.post-category.video {
    background: #7c3aed;
}

.post-category.podcast {
    background: #059669;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.2s;
    opacity: 0;
}

.post-card:hover .play-icon-overlay {
    opacity: 1;
}

.post-content {
    padding: 1.2rem;
}

.post-title {
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.post-excerpt {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.7rem;
    color: #999;
}

.post-meta i {
    margin-left: 0.3rem;
    font-size: 0.65rem;
}

/* Blog Pagination */
.blog-pagination {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    gap: 0.3rem;
    list-style: none;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    color: #555;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 0.85rem;
}

.blog-pagination .page-numbers .current {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.blog-pagination .page-numbers a:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

/* No Results (for filter) */
.no-results-filter {
    text-align: center;
    padding: 4rem;
    grid-column: 1 / -1;
}

.no-results-filter i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results-filter p {
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-archive .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-archive {
        padding: 1rem 0 3rem;
    }
    
    .blog-title {
        font-size: 1.6rem;
    }
    
    .blog-description {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
    
    .blog-categories {
        gap: 0.3rem;
    }
    
    .cat-btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .blog-archive .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-title {
        font-size: 0.95rem;
    }
    
    .post-excerpt {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* Dark theme final pass */
.blog-archive { background: #070b12; color: #f8fafc; }
.blog-title,
.post-title,
.post-card h2,
.post-card h3 { color: #f8fafc; }
.blog-description,
.post-excerpt,
.post-meta,
.post-card p,
.no-results-filter p { color: #a7b4c8; }
.blog-categories,
.post-card { background: #111827; border-color: #263247; box-shadow: 0 12px 30px rgba(0, 0, 0, .24); }
.cat-btn,
.blog-pagination .page-numbers a { background: #0b111c; border-color: #263247; color: #a7b4c8; }
.cat-btn:hover,
.blog-pagination .page-numbers a:hover { background: #162033; border-color: #334155; color: #f8fafc; }
.cat-btn.active,
.blog-pagination .page-numbers .current { background: #2563eb; border-color: #2563eb; color: #fff; }
.post-thumbnail,
.post-thumbnail__placeholder { background: #0b111c; color: #7f8ea5; }
