/* ============================================
   CATEGORY ARCHIVE - MINIMAL & CLEAN DESIGN
   ============================================ */

/* ========== CATEGORY HERO ========== */
.category-hero {
    padding: 48px 0 56px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.category-hero-content {
    max-width: 680px;
}

.category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 16px;
}

.category-label i {
    color: #3b82f6;
}

.category-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 16px;
    letter-spacing: -0.025em;
}

.category-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 20px;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    color: #64748b;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
}

.category-count i {
    color: #3b82f6;
}

/* ========== CATEGORY CONTENT ========== */
.category-content {
    padding: 56px 0 80px;
    background: #fff;
}

/* ========== CATEGORY GRID ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========== CATEGORY CARD ========== */
.category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Card Image */
.category-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    font-size: 2.5rem;
}

/* Card Body */
.category-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Card Meta */
.category-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.category-card-readtime {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-card-readtime i {
    font-size: 0.75rem;
}

/* Card Title */
.category-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.category-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.category-card-title a:hover {
    color: #3b82f6;
}

/* Card Excerpt */
.category-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 20px;
    flex-grow: 1;
}

/* Card Link */
.category-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.category-card-link:hover {
    color: #1e40af;
    gap: 12px;
}

.category-card-link i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.category-card:hover .category-card-link i {
    transform: translateX(2px);
}

/* ========== PAGINATION ========== */
.category-pagination {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.category-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-pagination .page-numbers li {
    margin: 0;
}

.category-pagination .page-numbers a,
.category-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.category-pagination .page-numbers a:hover {
    color: #3b82f6;
    border-color: #3b82f6;
    background: #f0f9ff;
}

.category-pagination .page-numbers .current {
    color: #fff;
    background: #3b82f6;
    border-color: #3b82f6;
}

.category-pagination .page-numbers .prev,
.category-pagination .page-numbers .next {
    gap: 6px;
    font-weight: 600;
}

/* ========== EMPTY STATE ========== */
.category-empty {
    text-align: center;
    padding: 80px 20px;
}

.category-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.category-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.category-empty p {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 24px;
}

/* ========== RELATED CATEGORIES ========== */
.category-related {
    padding: 64px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.category-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0 0 32px;
}

.category-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .category-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-related-grid {
        grid-template-columns: 1fr;
    }
}

.category-related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.category-related-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.category-related-name {
    font-weight: 600;
    color: #0f172a;
    transition: color 0.2s;
}

.category-related-card:hover .category-related-name {
    color: #3b82f6;
}

.category-related-count {
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* ========== MOBILE REFINEMENTS ========== */
@media (max-width: 640px) {
    .category-hero {
        padding: 32px 0 40px;
    }

    .category-content {
        padding: 40px 0 60px;
    }

    .category-card-body {
        padding: 20px;
    }

    .category-pagination {
        margin-top: 40px;
    }

    .category-related {
        padding: 48px 0;
    }
}