/**
 * Blog & Archive Pages CSS
 * Styles cho trang blog, category, archive
 */

/* Page Header for Blog/Archive */
.archive-page .page-header-section,
.category-page .page-header-section,
.blog .page-header-section {
    background: linear-gradient(135deg, #2d1b4e 0%, #7c3aed 100%);
    color: white;
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.archive-page .page-header-section::before,
.category-page .page-header-section::before,
.blog .page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(240, 171, 252, 0.3), transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.2), transparent 60%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.page-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.category-meta {
    margin-top: 25px;
}

.post-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #a855f7, #f0abfc);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(240, 171, 252, 0.5);
}

.post-count i {
    font-size: 18px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.post-card {
    background: rgba(45, 27, 78, 0.6);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(240, 171, 252, 0.2);
    backdrop-filter: blur(10px);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
    border-color: var(--color-gold);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: none;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    color: var(--color-gold);
    font-size: 14px;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 800;
}

.post-title a {
    color: #faf5ff;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #f0abfc;
}

.post-excerpt {
    color: rgba(250, 245, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 22px;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(109, 40, 217, 0.05);
}

.read-more:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    gap: 15px;
    padding-right: 25px;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 70px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 18px;
    background: rgba(45, 27, 78, 0.6);
    color: #faf5ff;
    border: 2px solid rgba(240, 171, 252, 0.3);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}

.pagination .prev,
.pagination .next {
    gap: 8px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    .archive-page .page-header-section,
    .category-page .page-header-section,
    .blog .page-header-section {
        padding: 50px 0 40px;
    }
}

@media (max-width: 576px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-title {
        font-size: 1.35rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .archive-page .page-header-section,
    .category-page .page-header-section,
    .blog .page-header-section {
        padding: 40px 0 30px;
    }
    
    .pagination .page-numbers {
        min-width: 45px;
        height: 45px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
}
