/* === BLOG HERO SECTION === */
.blog-hero-section {
    padding: 140px 24px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.blog-hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(91,94,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
}

.blog-hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-mid);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.8;
}

/* === BLOG BODY === */
.blog-body {
    padding: 0 24px 80px;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* === FILTER TABS === */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 600;
    font-family: 'IranYekanX', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(91,94,255,0.3);
}

/* === FEATURED POST === */
.featured-post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 48px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.featured-post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(91,94,255,0.2);
}

.featured-img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, var(--primary) 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}

.featured-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.12);
}

.featured-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.featured-img span { position: relative; z-index: 1; }

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

.featured-body h2 {
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text);
}

.featured-body p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 24px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-top: 20px;
    transition: gap 0.25s ease;
}

.read-more:hover { gap: 12px; }

@media (max-width: 768px) {
    .featured-post { grid-template-columns: 1fr; margin-bottom: 32px; }
    .featured-img { min-height: 200px; }
    .featured-body { padding: 20px; }
    .card-body { padding: 20px; }
}

/* === BLOG GRID === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: opacity 0.3s ease;
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }

/* === POST CARD === */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: rgba(91,94,255,0.2);
}

.post-card.hidden {
    display: none;
}

.card-img {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
}

.card-img.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.card-img.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card-img.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card-img.gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.card-img.gradient-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.card-img.gradient-6 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.card-img span { position: relative; z-index: 1; }

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 10px;
    margin-top: 12px;
    color: var(--text);
    transition: color 0.2s;
}

.post-card:hover .card-body h3 {
    color: var(--primary);
}

.card-body p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-light);
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    display: none;
    animation: fadeUp 0.4s ease;
}

.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.empty-state p { font-size: 15px; color: var(--text-mid); }

/* === MOBILE === */
@media (max-width: 768px) {
    .blog-hero-section {
        padding: 120px 16px 40px;
    }

    .blog-body {
        padding: 0 12px 60px;
    }

    .filter-bar {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}
