/* =============================================
   Hover Video Widget — Frontend Styles
   ============================================= */

/* Wrapper */
.hvw-wrapper {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    /* border-radius, border, shadow applied via Elementor selectors */
}

/* Aspect-ratio box */
.hvw-inner {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* default 16:9 — overridden by Elementor */
    overflow: hidden;
}

/* The <video> element */
.hvw-wrapper video.hvw-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* overridden by Elementor selectors */
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
    will-change: transform;
}

/* Zoom effect on hover */
.hvw-wrapper.hvw-zoom:hover video.hvw-video {
    transform: scale(1.04);
}

/* ── Overlay (optional play icon) ── */
.hvw-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.hvw-wrapper:hover .hvw-overlay {
    opacity: 1;
}

.hvw-play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
    transition: transform 0.2s ease;
    line-height: 1;
}

.hvw-wrapper:hover .hvw-play-icon {
    transform: scale(1.1);
}

/* ── Editor placeholder ── */
.hvw-placeholder {
    background: #f0f2f5;
    border: 2px dashed #b0b8c1;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    color: #6c757d;
    font-family: sans-serif;
}

.hvw-placeholder p {
    margin: 0;
    font-size: 15px;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
    .hvw-play-icon {
        font-size: 40px;
    }
}
