/**
 * Blog Category Archive Styles
 * Extracted from category.php template
 *
 * @package TravelerChildTheme
 * @since 2.0.0
 */

/* Constrain category archive containers */
body.category #primary.site-main .container {
    max-width: 960px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Override global body color for blog pages */
body.category {
    color: #212529!important;
}

/* Category Hero - Matching hub style */
#primary.site-main .category-hero {
    background: rgb(255 153 0 / 4%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

#primary.site-main .category-overline {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 15px;
}

#primary.site-main .category-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    line-height: 1.2;
}

#primary.site-main .category-hero-description {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 15px;
}

#primary.site-main .category-meta-text {
    font-size: 14px;
    color: #6c757d;
}

/* Content Area */
#primary.site-main .category-content {
    padding: 60px 0;
}

/* Post Grid */
#primary.site-main .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

/* Post Cards - Matching hub pill style */
#primary.site-main .post-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#primary.site-main .post-card:hover {
    transform: translateY(-2px);
    border-color: #324fbe;
    box-shadow: 0 2px 8px rgba(50, 79, 190, 0.15);
}

#primary.site-main .post-thumbnail {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

#primary.site-main .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#primary.site-main .post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

#primary.site-main .post-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#primary.site-main .post-category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #324fbe;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    align-self: flex-start;
}

#primary.site-main .post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    flex-grow: 0;
}

#primary.site-main .post-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

#primary.site-main .post-title a:hover {
    color: #324fbe;
}

#primary.site-main .post-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 14px;
    flex-grow: 1;
}

#primary.site-main .post-meta-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #6c757d;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

#primary.site-main .post-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

#primary.site-main .read-more-link {
    color: #324fbe;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#primary.site-main .read-more-link:hover {
    color: #2a3f9e;
    gap: 8px;
}

/* No Posts Message */
#primary.site-main .no-posts-message {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#primary.site-main .no-posts-message h2 {
    font-size: 28px;
    color: #212529;
    margin-bottom: 15px;
}

#primary.site-main .no-posts-message p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
}

#primary.site-main .btn-primary-custom {
    display: inline-block;
    padding: 12px 28px;
    background: #324fbe;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#primary.site-main .btn-primary-custom:hover {
    background: #2a3f9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 79, 190, 0.3);
}

/* Pagination - Matching hub style */
#primary.site-main .pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

#primary.site-main .pagination-wrapper ul.page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#primary.site-main .pagination-wrapper .page-numbers li {
    list-style: none;
}

#primary.site-main .pagination-wrapper .page-numbers a,
#primary.site-main .pagination-wrapper .page-numbers span {
    display: inline-block;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

#primary.site-main .pagination-wrapper .page-numbers a:hover {
    background: #324fbe;
    border-color: #324fbe;
    color: #ffffff;
}

#primary.site-main .pagination-wrapper .page-numbers span.current {
    background: #324fbe;
    border-color: #324fbe;
    color: #ffffff;
}

/* Hide breadcrumbs and banners (fallback for remove_action) */
.st-breadcrumb,
.st-blog--banner,
.st-banner-solo {
    display: none !important;
}

/* Screen reader only text */
#primary.site-main .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* Sidebar - Matching hub widget style */
#primary.site-main .sidebar-widget {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #dee2e6;
}

#primary.site-main .widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
}

#primary.site-main .related-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

#primary.site-main .related-categories li {
    margin-bottom: 8px;
}

#primary.site-main .related-categories a {
    color: #495057;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
}

#primary.site-main .related-categories a:hover {
    background: #f8f9fa;
    color: #324fbe;
    padding-left: 16px;
}

#primary.site-main .related-categories a.is-current-category {
    background: #f0f4ff;
    color: #324fbe;
    font-weight: 600;
}

#primary.site-main .category-count-badge {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
}

#primary.site-main .popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

#primary.site-main .popular-posts li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

#primary.site-main .popular-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#primary.site-main .popular-posts a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

#primary.site-main .popular-posts a:hover {
    color: #324fbe;
}

#primary.site-main .popular-post-date {
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    #primary.site-main .post-grid {
        grid-template-columns: 1fr;
    }

    #primary.site-main .category-hero h1 {
        font-size: 32px;
    }

    #primary.site-main .category-hero-description {
        font-size: 16px;
    }

    #primary.site-main .category-content {
        padding: 40px 0;
    }
}
