/**
 * BB Splash Screen Module - Frontend Styles
 */

/* Splash screen container */
.bb-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease-out;
    pointer-events: auto;
}

/* Hidden state */
.bb-splash-screen.bb-splash-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Remove from DOM after fade */
.bb-splash-screen.bb-splash-removed {
    display: none;
}

/* Dark overlay for better content visibility */
.bb-splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Video background */
.bb-splash-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Background image */
.bb-splash-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Content container */
.bb-splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

/* Logo */
.bb-splash-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.bb-splash-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Button wrapper */
.bb-splash-button-wrap {
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .bb-splash-button-wrap {
        position: relative;
        bottom: 100px;
    }
}

/* Skip button */
.bb-splash-skip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    
}
.fl-builder-content .fl-button.bb-splash-skip-btn {
    /* Button styles from other buttons */
    background-clip: border-box;
    border: none;
    border-radius: 0px;
    border-bottom: solid 1px #ffffff;
    font-size: 14px;
    letter-spacing: 1px;
    background-color: rgba(255, 0, 0, 0);

    padding-right: 0px;
    padding-bottom: 5px;
    padding-left: 0px;
}

/*Handle header visibility*/
header.fl-builder-content:has(~ .fl-page-content .bb-splash-screen)  {
    opacity: 0;
    transition: 0.7s;
    pointer-events: none;
}
header.fl-builder-content:has(~ .fl-page-content .bb-splash-screen.bb-splash-hidden),
header.fl-builder-content:has(~ .fl-page-content .bb-splash-screen.bb-splash-removed) {
    opacity: 1;
    pointer-events: all;
}

/*Prevent affecting position of other content due to inherent margins/padding in rows*/
.fl-row:has(.bb-splash-screen) .fl-col {
    min-height: 0;
}
.fl-row:has(.bb-splash-screen) .fl-row-content-wrap,
.fl-row:has(.bb-splash-screen) .fl-module-content{
    margin: 0 !important;
    padding: 0 !important;
}




.fl-builder-content .fl-button.bb-splash-skip-btn:hover {
    background: none;
    
}

/* Prevent body scroll when splash is active */
body.bb-splash-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Builder mode - hide splash screen */
.fl-builder-edit .bb-splash-screen {
    position: relative !important;
    height: 600px;
    z-index: 1;
}

.fl-builder-edit .bb-splash-video,
.fl-builder-edit .bb-splash-bg-image {
    position: relative !important;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: 100%;
}

.fl-builder-edit .bb-splash-overlay {
    position: relative !important;
}

.fl-builder-edit .bb-splash-content {
    padding: 1rem;
    position: relative !important;
}

.fl-builder-edit .bb-splash-logo {
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bb-splash-logo img {
        max-width: 250px;
    }

    .bb-splash-button-wrap {
        margin-bottom: 2rem;
    }

    .bb-splash-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .bb-splash-logo img {
        max-width: 200px;
    }

    .bb-splash-button-wrap {
        margin-bottom: 1.5rem;
    }
}
