/* Blog Archive Styles */

/* ===================================
   HERO SECTION
   =================================== */
.blog-archive-hero-section {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 0;
    color: white;
}

.blog-archive-hero-section .hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.blog-archive-hero-section .hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-archive-hero-section .hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   FILTER SECTION
   =================================== */
.blog-filter-section {
    background: #f5f5f5;
    padding: 30px 20px;
    border-bottom: 2px solid #e0e0e0;
}

.blog-filter-section .filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.blog-filter-section .filter-tab {
    padding: 12px 30px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #333;
    display: inline-block;
}

.blog-filter-section .filter-tab:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
    border-color: #9C27B0;
}

.blog-filter-section .filter-tab.active {
    background: #9C27B0;
    color: white;
    border-color: #9C27B0;
}

/* ===================================
   ARCHIVE PAGE CONTAINER
   =================================== */
.blog-archive-page {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===================================
   BLOG POSTS GRID
   =================================== */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.no-posts {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

/* ===================================
   BLOG POST CARD
   =================================== */
.blog-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper */
.blog-post-card .post-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-post-card .post-image-wrapper .post-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

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

.blog-post-card:hover .post-image {
    transform: scale(1.08);
}

.blog-post-card .post-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(156, 39, 176, 0.95);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Content */
.blog-post-card .post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-post-card .post-meta-top {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.blog-post-card .post-author,
.blog-post-card .post-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-card .post-author svg,
.blog-post-card .post-date svg {
    color: #9C27B0;
}

.blog-post-card .post-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

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

.blog-post-card .post-title a:hover {
    color: #9C27B0;
}

.blog-post-card .post-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-post-card .post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9C27B0;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.blog-post-card .post-read-more:hover {
    color: #7B1FA2;
    padding-right: 5px;
}

.blog-post-card .post-read-more svg {
    transition: transform 0.3s ease;
}

.blog-post-card .post-read-more:hover svg {
    transform: translateX(-3px);
}

/* ===================================
   PAGINATION
   =================================== */
.blog-pagination {
    grid-column: 1 / -1;
    margin-top: 40px;
    text-align: center;
}

.blog-pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 10px 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover {
    background: #f5f5f5;
    border-color: #9C27B0;
    color: #9C27B0;
}

.blog-pagination .page-numbers.current {
    background: #9C27B0;
    border-color: #9C27B0;
    color: white;
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.blog-pagination .page-numbers.dots:hover {
    background: transparent;
    border: none;
}

.blog-pagination .page-numbers svg {
    width: 20px;
    height: 20px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .blog-archive-hero-section {
        padding: 50px 20px;
    }
    
    .blog-archive-hero-section .hero-title {
        font-size: 32px;
    }
    
    .blog-archive-hero-section .hero-description {
        font-size: 16px;
    }
    
    .blog-filter-section .filter-tabs {
        gap: 10px;
    }
    
    .blog-filter-section .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog-archive-hero-section .hero-title {
        font-size: 26px;
    }
    
    .blog-post-card .post-title {
        font-size: 20px;
    }
    
    .blog-pagination .pagination {
        gap: 5px;
    }
    
    .blog-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-card {
    animation: fadeInUp 0.6s ease-out;
}

.blog-post-card:nth-child(1) { animation-delay: 0.1s; }
.blog-post-card:nth-child(2) { animation-delay: 0.2s; }
.blog-post-card:nth-child(3) { animation-delay: 0.3s; }
.blog-post-card:nth-child(4) { animation-delay: 0.4s; }
.blog-post-card:nth-child(5) { animation-delay: 0.5s; }
.blog-post-card:nth-child(6) { animation-delay: 0.6s; }
