/**
 * GlowDailyHub — Category page redesign (scoped under .page-category)
 * Reuses .home__grid, .feed-card, .side-card, .pager, .author-box,
 * .side-news, .share-row from home.css. Adds the hero banner, toolbar
 * (sort / search), subcategory filters and the "Top 15 Posts" list.
 * Light + dark + fully responsive.
 */

/* ── hero banner ─────────────────────────────────────────────── */
.cat-hero-wrap { padding: 24px 0 0; }
.cat-hero {
    position: relative; overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(120deg, #FFE0EA 0%, #FFF1F5 55%, #FDE6EE 100%);
    padding: 40px 44px; min-height: 220px;
    display: flex; align-items: center; gap: 30px;
}
[data-theme="dark"] .cat-hero { background: linear-gradient(120deg, #2C1822, #1E1620 60%, #241622); }
.cat-hero__text { flex: 1; min-width: 0; position: relative; z-index: 2; }
.cat-hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(233, 69, 96, .12); color: var(--h-accent);
    font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
}
.cat-hero__title {
    font-family: var(--font-heading);
    font-size: 40px; font-weight: 700; color: var(--h-text); margin: 0 0 10px; line-height: 1.1;
}
.cat-hero__desc { font-size: 15px; color: var(--h-muted); line-height: 1.6; max-width: 460px; margin: 0 0 20px; }
.cat-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-hero__btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14px;
    text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s, color .15s;
}
.cat-hero__btn--primary { background: linear-gradient(135deg, #E94560, #C73650); color: #fff; }
.cat-hero__btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(233, 69, 96, .35); }
.cat-hero__btn--ghost { background: rgba(255, 255, 255, .72); border-color: var(--h-border); color: var(--h-text); }
[data-theme="dark"] .cat-hero__btn--ghost { background: rgba(255, 255, 255, .08); }
.cat-hero__btn--ghost:hover { border-color: var(--h-accent); color: var(--h-accent); }
.cat-hero__media { flex: 0 0 36%; max-width: 360px; align-self: stretch; position: relative; z-index: 2; }
.cat-hero__media img { width: 100%; height: 100%; max-height: 210px; object-fit: cover; border-radius: 16px; display: block; }

/* Transparent cutout hero (nail / hair / room PNG) — subject floats and bleeds
   to the banner edge, no card box. Clipped by .cat-hero's rounded corners. */
.cat-hero__media--cutout {
    flex: 0 0 48%; max-width: 540px;
    align-self: stretch; margin: -40px -44px -40px 0; z-index: 2;
}
.cat-hero__media--cutout img {
    width: 100%; height: 100%; max-height: none; min-height: 260px;
    object-fit: contain; object-position: bottom right;
    border-radius: 0; background: transparent; display: block;
    filter: drop-shadow(0 12px 22px rgba(180, 120, 130, .18));
}
.cat-hero__spark { position: absolute; color: rgba(233, 69, 96, .22); z-index: 1; }
.cat-hero__spark--1 { top: 26px; right: 40%; font-size: 22px; }
.cat-hero__spark--2 { bottom: 36px; right: 45%; font-size: 14px; }

/* ── breadcrumb + sort ───────────────────────────────────────── */
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-crumbs { font-size: 13px; color: var(--h-muted); }
.cat-crumbs a { color: var(--h-accent); text-decoration: none; }
.cat-crumbs a:hover { text-decoration: underline; }
.cat-crumbs strong { color: var(--h-text); font-weight: 600; }
.cat-crumbs span { margin: 0 5px; color: var(--h-muted); }
.cat-sort { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cat-sort__label { font-size: 13px; color: var(--h-muted); margin-right: 4px; }
.cat-sort__btn {
    font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
    text-decoration: none; color: var(--h-muted); border: 1px solid transparent; transition: all .15s;
}
.cat-sort__btn:hover { color: var(--h-accent); }
.cat-sort__btn.is-active { background: rgba(233, 69, 96, .1); color: var(--h-accent); border-color: rgba(233, 69, 96, .25); }

/* ── search ──────────────────────────────────────────────────── */
.cat-search { position: relative; margin-bottom: 16px; }
.cat-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--h-muted); }
.cat-search__input {
    width: 100%; padding: 12px 18px 12px 44px;
    border: 1px solid var(--h-border); border-radius: 999px;
    background: var(--h-card); color: var(--h-text); font: inherit; font-size: 14px;
}
.cat-search__input:focus { outline: none; border-color: var(--h-accent); box-shadow: 0 0 0 3px rgba(233, 69, 96, .12); }

/* ── subcategory filter pills ────────────────────────────────── */
.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cat-pill {
    font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px;
    text-decoration: none; border: 1px solid var(--h-border); color: var(--h-text);
    background: var(--h-card); transition: all .15s;
}
.cat-pill:hover { border-color: var(--h-accent); color: var(--h-accent); }
.cat-pill.is-active { background: var(--h-accent); border-color: var(--h-accent); color: #fff; }

/* ── "Top 15 Posts" numbered list ────────────────────────────── */
.toc-list { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.toc-item {
    counter-increment: toc; display: flex; gap: 10px;
    padding: 8px 0; border-top: 1px solid var(--h-border); font-size: 13.5px; line-height: 1.4;
}
.toc-item:first-child { border-top: none; padding-top: 0; }
.toc-item::before {
    content: counter(toc, decimal-leading-zero) ".";
    color: var(--h-accent); font-weight: 700; flex: 0 0 auto; min-width: 22px;
}
.toc-item a { color: var(--h-text); text-decoration: none; }
.toc-item a:hover { color: var(--h-accent); }

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cat-hero { flex-direction: column; align-items: flex-start; padding: 28px 22px; min-height: 0; }
    .cat-hero__media { display: none; }
    .cat-hero__title { font-size: 30px; }
    .cat-hero__spark { display: none; }
    .cat-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 480px) {
    .cat-hero-wrap { padding: 14px 0 0; }
    .cat-hero { border-radius: 16px; padding: 24px 18px; }
    .cat-hero__title { font-size: 26px; }
}