/* ========================================
   Modern Category Page Styles
   ======================================== */

/* Category Hero Section */
.category-hero-modern {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 3rem;
}

.category-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.category-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.category-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.category-title-modern {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.category-description-modern {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.category-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    color: white;
}

.category-stat-item i {
    font-size: 1.2rem;
}

.category-stat-item strong {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Category Posts Section */
.category-posts-section {
    padding: 2rem 0 4rem;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Post Card Styles */
.category-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.category-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.post-card-image {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    transition: all 0.4s ease;
}

.category-post-card:hover .post-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.post-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-badge i {
    font-size: 0.7rem;
}

/* Post Card Content */
.post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #718096;
}

.post-meta-item i {
    font-size: 0.9rem;
    color: #a0aec0;
}

.post-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-card-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: #667eea;
}

.post-card-excerpt {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.post-card-footer {
    margin-top: auto;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pagination-modern-wrapper {
    margin-top: 4rem;
    text-align: center;
}

.pagination-modern {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.pagination-modern .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-modern .page-numbers:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

.pagination-modern .page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination-modern .page-numbers.dots {
    border: none;
    background: transparent;
}

.pagination-modern .page-numbers.dots:hover {
    background: transparent;
    transform: none;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 5rem 2rem;
}

.no-posts-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #667eea22 0%, #764ba244 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-posts-icon i {
    font-size: 3.5rem;
    color: #667eea;
}

.no-posts-found h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.no-posts-found p {
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-hero-modern {
        padding: 4rem 0 3rem;
    }
    
    .category-title-modern {
        font-size: 2rem;
    }
    
    .category-description-modern {
        font-size: 1rem;
    }
    
    .category-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .category-icon-wrapper i {
        font-size: 2rem;
    }
    
    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card-image {
        height: 200px;
    }
    
    .post-card-title {
        font-size: 1.15rem;
    }
    
    .category-stats {
        gap: 1rem;
    }
    
    .category-stat-item {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .category-title-modern {
        font-size: 1.75rem;
    }
    
    .post-card-meta {
        gap: 0.75rem;
    }
    
    .post-meta-item {
        font-size: 0.8rem;
    }
    
    .pagination-modern .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
