/* WCJ TV Dynamic Category Page */

.category-page {
    background: var(--bg);
}

/* Hero */

.category-hero {
    padding: 30px 0 18px;
}

.category-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: center;
    padding: 34px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(104, 154, 191, 0.30), transparent 32%),
        linear-gradient(135deg, #07111f, #0f2d46);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.category-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.16), transparent 26%),
        linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.22));
    pointer-events: none;
}

.category-hero-content,
.category-hero-side {
    position: relative;
    z-index: 2;
}

.category-kicker {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
}

.category-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 650;
}

.category-hero p {
    max-width: 650px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    line-height: 1.6;
}

.category-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.category-stats-row span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 700;
}

.category-stats-row strong {
    color: var(--white);
    font-weight: 700;
}

.category-hero-side {
    display: grid;
    place-items: center;
}

.category-icon {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 58px;
    line-height: 1;
    font-weight: 650;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

/* Content */

.category-content-section {
    padding: 12px 0 74px;
}

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.category-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.category-filter-chips a,
.category-back-link,
.category-empty-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.category-filter-chips a {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.category-filter-chips a:hover,
.category-filter-chips a.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.category-back-link {
    flex: 0 0 auto;
    background: var(--bg-soft);
    color: var(--primary);
}

.category-back-link:hover {
    background: var(--primary);
    color: var(--white);
}

.category-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Empty */

.category-empty-state {
    max-width: 620px;
    margin: 34px auto 0;
    padding: 34px;
    border-radius: 26px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.category-empty-state span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(4, 86, 148, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.category-empty-state h2 {
    margin: 16px 0 0;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 650;
}

.category-empty-state p {
    margin: 12px auto 0;
    max-width: 460px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.category-empty-btn {
    margin-top: 20px;
    background: var(--primary);
    color: var(--white);
}

.category-empty-btn:hover {
    background: #034a7f;
    color: var(--white);
}

/* Reuse stream card refinement for category pages */

.category-page .stream-card {
    border-radius: 20px;
}

.category-page .stream-card-body h3 {
    font-size: 19px;
    font-weight: 650;
}

.category-page .stream-card-body p {
    font-size: 14px;
}

/* Responsive */

@media (max-width: 980px) {
    .category-hero-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .category-hero-side {
        display: none;
    }

    .category-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .category-hero {
        padding: 20px 0 12px;
    }

    .category-hero-card {
        padding: 24px;
        border-radius: 22px;
    }

    .category-hero h1 {
        font-size: 34px;
    }

    .category-hero p {
        font-size: 14px;
    }

    .category-stats-row span {
        min-height: 32px;
        font-size: 11px;
    }

    .category-content-section {
        padding-bottom: 52px;
    }

    .category-filter-chips {
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .category-filter-chips::-webkit-scrollbar {
        display: none;
    }

    .category-filter-chips a {
        flex: 0 0 auto;
    }

    .category-post-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-empty-state {
        padding: 24px;
        border-radius: 22px;
    }

    .category-empty-state h2 {
        font-size: 25px;
    }
}