/* [admax_legyezo] — 3a 3D képes legyező-deck, px méretek. */

@keyframes am-deck-shine {
    0% {
        transform: translateX(-120%) skewX(-18deg);
    }
    100% {
        transform: translateX(320%) skewX(-18deg);
    }
}

.am-deck {
    position: relative;
    height: 500px;
    perspective: 1700px;
}

.am-deck-card {
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: hidden;
    border-radius: 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 30px 70px rgba(11, 24, 21, 0.4);
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.65s cubic-bezier(0.16, 0.84, 0.3, 1), width 0.65s cubic-bezier(0.16, 0.84, 0.3, 1), height 0.65s cubic-bezier(0.16, 0.84, 0.3, 1), box-shadow 0.5s ease;
    will-change: transform, width, height;
    cursor: pointer;
}

.am-deck-card.is-left {
    width: 250px;
    height: 390px;
    transform: translate(-50%, -50%) translateX(-209px) rotateY(30deg);
    z-index: 1;
}

.am-deck-card.is-center {
    width: 280px;
    height: 430px;
    transform: translate(-50%, -50%) translateY(-14px) scale(1.04);
    box-shadow: 0 44px 100px rgba(11, 24, 21, 0.55);
    z-index: 9;
}

.am-deck-card.is-right {
    width: 250px;
    height: 390px;
    transform: translate(-50%, -50%) translateX(209px) rotateY(-30deg);
    z-index: 1;
}

.am-deck-card img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.3s cubic-bezier(0.16, 0.84, 0.3, 1);
}

.am-deck-card.is-center img {
    transform: scale(1.09);
}

.am-deck-veil {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(30, 58, 56, 0) 25%, rgba(11, 24, 21, 0.9) 100%);
    pointer-events: none;
}

.am-deck-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.am-deck.is-hovering .am-deck-card.is-center .am-deck-shine {
    animation: am-deck-shine 1s ease;
}

.am-deck-meta {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.am-deck-card.is-center .am-deck-meta {
    padding: 26px;
}

.am-deck-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #a7ebdd;
    text-transform: uppercase;
}

.am-deck-card.is-center .am-deck-tag {
    color: #5fbda8;
}

.am-deck-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 25px;
    color: #fff;
    line-height: 1.02;
    margin-top: 6px;
}

.am-deck-card.is-center .am-deck-title {
    font-size: 28px;
}

@media (max-width: 767px) {
    .am-deck {
        height: 280px;
        perspective: 900px;
    }

    .am-deck-card.is-left,
    .am-deck-card.is-right {
        width: 140px;
        height: 220px;
    }

    .am-deck-card.is-left {
        transform: translate(-50%, -50%) translateX(-96px) rotateY(28deg);
    }

    .am-deck-card.is-right {
        transform: translate(-50%, -50%) translateX(96px) rotateY(-28deg);
    }

    .am-deck-card.is-center {
        width: 160px;
        height: 248px;
        transform: translate(-50%, -50%) translateY(-8px) scale(1.06);
    }

    .am-deck-meta,
    .am-deck-card.is-center .am-deck-meta {
        padding: 14px;
    }

    .am-deck-title,
    .am-deck-card.is-center .am-deck-title {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .am-deck-card,
    .am-deck-card img {
        transition: none;
    }

    .am-deck.is-hovering .am-deck-card.is-center .am-deck-shine {
        animation: none;
    }
}
