
/* ======================================================
   COLORVELLA COLORING CATALOG
====================================================== */

#coloringGrid,
.coloring-grid,
#pagesGrid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;

    align-items: start;
}


/* CARD */

.cv-coloring-card {

    position: relative;

    min-width: 0;

    overflow: hidden;

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(22, 27, 42, .96),
            rgba(10, 14, 24, .96)
        );

    border:
        1px solid rgba(255,255,255,.09);

    box-shadow:
        0 22px 65px rgba(0,0,0,.30);

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}


.cv-coloring-card::before {

    content: "";

    position: absolute;

    z-index: 5;

    left: 12%;
    right: 12%;
    top: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ff4fa3,
            #9b68ff,
            #2ba8ff,
            transparent
        );

    opacity: .45;

    transition:
        opacity .28s ease,
        left .28s ease,
        right .28s ease;
}


.cv-coloring-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(161,104,255,.50);

    box-shadow:
        0 30px 85px rgba(0,0,0,.48),
        0 0 32px rgba(255,79,163,.10),
        0 0 48px rgba(155,104,255,.14),
        0 0 70px rgba(43,168,255,.08);
}


.cv-coloring-card:hover::before {

    left: 3%;
    right: 3%;

    opacity: 1;

    box-shadow:
        0 0 18px rgba(155,104,255,.65);
}


/* WHITE ART AREA */

.cv-card-art {

    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #fff;

    text-decoration: none;
}


.cv-card-art img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #fff;

    transition:
        transform .35s ease,
        filter .35s ease;
}


.cv-coloring-card:hover
.cv-card-art img {

    transform:
        scale(1.025);

    filter:
        brightness(1.02)
        contrast(1.02);
}


/* BADGE */

.cv-card-art-badge {

    position: absolute;

    top: 14px;
    left: 14px;

    padding:
        7px 11px;

    border-radius:
        999px;

    color: #fff;

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        .05em;

    text-transform:
        uppercase;

    background:
        rgba(8,11,18,.78);

    border:
        1px solid rgba(255,255,255,.18);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.18);
}


/* BODY */

.cv-card-content {

    padding:
        19px 20px 20px;
}


.cv-card-meta {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap: 12px;

    margin-bottom:
        10px;
}


.cv-card-category {

    color:
        #bd83ff;

    font-size:
        11px;

    font-weight:
        850;

    text-transform:
        uppercase;

    letter-spacing:
        .09em;
}


.cv-card-difficulty {

    color:
        #7e879d;

    font-size:
        11px;

    text-transform:
        capitalize;
}


.cv-card-title {

    margin:
        0;

    font-size:
        20px;

    line-height:
        1.25;

    font-weight:
        800;
}


.cv-card-title a {

    color:
        #f8f9ff;

    text-decoration:
        none;
}


.cv-card-title a:hover {

    color:
        #fff;
}


/* FOOTER */

.cv-card-footer {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        14px;

    margin-top:
        18px;
}


.cv-card-age {

    color:
        #7f879b;

    font-size:
        12px;
}


.cv-card-open {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    padding:
        10px 14px;

    border-radius:
        12px;

    color:
        #fff;

    font-size:
        12px;

    font-weight:
        800;

    text-decoration:
        none;

    background:
        linear-gradient(
            135deg,
            #ff4fa3,
            #9b68ff 55%,
            #2ba8ff
        );

    box-shadow:
        0 9px 25px
        rgba(155,104,255,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.cv-card-open:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px
        rgba(155,104,255,.34);
}


.cv-card-open span {

    font-size:
        15px;
}


/* STATUS */

.cv-catalog-loading,
.cv-catalog-empty {

    grid-column:
        1 / -1;

    padding:
        70px 30px;

    text-align:
        center;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius:
        24px;

    color:
        #8d94a7;

    background:
        rgba(16,20,31,.65);
}


/* TABLET */

@media
(max-width: 1000px) {

    #coloringGrid,
    .coloring-grid,
    #pagesGrid {

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


/* MOBILE */

@media
(max-width: 640px) {

    #coloringGrid,
    .coloring-grid,
    #pagesGrid {

        grid-template-columns:
            1fr;

        gap:
            20px;
    }


    .cv-card-art {

        aspect-ratio:
            4 / 5;
    }


    .cv-card-content {

        padding:
            17px;
    }
}

/* Match automatic printable generation: 896x1152 */
.cv-card-art {
    aspect-ratio: 7 / 9;
}

