/* ========================================
   Category Archive Styles
   ======================================== */

/* Category Hero */
.category-hero{
    padding: 40px 0 0 0;
}
.category-hero .container {
    background: linear-gradient(135deg, rgba(70,205,207,.08) 0%, rgba(151,227,228,.12) 100%);
    padding: 48px 0 40px;
    border-bottom: 1px solid rgba(70,205,207,.12);
    border-radius: 20px;
}

.category-hero-inner {
    text-align: center;
}

.category-hero-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.category-title {
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: var(--ink, #1a1a2e);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.category-desc {
    font-size: 16px;
    color: var(--text, #555);
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.category-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text, #555);
}

.category-count {
    color: var(--brand, #46CDCF);
    font-weight: 700;
}

.category-divider {
    color: #ccc;
}

.category-meta a {
    color: var(--brand, #46CDCF);
    text-decoration: none;
}

.category-meta a:hover {
    text-decoration: underline;
}

/* Category Articles Section */
.category-articles {
    padding: 48px 0 60px;
}

/* Extend article-card with date meta */
.article-body .article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-body .article-meta time {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.article-body .article-meta .cat-tag {
    font-size: 12px;
    color: var(--brand, #46CDCF);
    background: rgba(70,205,207,.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Pagination */
nav.navigation,
.posts-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #555);
    background: #fff;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-links .page-numbers:hover {
    border-color: var(--brand, #46CDCF);
    color: var(--brand, #46CDCF);
    transform: translateY(-1px);
}

.nav-links .page-numbers.current {
    background: var(--brand, #46CDCF);
    color: #fff;
    border-color: var(--brand, #46CDCF);
}

.nav-links .page-numbers.dots {
    border: none;
    background: none;
    min-width: auto;
}

.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
    padding: 0 16px;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.no-posts h2 {
    font-size: 24px;
    color: var(--ink, #1a1a2e);
    margin: 0 0 8px;
}

.no-posts p {
    color: var(--text, #555);
    margin: 0 0 24px;
}

/* CTA Section */
.category-cta {
    padding: 0 0 60px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 44px;
    background: linear-gradient(135deg, var(--brand, #46CDCF), #3ab8ba);
    border-radius: 20px;
    color: #fff;
}

.cta-content h2 {
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}

.cta-content p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

.cta-card .btn-primary {
    background: #fff;
    color: var(--brand, #46CDCF);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-card .btn-primary:hover {
    background: rgba(255,255,255,.9);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 760px) {
    .category-hero {
        padding: 36px 0 28px;
    }

    .category-articles {
        padding: 32px 0 40px;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .cta-content h2 {
        font-size: 20px;
    }
}
