/* ============================================
   BLOG INDEX / ARCHIVE STYLES
   Page: index.php
   ============================================ */

/* Blog Archive Styles */
.blog-archive { background: #0a0b0f; min-height: 100vh; }

.blog-hero-archive {
    position: relative;
    padding: 140px 0 80px;
    background: #0a0b0f;
    overflow: hidden;
}

.blog-hero-archive::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,0.15), transparent);
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.blog-hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.blog-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.1;
    margin-bottom: 24px;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 700px;
}

/* Categories Filter */
.blog-categories {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.blog-category-filter {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 50px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-category-filter:hover,
.blog-category-filter.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

/* Blog Grid */
.blog-grid-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Featured Post */
.blog-featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    background: #12141c;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

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

.blog-featured-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    width: fit-content;
}

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

.blog-featured-category {
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
}

.blog-featured-date {
    font-size: 14px;
    color: #64748b;
}

.blog-featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    margin-bottom: 16px;
}

.blog-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-featured-title a:hover {
    color: #a5b4fc;
}

.blog-featured-excerpt {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.blog-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 8px;
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    width: fit-content;
}

.blog-featured-link:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Regular Blog Card */
.blog-card {
    background: #12141c;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s;
}

.blog-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

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

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-card-category {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
}

.blog-card-date {
    font-size: 13px;
    color: #64748b;
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #a5b4fc;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
    transition: gap 0.3s;
}

.blog-card-link:hover {
    gap: 10px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 64px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #12141c;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-pagination .page-numbers:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #f8fafc;
}

.blog-pagination .page-numbers.current {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
}

/* No Posts */
.blog-no-posts {
    text-align: center;
    padding: 80px 24px;
}

.blog-no-posts-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

.blog-no-posts h2 {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 12px;
}

.blog-no-posts p {
    color: #94a3b8;
}

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

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-featured {
        grid-column: span 1;
    }
    
    .blog-hero-archive {
        padding: 100px 0 60px;
    }
}
