/*
 * Lyonis Corp — modern category listing
 * Loaded only on DLE category pages from main.tpl.
 */

.lyonis-category-page {
    position: relative;
    padding: 78px 0 92px;
    background:
        radial-gradient(circle at 8% 6%, rgba(210, 59, 31, .055), transparent 25rem),
        linear-gradient(180deg, #f8f9fc 0, #fff 320px);
}

.lycat-discovery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 48px;
    align-items: end;
    padding: 34px 38px;
    border: 1px solid rgba(20, 25, 48, .08);
    border-top: 4px solid #d23b1f;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(20, 25, 48, .08);
}

.lycat-discovery__eyebrow,
.lycat-card__type {
    display: block;
    color: #d23b1f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.lycat-discovery__intro h2 {
    margin: 8px 0 8px;
    color: #11162d;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.12;
}

.lycat-discovery__intro p {
    max-width: 640px;
    margin: 0;
    color: #666b7e;
    font-size: 15px;
    line-height: 1.75;
}

.lycat-search {
    position: relative;
    display: flex;
    min-width: 0;
    height: 60px;
    overflow: hidden;
    border: 1px solid #e2e4eb;
    border-radius: 10px;
    background: #f8f9fb;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lycat-search:focus-within {
    border-color: rgba(210, 59, 31, .5);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(210, 59, 31, .09);
}

.lycat-search__icon {
    position: absolute;
    top: 50%;
    left: 20px;
    z-index: 1;
    color: #9b9ead;
    font-size: 15px;
    transform: translateY(-50%);
}

.lycat-search input {
    min-width: 0;
    flex: 1 1 auto;
    height: 100%;
    padding: 0 18px 0 49px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #151a31;
    font: inherit;
    font-size: 14px;
}

.lycat-search input::placeholder {
    color: #9599a8;
}

.lycat-search button {
    flex: 0 0 auto;
    min-width: 118px;
    padding: 0 24px;
    border: 0;
    background: #d23b1f;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    transition: background .2s ease;
}

.lycat-search button:hover,
.lycat-search button:focus-visible {
    background: #b92e15;
}

.lycat-categories {
    margin: 28px 0 66px;
    padding: 23px 26px;
    border: 1px solid rgba(20, 25, 48, .08);
    border-radius: 14px;
    background: #fff;
}

.lycat-categories__label {
    margin-bottom: 15px;
    color: #11162d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lycat-categories ul {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lycat-categories li {
    margin: 0;
    padding: 0;
}

.lycat-categories li ul {
    display: contents;
}

.lycat-categories a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #e3e5eb;
    border-radius: 999px;
    background: #fff;
    color: #4f5468;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.lycat-categories a:hover,
.lycat-categories a:focus-visible {
    border-color: #d23b1f;
    background: #d23b1f;
    color: #fff;
    transform: translateY(-1px);
}

.lycat-categories li.is-current > a,
.lycat-categories a[aria-current="page"] {
    border-color: #d23b1f;
    background: #d23b1f;
    color: #fff;
    box-shadow: 0 7px 18px rgba(210, 59, 31, .22);
}

.lycat-categories a > .fa {
    display: none;
}

.lycat-categories a .float-end {
    display: inline-grid;
    min-width: 22px;
    min-height: 22px;
    place-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f0f1f5;
    color: #777c8e !important;
    font-size: 10px;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}

.lycat-categories a:hover .float-end,
.lycat-categories a:focus-visible .float-end,
.lycat-categories li.is-current > a .float-end,
.lycat-categories a[aria-current="page"] .float-end {
    background: rgba(255, 255, 255, .2);
    color: #fff !important;
}

.lycat-results-heading {
    margin-bottom: 28px;
}

.lycat-results-heading > div {
    position: relative;
    padding-left: 18px;
    max-width: 760px;
}

.lycat-results-heading__line {
    position: absolute;
    top: 3px;
    bottom: 2px;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: #d23b1f;
}

.lycat-results-heading h2 {
    margin: 0;
    color: #11162d;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.2;
}

.lycat-results-heading p {
    margin: 8px 0 0;
    color: #74798a;
    font-size: 14px;
    line-height: 1.65;
}

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

.lycat-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e7e8ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 13px 40px rgba(20, 25, 48, .07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.lycat-card:hover {
    border-color: rgba(210, 59, 31, .25);
    box-shadow: 0 20px 48px rgba(20, 25, 48, .13);
    transform: translateY(-6px);
}

.lycat-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
}

.lycat-card__link:hover {
    color: inherit;
}

.lycat-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #11131d;
}

.lycat-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .65, .3, 1);
}

.lycat-card:hover .lycat-card__img {
    transform: scale(1.045);
}

.lycat-card__corner {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(17, 22, 45, .82);
    color: #fff;
    font-size: 13px;
    transform: rotate(45deg);
    transition: background .2s ease, transform .25s ease;
}

.lycat-card:hover .lycat-card__corner {
    background: #d23b1f;
    transform: rotate(45deg) scale(1.08);
}

.lycat-card__body {
    display: flex;
    min-height: 185px;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 24px 24px 22px;
}

.lycat-card__title {
    display: -webkit-box;
    min-height: 51px;
    margin: 10px 0 16px;
    overflow: hidden;
    color: #13182f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lycat-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    color: #73788a;
    font-size: 12px;
    line-height: 1;
}

.lycat-card__rating-score {
    color: #13182f;
    font-size: 14px;
    font-weight: 800;
}

.lycat-card__rating-stars .ps-review-stars {
    display: inline-flex;
    gap: 1px;
}

.lycat-card__rating-stars .ps-review-star {
    color: #d6d8df;
    font-size: 13px;
}

.lycat-card__rating-stars .ps-review-star.is-filled {
    color: #d79a20;
}

.lycat-card__rating-count {
    padding-left: 8px;
    border-left: 1px solid #e2e3e8;
    white-space: nowrap;
}

.lycat-card__action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: #555a6c;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s ease;
}

.lycat-card__action .fa {
    color: #d23b1f;
    transition: transform .2s ease;
}

.lycat-card:hover .lycat-card__action {
    color: #d23b1f;
}

.lycat-card:hover .lycat-card__action .fa {
    transform: translateX(4px);
}

.lycat-grid .bottom-navi,
.lycat-grid .navigation,
.lycat-grid .pagenavigation {
    grid-column: 1 / -1;
}

.lysearch-grid > .alert,
.lysearch-grid > form,
.lysearch-grid > .searchtable {
    grid-column: 1 / -1;
}

.lysearch-grid > .alert {
    margin: 0;
    border: 1px solid #ead4cf;
    border-radius: 12px;
    background: #fff8f6;
    color: #7b3326;
}

.lycat-grid .bottom-navi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin: 34px 0 0;
    padding: 0;
}

.lycat-grid .bottom-navi .navigations {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.lycat-grid .bottom-navi a,
.lycat-grid .bottom-navi .navigations > span {
    display: inline-grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    padding: 0 11px;
    border: 1px solid #e2e4e9;
    border-radius: 8px;
    background: #fff;
    color: #4e5366;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 7px 20px rgba(20, 25, 48, .05);
}

.lycat-grid .bottom-navi a:hover,
.lycat-grid .bottom-navi .navigations > span {
    border-color: #d23b1f;
    background: #d23b1f;
    color: #fff;
}

.lycat-info:empty {
    display: none;
}

.lycat-info {
    margin-top: 28px;
}

@media (max-width: 1199px) {
    .lycat-discovery {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lycat-grid {
        gap: 22px;
    }
}

@media (max-width: 991px) {
    .lyonis-category-page {
        padding: 58px 0 72px;
    }

    .lycat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {
    .lyonis-category-page {
        padding: 42px 0 58px;
    }

    .lycat-discovery {
        padding: 27px 22px;
        border-radius: 12px;
    }

    .lycat-search {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        overflow: visible;
        background: #fff;
    }

    .lycat-search input {
        min-height: 54px;
    }

    .lycat-search button {
        width: 100%;
        min-height: 48px;
        border-radius: 0 0 8px 8px;
    }

    .lycat-categories {
        margin-bottom: 46px;
        padding: 20px;
    }

    .lycat-categories ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .lycat-categories li {
        flex: 0 0 auto;
    }

    .lycat-grid {
        grid-template-columns: 1fr;
    }

    .lycat-card__body {
        min-height: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lycat-card,
    .lycat-card__img,
    .lycat-card__corner,
    .lycat-card__action .fa,
    .lycat-categories a {
        transition: none;
    }
}
