/**
 * Vertical Carousel with Flanking Titles Widget
 *
 * @package Pretpot_Massive_Addons_Kit_For_Elementor
 */

/* ── Widget wrapper ───────────────────────────────────────────── */
.pretpot-vcft-widget {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Height set via Elementor height control or defaults to 100vh */
    height: var(--vcft-height, 100vh);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-x; /* allow horizontal scroll on page, intercept vertical swipe */
    user-select: none;
    -webkit-user-select: none;
}

/* ── Background ───────────────────────────────────────────────── */
.pretpot-vcft-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0c0c14;
}

/* ── Ghost flanking names ─────────────────────────────────────── */
.pretpot-vcft-ghost-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    z-index: 2;
    pointer-events: none;
}

.pretpot-vcft-ghost {
    font-size: clamp(28px, 5vw, 72px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: -0.02em;
    line-height: 1;
    width: 22%;
    word-break: break-word;
    text-align: center;
    transition: opacity 0.4s ease;
}

/* ── Slide viewport ───────────────────────────────────────────── */
.pretpot-vcft-track-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

/* ── Slides stack — translated vertically ─────────────────────── */
.pretpot-vcft-track {
    position: absolute;
    inset: 0;
    /* JS sets transform: translateY() to move between slides */
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

/* Disable transition during swipe drag */
.pretpot-vcft-track.is-dragging {
    transition: none;
}

/* ── Individual slide ─────────────────────────────────────────── */
.pretpot-vcft-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Each slide is offset by its index × 100% in the JS */
}

/* ── Name + media row — 3-column grid so media stays centred ──── */
.pretpot-vcft-name-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(12px, 2vw, 32px);
    width: 100%;
    max-width: 1100px;
    padding: 0 5vw;
    box-sizing: border-box;
}

.pretpot-vcft-title-left {
    font-size: clamp(28px, 5vw, 72px);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
    word-break: break-word;
    text-align: right;
    min-width: 0;
}

.pretpot-vcft-title-right {
    font-size: clamp(28px, 5vw, 72px);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
    word-break: break-word;
    text-align: left;
    min-width: 0;
}

/* ── Media card ───────────────────────────────────────────────── */
.pretpot-vcft-media-card {
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    width: 140px;
    height: 190px;
    background: #1a1a28;
    grid-column: 2;
}

.pretpot-vcft-media-card img,
.pretpot-vcft-media-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.pretpot-vcft-media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Sub-text block ───────────────────────────────────────────── */
.pretpot-vcft-subtext {
    margin-top: 14px;
    width: 140px;
    text-align: center;
    box-sizing: border-box;
}

.pretpot-vcft-sub-line {
    display: block;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    text-align: center;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Active slide sub-text reveal */
.pretpot-vcft-slide.vcft-active .pretpot-vcft-sub-line          { opacity: 1; transform: translateY(0); }
.pretpot-vcft-slide.vcft-active .pretpot-vcft-sub-line:nth-child(1) { transition-delay: 0.2s; }
.pretpot-vcft-slide.vcft-active .pretpot-vcft-sub-line:nth-child(2) { transition-delay: 0.33s; }
.pretpot-vcft-slide.vcft-active .pretpot-vcft-sub-line:nth-child(3) { transition-delay: 0.46s; }
.pretpot-vcft-slide.vcft-active .pretpot-vcft-sub-line:nth-child(4) { transition-delay: 0.59s; }
.pretpot-vcft-slide.vcft-active .pretpot-vcft-sub-line:nth-child(5) { transition-delay: 0.72s; }

/* Static subtext variant */
.pretpot-vcft-widget.vcft-subtext-static .pretpot-vcft-sub-line {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ── Navigation dots ──────────────────────────────────────────── */
.pretpot-vcft-dots {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}

.pretpot-vcft-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.35s ease, transform 0.35s ease;
    cursor: pointer;
    border: none;
    padding: 0;
    outline: none;
}

.pretpot-vcft-dot.vcft-active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.7);
}

.pretpot-vcft-dots.vcft-dots-hidden {
    display: none;
}

/* ── Keyboard hint (desktop) ──────────────────────────────────── */
.pretpot-vcft-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.pretpot-vcft-hint.vcft-hint-hidden {
    opacity: 0;
}

.pretpot-vcft-hint-label {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

/* Arrow key icons */
.pretpot-vcft-hint-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pretpot-vcft-hint-arrow {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    line-height: 1;
}

/* Hide keyboard hint on touch devices */
@media (hover: none) and (pointer: coarse) {
    .pretpot-vcft-hint {
        display: none;
    }
}

/* ── Elementor editor preview ─────────────────────────────────── */
.elementor-editor-active .pretpot-vcft-widget {
    height: 520px !important;
}

.elementor-editor-active .pretpot-vcft-slide {
    opacity: 0;
    pointer-events: none;
}

.elementor-editor-active .pretpot-vcft-slide:first-child {
    opacity: 1;
}