/* =========================================================
   LISTOOL AI — Category SEO Pages V98
   Premium SSR category template, no framework dependency.
========================================================= */

.category-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 8%, rgba(125, 92, 255, .22), transparent 34rem),
        radial-gradient(circle at 84% 18%, rgba(0, 229, 255, .16), transparent 30rem),
        linear-gradient(180deg, #060712 0%, #080a16 48%, #05060c 100%);
    color: #f7f7ff;
    min-height: 100vh;
}

.category-page .container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.category-hero {
    position: relative;
    padding: 118px 0 76px;
    isolation: isolate;
}

.category-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: rgba(245,247,255,.62);
    font-size: .92rem;
}

.category-breadcrumb a {
    color: rgba(245,247,255,.72);
    text-decoration: none;
}

.category-breadcrumb a:hover { color: #fff; }

.category-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
    gap: 48px;
    align-items: center;
}

.category-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    font-size: .83rem;
    letter-spacing: .02em;
}

.category-badge__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
}

.category-hero h1 {
    margin: 18px 0 18px;
    max-width: 760px;
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    line-height: .9;
    letter-spacing: -.075em;
}

.category-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(245,247,255,.72);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.75;
}

.category-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.category-hero__panel {
    position: relative;
    min-height: 360px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.045)),
        radial-gradient(circle at 30% 20%, rgba(139,92,246,.34), transparent 20rem);
    box-shadow: 0 30px 100px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.1);
    overflow: hidden;
    backdrop-filter: blur(22px);
}

.category-orbit {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.11);
    box-shadow: 0 0 0 52px rgba(255,255,255,.028), 0 0 0 104px rgba(255,255,255,.018);
}

.category-panel-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(7,9,20,.66);
    backdrop-filter: blur(16px);
}

.category-panel-card span,
.category-panel-card strong { position: relative; }
.category-panel-card span { color: rgba(255,255,255,.62); font-size: .92rem; }
.category-panel-card strong { color: #fff; text-align: right; }

.category-editorial,
.category-featured,
.category-directory,
.category-latest,
.category-faq {
    position: relative;
    z-index: 1;
}

.category-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: stretch;
    margin-top: -22px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 30px;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(20px);
}

.category-editorial h2,
.section-heading h2,
.category-results__top h2,
.category-faq h2 {
    margin: 12px 0 10px;
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.category-editorial p,
.section-heading p,
.category-results__top p,
.category-faq p {
    color: rgba(245,247,255,.68);
    line-height: 1.75;
}

.category-editorial__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
}

.category-editorial__stats div {
    display: grid;
    gap: 8px;
    place-items: center;
    padding: 18px;
    border-radius: 22px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.09);
    text-align: center;
}

.category-editorial__stats strong { font-size: 1.6rem; color: #fff; }
.category-editorial__stats span { color: rgba(255,255,255,.58); font-size: .86rem; }

.section-heading {
    max-width: 760px;
    margin-bottom: 26px;
}

.category-featured,
.category-latest,
.category-faq { padding-top: 72px; }

.category-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-directory {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding-top: 72px;
}

.category-sidebar {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 18px;
}

.category-sidebar__card,
.category-sidebar__cta {
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 26px;
    background: rgba(255,255,255,.055);
    box-shadow: 0 24px 70px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
}

.category-sidebar__card { padding: 18px; }
.category-sidebar__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.category-sidebar__head span { color: #fff; font-weight: 800; }
.category-sidebar__head button {
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.62);
    cursor: pointer;
}
.category-sidebar__head button:hover { color: #fff; }

.category-field { display: grid; gap: 8px; margin-bottom: 14px; }
.category-field span { color: rgba(255,255,255,.62); font-size: .88rem; }
.category-field input,
.category-field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(0,0,0,.22);
    color: #fff;
    outline: none;
}
.category-field input:focus,
.category-field select:focus {
    border-color: rgba(139,92,246,.6);
    box-shadow: 0 0 0 4px rgba(139,92,246,.16);
}

.category-checks { display: grid; gap: 10px; margin-top: 14px; }
.category-checks label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.78);
    cursor: pointer;
}

.related-cats h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1rem;
}
.related-cats a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.related-cats a:last-child { border-bottom: 0; }
.related-cats a:hover { color: #fff; }
.related-cats small {
    color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.07);
    border-radius: 999px;
    padding: 2px 8px;
}

.category-sidebar__cta {
    padding: 20px;
    display: grid;
    gap: 12px;
    background:
        radial-gradient(circle at 20% 0%, rgba(139,92,246,.28), transparent 15rem),
        rgba(255,255,255,.055);
}
.category-sidebar__cta span { color: rgba(255,255,255,.62); }
.category-sidebar__cta strong { color: #fff; line-height: 1.35; }

.category-results {
    min-width: 0;
}

.category-results__top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}
.category-results__top h2 { margin-bottom: 0; }
.category-results__top p { margin: 0; }

.category-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.category-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}
.category-pagination a {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding-inline: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.78);
    text-decoration: none;
}
.category-pagination a:hover,
.category-pagination a.is-active {
    color: #fff;
    border-color: rgba(139,92,246,.52);
    background: rgba(139,92,246,.22);
}

.category-faq { padding-bottom: 90px; }
.category-faq__list {
    display: grid;
    gap: 12px;
    max-width: 880px;
}
.category-faq details {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: rgba(255,255,255,.055);
    overflow: hidden;
}
.category-faq summary {
    cursor: pointer;
    padding: 18px 20px;
    color: #fff;
    font-weight: 800;
}
.category-faq details p {
    margin: 0;
    padding: 0 20px 20px;
}

.category-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.category-seo-links a {
    padding: 10px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.74);
    text-decoration: none;
}
.category-seo-links a:hover { color: #fff; }

.category-empty-state,
.category-empty-inline {
    width: min(820px, calc(100% - 40px));
    margin: 110px auto;
    padding: 46px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 30px;
    background: rgba(255,255,255,.055);
}
.category-empty-inline {
    grid-column: 1 / -1;
    margin: 0;
    width: 100%;
}
.category-empty-state h1,
.category-empty-inline h3 { color: #fff; }
.category-empty-state p,
.category-empty-inline p { color: rgba(255,255,255,.68); }

.category-loading {
    grid-column: 1 / -1;
    padding: 34px;
    border-radius: 24px;
    text-align: center;
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.68);
}

@media (max-width: 1040px) {
    .category-hero__grid,
    .category-editorial,
    .category-directory {
        grid-template-columns: 1fr;
    }
    .category-sidebar { position: static; }
    .category-featured-grid,
    .category-tools-grid,
    .category-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .category-page .container { width: min(100% - 24px, 1180px); }
    .category-hero { padding: 92px 0 52px; }
    .category-hero h1 { letter-spacing: -.06em; }
    .category-hero__panel { min-height: auto; }
    .category-editorial__stats,
    .category-featured-grid,
    .category-tools-grid,
    .category-mini-grid { grid-template-columns: 1fr; }
    .category-results__top { align-items: flex-start; flex-direction: column; }
    .category-breadcrumb { overflow-x: auto; white-space: nowrap; }
}
