/*
 * public/print/home/hero-cards.css
 * The fan of five colored product cards. Phone: a sideways-scrolling row.
 * Tablet and up: fanned out, middle card biggest and in front.
 */

.mm-fan {
    position: relative;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 20px;
    margin: 0 calc(-1 * var(--pad-x));
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

.mm-fan-card {
    position: relative;
    flex: 0 0 62%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 14px 16px;
    border-radius: var(--card-radius);
    color: var(--c-ink);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease;
}

.mm-fan-card--red { background: var(--c-card-red); }
.mm-fan-card--yellow { background: var(--c-card-yellow); }
.mm-fan-card--blue { background: var(--c-card-blue); }

.mm-fan-icons {
    align-self: stretch;
    display: flex;
    justify-content: space-between;
}

.mm-fan-icons svg {
    width: 20px;
    height: 20px;
    display: block;
}

.mm-fan-card .mm-art {
    width: 82%;
}

.mm-fan-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
}

.mm-fan-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-paper);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
}

/* The bird only perches on the fanned layout */
.mm-fan-bird {
    display: none;
}

@media (min-width: 768px) {
    .mm-fan {
        justify-content: center;
        align-items: flex-end;
        overflow: visible;
        margin: 0;
        padding: 56px 0 10px;
        gap: 0;
    }

    .mm-fan-card {
        flex: 0 0 19%;
        margin: 0 -2%;
    }

    .mm-fan-card:hover,
    .mm-fan-card:focus-visible {
        z-index: 5;
        transform: translateY(-10px) rotate(0deg) scale(1.03);
    }

    .mm-fan-card--outer-left { transform: rotate(-8deg) translateY(18px); z-index: 1; }
    .mm-fan-card--left { transform: rotate(-4deg) translateY(6px); z-index: 2; }
    .mm-fan-card--center { flex-basis: 24%; z-index: 3; }
    .mm-fan-card--right { transform: rotate(4deg) translateY(6px); z-index: 2; }
    .mm-fan-card--outer-right { transform: rotate(8deg) translateY(18px); z-index: 1; }

    .mm-fan-card--center .mm-fan-label {
        font-size: 24px;
    }

    /* Bird perched on the top edge of the middle card (feet sit at 80% of its height) */
    .mm-fan-bird {
        display: block;
        position: absolute;
        width: 56px;
        height: auto;
        right: 14%;
        top: -54px;
        pointer-events: none;
    }
}

@media (min-width: 1200px) {
    .mm-fan-bird {
        width: 72px;
        top: -70px;
    }
}
