/*
 * Showcase presentation for standard category archives.
 *
 * Markup and behavior remain inherited from AffiliateCMS. All rules are
 * scoped to child-theme body classes so the parent header/menu is untouched.
 */

.acms-showcase-content {
    --asc-blue: #0878ec;
    --asc-blue-dark: #0364ce;
    --asc-blue-soft: #eaf4ff;
    --asc-ink: #0b1d37;
    --asc-muted: #607087;
    --asc-line: #dce5f1;
    --asc-page: #f7faff;
    --asc-surface: #fff;
    background: var(--asc-page);
    color: var(--asc-ink);
}

.acms-showcase-content .site-main {
    background: var(--asc-page);
    color: var(--asc-ink);
    overflow: hidden;
}

.acms-showcase-content .breadcrumb a {
    color: var(--asc-blue);
}

.acms-showcase-content .breadcrumb a:hover {
    color: var(--asc-blue-dark);
}

.acms-showcase-content :where(a, button, input, textarea):focus-visible {
    outline: 3px solid rgba(8, 120, 236, 0.32);
    outline-offset: 3px;
}

/* ==========================================================================
   Category archive
   ========================================================================== */

.acms-showcase-category .cat-header--centered {
    background:
        radial-gradient(circle at 78% 28%, rgba(8, 120, 236, 0.14), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f8fbff 54%, #eef5ff 100%);
    border-bottom: 1px solid #e6edf7;
    isolation: isolate;
    padding: 64px 0 54px;
    position: relative;
}

.acms-showcase-category .cat-header--centered::before {
    background-image: radial-gradient(rgba(8, 120, 236, 0.16) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 0;
    content: "";
    height: auto;
    inset: 0 0 0 52%;
    opacity: 0.5;
    pointer-events: none;
    transform: none;
    width: auto;
    z-index: -1;
}

.acms-showcase-category .cat-header--centered::after {
    background: linear-gradient(90deg, var(--asc-blue), rgba(8, 120, 236, 0.14));
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 116px;
}

.acms-showcase-category .cat-header__icon {
    align-items: center;
    background: var(--asc-blue-soft);
    border: 1px solid #cfe6ff;
    border-radius: 18px;
    color: var(--asc-blue);
    display: inline-flex;
    font-size: 27px;
    height: 62px;
    justify-content: center;
    margin-bottom: 18px;
    transform: rotate(-3deg);
    width: 62px;
}

.acms-showcase-category .cat-header__icon i {
    transform: rotate(3deg);
}

.acms-showcase-category .cat-header--centered .cat-header__title {
    color: var(--asc-ink);
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.07;
    margin: 0 auto 14px;
    max-width: 820px;
    text-wrap: balance;
}

.acms-showcase-category .cat-header--centered .breadcrumb {
    margin: 0 auto 18px;
}

.acms-showcase-category .cat-header--centered .breadcrumb__list {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(207, 226, 247, 0.9);
    border-radius: 999px;
    box-shadow: 0 7px 22px rgba(42, 78, 119, 0.06);
    padding: 7px 13px;
}

.acms-showcase-category .cat-header--centered .cat-header__description {
    color: var(--asc-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 auto 22px;
    max-width: 720px;
}

.acms-showcase-category .cat-header--centered .cat-header__description p {
    margin: 0;
}

.acms-showcase-category .cat-header--centered .cat-header__meta {
    gap: 10px;
    margin: 0 0 28px;
}

.acms-showcase-category .cat-header--centered .cat-header__meta-item {
    background: #fff;
    border: 1px solid var(--asc-line);
    border-radius: 999px;
    box-shadow: 0 7px 18px rgba(23, 50, 85, 0.06);
    color: var(--asc-muted);
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
    padding: 8px 12px;
}

.acms-showcase-category .cat-header--centered .cat-header__meta-item i {
    color: var(--asc-blue);
}

.acms-showcase-category .cat-header--centered .cat-children {
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 980px;
}

.acms-showcase-category .cat-header--centered .cat-child {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--asc-line);
    border-radius: 14px;
    box-shadow: 0 9px 24px rgba(23, 50, 85, 0.06);
    gap: 12px;
    padding: 13px;
}

.acms-showcase-category .cat-header--centered .cat-child:hover {
    border-color: #9dcdff;
    box-shadow: 0 14px 30px rgba(8, 120, 236, 0.12);
    transform: translateY(-3px);
}

.acms-showcase-category .cat-header--centered .cat-child__icon {
    background: var(--asc-blue-soft);
    border-radius: 11px;
    color: var(--asc-blue);
    height: 44px;
    width: 44px;
}

.acms-showcase-category .cat-header--centered .cat-child:hover .cat-child__icon {
    background: var(--asc-blue);
    color: #fff;
}

.acms-showcase-category .cat-header--centered .cat-child__name {
    color: var(--asc-ink);
    font-size: 13px;
    font-weight: 800;
}

.acms-showcase-category .cat-header--centered .cat-child__count {
    color: #7c8a9e;
}

.acms-showcase-category .posts-section {
    background:
        linear-gradient(180deg, #f7faff 0%, #fff 46%, #f8fbff 100%);
    padding: 58px 0 76px;
}

.acms-showcase-category .content-layout {
    gap: 30px;
}

.acms-showcase-category .posts-grid-v2 {
    gap: 24px;
}

.acms-showcase-category .post-card {
    background: var(--asc-surface);
    border: 1px solid var(--asc-line);
    border-radius: 18px;
    box-shadow: 0 9px 26px rgba(23, 50, 85, 0.07);
    min-height: 100%;
}

.acms-showcase-category .post-card--grid-v2 {
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.acms-showcase-category .post-card--grid-v2:hover {
    border-color: #b8d9fc;
    box-shadow: 0 22px 42px rgba(23, 50, 85, 0.14);
    transform: translateY(-6px);
}

.acms-showcase-category .post-card--grid-v2 .post-card__image {
    aspect-ratio: 16 / 10;
    background: #eaf1fa;
}

.acms-showcase-category .post-card--grid-v2 .post-card__image::after {
    background: linear-gradient(180deg, transparent 58%, rgba(7, 27, 56, 0.22));
}

.acms-showcase-category .post-card__content {
    gap: 10px;
    padding: 20px;
}

.acms-showcase-category .post-card__title {
    color: var(--asc-ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.acms-showcase-category .post-card__title a:hover {
    color: var(--asc-blue);
}

.acms-showcase-category .post-card__excerpt {
    color: var(--asc-muted);
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.65;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.acms-showcase-category .post-card__footer-grid {
    border-top-color: #e9eff7;
    color: #7f8da0;
    font-size: 11px;
    margin-top: auto;
    padding-top: 12px;
}

.acms-showcase-category .sidebar-widget {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--asc-line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(23, 50, 85, 0.07);
    padding: 20px;
}

.acms-showcase-category .sidebar-widget__header {
    border-bottom-color: #e7eef7;
}

.acms-showcase-category .sidebar-widget__title {
    color: var(--asc-ink);
}

.acms-showcase-category .sidebar-widget__title i,
.acms-showcase-category .sidebar-widget__link {
    color: var(--asc-blue);
}

.acms-showcase-category .sidebar-category:hover,
.acms-showcase-category .popular-post:hover {
    background: var(--asc-blue-soft);
}

.acms-showcase-category .load-more__btn {
    background: var(--asc-blue);
    border-color: var(--asc-blue);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(8, 120, 236, 0.22);
    color: #fff;
    font-weight: 800;
}

.acms-showcase-category .load-more__btn:hover:not(:disabled) {
    background: var(--asc-blue-dark);
    border-color: var(--asc-blue-dark);
    box-shadow: 0 14px 28px rgba(8, 120, 236, 0.28);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
    .acms-showcase-category .posts-grid-v2 {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .acms-showcase-category .cat-header--centered {
        padding: 44px 0 40px;
    }

    .acms-showcase-category .cat-header--centered::before {
        inset: 0;
        opacity: 0.25;
    }

    .acms-showcase-category .cat-header--centered .cat-header__title {
        font-size: 38px;
    }

    .acms-showcase-category .cat-header--centered .cat-children {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acms-showcase-category .posts-section {
        padding: 38px 0 54px;
    }
}

@media (max-width: 520px) {
    .acms-showcase-category .cat-header--centered .cat-children {
        grid-template-columns: 1fr;
    }

    .acms-showcase-category .cat-header--centered .cat-header__title {
        font-size: 34px;
    }

    .acms-showcase-category .post-card__content {
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acms-showcase-content .post-card,
    .acms-showcase-content .cat-child,
    .acms-showcase-content .load-more__btn {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
