/**
 * Jide Okeke Elevate - Aurenza Reel Scroll Expand Styles
 */

.jide-scroll-expand-container {
    position: relative;
    width: 100%;
    min-height: 140vh;
    box-sizing: border-box;
}

.jide-expand-sticky-viewport {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.jide-expand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    height: 100%;
    position: relative;
}

.jide-expand-card {
    position: relative;
    width: 320px;
    height: 540px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    will-change: width, height, border-radius, transform, opacity;
}

.jide-expand-card.has-red-glow {
    /* Dynamic Elementor box shadow and border apply cleanly without hardcoded overrides */
    position: relative;
}

.jide-scroll-expand-container.orient-landscape .jide-expand-card {
    width: 540px;
    height: 320px;
}

.jide-scroll-expand-container.orient-square .jide-expand-card {
    width: 420px;
    height: 420px;
}

/* Staggered Heights Aesthetic (Aurenza Reference) */
.jide-scroll-expand-container.is-staggered .jide-expand-card:nth-child(2n) {
    height: 460px;
}

.jide-scroll-expand-container.is-staggered .jide-expand-card:nth-child(3n) {
    height: 580px;
}

.jide-expand-media-box {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
}

/* FULL IMAGE COVER GUARANTEE: Enforce 100% height & width cover so theme styles never cause black bars */
.jide-expand-img,
.jide-expand-video {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transform: none !important;
}

.jide-expand-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

/* Expanded Fullscreen Circular Play Button (Reference Style) */
.jide-expand-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.jide-scroll-expand-container[data-play-visibility="always"] .jide-expand-play-button {
    opacity: 1 !important;
}

.jide-expand-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    border-color: #ffffff;
    background-color: rgba(229, 9, 20, 0.8);
}

.jide-expand-meta {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.jide-expand-title {
    margin: 0;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffd0;
    text-transform: uppercase;
    line-height: 1;
}

.jide-expand-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jide-expand-card {
        width: 320px !important;
        height: 200px !important;
    }

    .jide-expand-row {
        gap: 12px;
    }

    .jide-expand-play-button {
        width: 56px !important;
        height: 56px !important;
    }

    .jide-expand-play-button svg {
        width: 24px;
        height: 24px;
    }

    .jide-expand-title {
        font-size: 2.2rem;
    }

    .jide-expand-meta {
        bottom: 24px;
        left: 24px;
    }
}

@media (max-width: 480px) {
    .jide-expand-card {
        width: 260px !important;
        height: 170px !important;
    }

    .jide-expand-title {
        font-size: 1.6rem;
    }
}
