/* =====================================================
   catalog-pages.css
   Shared styles for articles, catalog, and games
   list/browse pages.
   ===================================================== */


/* --- Search bar --- */

#search-bar input {
    font-size: 120%;
}


/* --- Filter buttons --- */

#filter-buttons {
    justify-content: space-between;
}

#filter-buttons > * {
    width: 45px;
    aspect-ratio: 1/1;
    background-color: gray;
    border-radius: 3px;
}


/* --- Divider --- */

hr {
    background-color: black;
}


/* --- Catalog list grid --- */

.catalog-list a {
    text-decoration: inherit;
    color: inherit;
}

.catalog-list > div {
    width: 33%;
    margin: 15px 0;
}

.catalog-list > div > div {
    outline: 0px solid #0000;
    transition: all 0.15s ease-out;
    overflow: hidden;
    border-radius: 10px;
}

.catalog-list > div:hover > div {
    transform: scale(105%);
    outline: 3px solid var(--accent-color, #000a);
    border-radius: 20px;
}


/* --- Item image --- */

.item-image {
    height: 100%;
    width: 100%;
}


/* --- Pagination buttons --- */

#offset-buttons > * {
    width: 45px;
    aspect-ratio: 1/1;
    background-color: gainsboro;
    border-radius: 3px;
    text-align: center;
    vertical-align: center;
}


/* =====================================================
   Article card — article-specific card styles
   ===================================================== */

.article-card-top {
    aspect-ratio: 2/3;
    overflow: hidden;
}

.article-card-top > img {
    overflow: hidden;
}

.article-card-top > h4 {
    padding-top: 40px;
    background: linear-gradient(to bottom, #0000 0px, #ffff 80px);
    background-blend-mode: multiply;
}

.article-heading {
    bottom: 0;
    text-transform: uppercase;
    font-weight: 900;
}


/* =====================================================
   Portrait / mobile
   ===================================================== */

@media (orientation: portrait) {
    .catalog-list > div {
        width: 50%;
    }

    .item-tittle {
        font-size: 22px;
    }

    .article-heading {
        font-size: 22px;
    }
}
