/**
 * Post Category Archive — Wide List Layout
 *
 * Targets category.php template via .tpb-category-archive class on #primary.
 *
 * @package ThePhinBox
 */

/* ═══════════════════════════════════════════════════════════════════
   1. LAYOUT — Full width, no sidebar
   ═══════════════════════════════════════════════════════════════════ */

body.category #secondary {
    display: none !important;
}

body.category .content-area {
    max-width: 100% !important;
}

.tpb-category-archive__main {
    background: #fff;
}

.tpb-category-archive__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ═══════════════════════════════════════════════════════════════════
   2. HEADER
   ═══════════════════════════════════════════════════════════════════ */

.tpb-category-archive__header {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.tpb-category-archive__title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px;
}

.tpb-category-archive__description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* ═══════════════════════════════════════════════════════════════════
   3. POST LIST — Wide row per post
   ═══════════════════════════════════════════════════════════════════ */

.tpb-category-archive__list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tpb-category-archive__item {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.tpb-category-archive__item:last-child {
    border-bottom: none;
}

.tpb-category-archive__item-thumb {
    display: block;
    aspect-ratio: 6 / 3;
    overflow: hidden;
    border-radius: 8px;
}

.tpb-category-archive__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpb-category-archive__item-body {
    min-width: 0;
}

.tpb-category-archive__item-category {
    margin-bottom: 8px;
}

.tpb-category-archive__item-category a {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b8860b;
    text-decoration: none;
}

.tpb-category-archive__item-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.tpb-category-archive__item-title a {
    color: inherit;
    text-decoration: none;
}

.tpb-category-archive__item-title a:hover {
    opacity: 0.7;
}

.tpb-category-archive__item-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}

.tpb-category-archive__item-sep {
    margin: 0 6px;
}

.tpb-category-archive__item-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 14px;
}

.tpb-category-archive__item-more {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.tpb-category-archive__item-more:hover {
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════
   4. PAGINATION
   ═══════════════════════════════════════════════════════════════════ */

.tpb-category-archive__pagination {
    margin-top: 48px;
}

.tpb-category-archive__pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tpb-category-archive__pagination a,
.tpb-category-archive__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    text-decoration: none;
    color: #111;
}

.tpb-category-archive__pagination .current {
    background: #111;
    color: #fff;
}

.tpb-category-archive__empty {
    font-size: 16px;
    color: #666;
}

/* ═══════════════════════════════════════════════════════════════════
   5. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media ( max-width: 782px ) {
    .tpb-category-archive__item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tpb-category-archive__title {
        font-size: 28px;
    }
}
