/* Blog Archive Styles */

.blog-archive {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-post-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.post-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Placeholder для постов без изображения */
.post-thumbnail.placeholder {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.blog-post-card:hover .placeholder-icon {
    transform: scale(1.1);
    opacity: 0.7;
}

/* Стили для карточек без изображений */
.blog-post-card.no-thumbnail {
    min-height: 280px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-card.no-thumbnail:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
}

.blog-post-card.no-thumbnail .post-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.blog-post-card.no-thumbnail .post-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.blog-post-card.no-thumbnail .post-excerpt {
    flex: 1;
    margin-bottom: 20px;
}

.blog-post-card.no-thumbnail .post-meta {
    margin-bottom: 12px;
}

.post-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #8b5cf6;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: #a855f7;
    transform: translateX(5px);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
}

.pagination a,
.pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-archive {
        padding: 100px 0 60px;
    }

    .page-title {
        font-size: 2rem;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .post-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin-bottom: 40px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .post-thumbnail {
        height: 200px;
    }
}
