/**
 * Parallax Card Carousel — reusable Expo-style base styles
 * Pair with assets/js/parallax-card-carousel.js
 */
.pcc {
    --pcc-image-offset: 1.55;
    --pcc-gap: 16px;
    --pcc-slide-width: 66.666%;
    --pcc-pad: 0px;
    --pcc-radius: 1.25rem;
    --pcc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    width: 100%;
    perspective: 1200px;
}

@media (min-width: 768px) {
    .pcc {
        --pcc-radius: 2rem;
    }
}

.pcc__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    padding-block: var(--pcc-pad);
    box-sizing: border-box;
    cursor: grab;
    outline: none;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.pcc__viewport.is-dragging {
    cursor: grabbing;
}

.pcc__viewport:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.pcc__track {
    display: flex;
    align-items: center;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.pcc__slide {
    position: relative;
    flex: 0 0 var(--pcc-slide-width);
    width: var(--pcc-slide-width);
    margin-right: var(--pcc-gap);
    height: 100%;
    transform-style: preserve-3d;
    z-index: 1;
}

.pcc__slide:last-child {
    margin-right: 0;
}

.pcc__slide.is-active {
    z-index: 5;
}

.pcc__card {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: var(--pcc-radius);
    transform-style: preserve-3d;
    transform-origin: center center;
    background: #1a1a18;
    will-change: top, bottom;
}

.pcc__image {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    will-change: transform, filter;
    backface-visibility: hidden;
}

.pcc__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

.pcc__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    box-sizing: border-box;
    padding: clamp(1.25rem, 3vw, 2rem);
    color: #fff;
    pointer-events: none;
}

.pcc__slide:not(.is-active) .pcc__content {
    pointer-events: none;
}

.pcc [data-pcc-prev]:disabled,
.pcc [data-pcc-next]:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .pcc__card,
    .pcc__image,
    .pcc__content {
        transition: none !important;
    }
}
