/**
 * components/blog-list/blog-list.css
 * استایل صفحه لیست مقالات وبلاگ با طراحی مدرن و ریپسانسیو
 */

.blog-list-container {
    padding: 50px 0 90px;
    background: #fafafa;
    min-height: 80vh;
}

.blog-list-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-list-title {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.blog-list-subtitle {
    font-size: 15px;
    color: #666;
}

/* کارت‌های گرید وبلاگ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 163, 0, 0.12);
    border-color: rgba(212, 163, 0, 0.3);
}

.blog-card-img-link {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-img-placeholder span {
    color: #d4a300;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 12px;
}

.blog-card-title a {
    color: #222;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

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

.blog-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 20px;
    flex-grow: 1;
}

.blog-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
}

.btn-read-more {
    font-size: 14px;
    font-weight: 700;
    color: #d4a300;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.btn-read-more i {
    font-size: 12px;
}

.btn-read-more:hover {
    color: #b88a00;
    gap: 12px;
}

/* استایل نبود مقاله */
.no-posts-alert {
    background: #ffffff;
    border-radius: 18px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    max-width: 600px;
    margin: 40px auto 0;
}

.no-posts-alert p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.btn-back-home {
    display: inline-block;
    background: #111;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.btn-back-home:hover {
    background: #d4a300;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-list-container {
        padding: 30px 0 60px;
    }
    
    .blog-list-title {
        font-size: 26px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card-img-link {
        height: 200px;
    }
}
