/* =========================================================
   CATEGORY PAGE
========================================================= */

.category-page {
    width: min(
        1500px,
        94%
    );

    min-height: 80vh;

    margin: auto;

    padding:
        35px
        0
        70px;
}


/* HEADER */

.category-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 26px;
}


.category-back {
    display: inline-block;

    margin-bottom: 10px;

    color: #888;

    text-decoration: none;

    font-size: 13px;
}


.category-back:hover {
    color: #fff;
}


.category-header h1 {
    margin: 0;

    color: #fff;

    font-size: 30px;
}


.category-count {
    color: #777;

    font-size: 12px;
}


/* GRID */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    gap: 16px;
}


/* CARD */

.category-card {
    overflow: hidden;

    background: #292929;

    border-radius: 5px;

    color: #fff;

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease;
}


.category-card:hover {
    transform: translateY(-4px);

    background: #343434;
}


.category-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #222;
}


.category-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;
}


.category-card:hover
.category-image img {
    transform: scale(1.04);
}


.category-gradient {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 45%;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.75)
        );
}


.category-type {
    position: absolute;

    left: 7px;
    bottom: 7px;

    padding: 4px 7px;

    background:
        rgba(0,0,0,.75);

    border-radius: 3px;

    font-size: 9px;

    font-weight: 700;
}


.category-rating {
    position: absolute;

    right: 7px;
    bottom: 7px;

    padding: 4px 7px;

    background:
        rgba(0,0,0,.78);

    border-radius: 3px;

    font-size: 10px;
}


.category-info {
    padding:
        10px
        11px
        12px;
}


.category-info h2 {
    margin: 0;

    color: #fff;

    font-size: 14px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.category-info span {
    display: block;

    margin-top: 5px;

    color: #888;

    font-size: 11px;
}


.category-empty {
    padding: 80px 20px;

    text-align: center;

    color: #888;
}


/* TABLET */

@media (max-width: 1200px) {

    .category-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

}


/* MOBILE */

@media (max-width: 768px) {

    .category-page {
        width:
            calc(
                100% - 28px
            );

        padding-top: 25px;
    }


    .category-header h1 {
        font-size: 25px;
    }


    .category-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 10px;
    }


    .category-info h2 {
        font-size: 13px;
    }

}