/**
 * BB Video Background Module - Frontend Styles
 */

.bb-video-bg-wrapper {
    position: relative;
    width: 100%;
}

.bb-video-bg-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bb-video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Placeholder when no video is set */
.bb-video-bg-placeholder {
    padding: 1rem;
    background: #fff;
    border: 1px dashed #ccc;
    text-align: center;
    color: #666;
}

/* Ensure module doesn't cause layout shift */
.fl-node-content > .fl-module-content > .bb-video-bg-wrapper {
    display: block;
}

/* Builder mode styles */
.fl-builder-edit .bb-video-bg-wrapper {
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bb-video-bg-wrapper video {
        /* Optimize for mobile */
        will-change: auto;
    }
}
