/* ========================================
   Watchsite Theme - Category Page Styles
   ======================================== */

/* ==================== Category Hero ==================== */
.p-categoryHero {
    background: var(--ws-primary);
    color: #fff;
    padding: 32px 0;
    margin-bottom: 24px;
}

.p-categoryHero__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.p-categoryHero__desc {
    font-size: 14px;
    opacity: 0.85;
    max-width: 100%;
    line-height: 1.7;
}

/* ==================== Hot Posts Section ==================== */
.p-categoryHot {
    background: var(--ws-bg-white);
    border-radius: var(--ws-radius-md);
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: var(--ws-shadow);
}

.p-categoryHot .c-widget__title.-main {
    margin-bottom: 16px;
}

.p-categoryHot__inner {
    display: flex;
    gap: 20px;
}

/* Featured post */
.p-categoryHot__featured {
    flex: 2;
    min-width: 0;
}

.p-featuredPost__link {
    display: block;
    color: var(--ws-text);
    border-radius: var(--ws-radius-md);
    overflow: hidden;
    background: var(--ws-bg);
    transition: box-shadow var(--ws-transition);
}

.p-featuredPost__link:hover {
    box-shadow: var(--ws-shadow-hover);
}

.p-featuredPost__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.p-featuredPost__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.p-featuredPost__link:hover .p-featuredPost__thumb img {
    transform: scale(1.05);
}

.p-featuredPost__body {
    padding: 12px;
}

.p-featuredPost__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.p-featuredPost__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    /*color: var(--ws-text);*/
}

.p-featuredPost__summary {
    font-size: 14px;
    color: var(--ws-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3 small cards */
.p-categoryHot__list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p-postCard.-small {
    border-bottom: 1px solid var(--ws-border);
    padding-bottom: 12px;
}

.p-postCard.-small:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.p-postCard__link {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--ws-text);
}

.p-postCard__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: var(--ws-radius);
}

.p-postCard__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.p-postCard__link:hover .p-postCard__thumb img {
    transform: scale(1.05);
}

.p-postCard__body {
    flex: 1;
    min-width: 0;
}

.p-postCard__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.p-postCard__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== Category List Section ==================== */
.p-categoryList {
    margin-bottom: 32px;
}

.p-categoryList .c-widget__title.-main {
    margin-bottom: 20px;
}

#article-list {
    min-height: 200px;
    transition: opacity 0.3s ease;
}

/* ==================== Responsive ==================== */
@media (max-width: 699px) {
    .p-categoryHot__inner {
        flex-direction: column;
    }

    .p-postCard__link {
        flex-direction: column;
    }

    .p-postCard__thumb {
        width: 100%;
        height: 120px;
    }
}
