/**
 * Fullscreen Section Slider - Frontend Styles
 */

/* General styles */
.fullscreen-section-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Fullscreen body */
body.fss-body-fullscreen {
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
}

body.fss-body-fullscreen #wpadminbar {
    z-index: 9999;
}

/* Sections container */
.fss-sections-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual section */
.fss-section {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Navigation dots */
.fss-navigation-dots {
    position: fixed;
    z-index: 100;
    display: flex;
}

/* Dots position - right */
.fss-dots-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
}

/* Dots position - left */
.fss-dots-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
}

/* Dots position - bottom */
.fss-dots-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
}

/* Individual dot */
.fss-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #000;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Active dot */
.fss-dot.active {
    background-color: #ff0000;
    transform: scale(1.3);
}

/* RTL support */
.fss-rtl .fss-dots-right {
    right: auto;
    left: 20px;
}

.fss-rtl .fss-dots-left {
    left: auto;
    right: 20px;
}

/* Media query for mobile optimization */
@media only screen and (max-width: 768px) {
    .fss-dots-right,
    .fss-dots-left {
        right: auto;
        left: auto;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
    }
    
    /* For mobile when fullscreen is disabled */
    body:not(.fss-body-fullscreen) .fullscreen-section-slider,
    body:not(.fss-body-fullscreen) .fss-section {
        height: auto;
        min-height: auto;
    }
    
    body:not(.fss-body-fullscreen) .fss-section {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        top: auto !important;
    }
}

/* Ensure compatibility with various themes */
.fullscreen-section-slider * {
    box-sizing: border-box;
}

/* Transition effects */
.fss-section {
    transition: opacity 0.3s ease;
}

/* Animation optimization */
.fss-section {
    will-change: opacity, transform;
}

/* Fix for potential theme conflicts */
body.fss-body-fullscreen #page,
body.fss-body-fullscreen .site,
body.fss-body-fullscreen .site-content {
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
}

/* Accessibility - Focus styles */
.fss-dot:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Fix for elements that might stick out */
.fss-section > * {
    max-width: 100vw;
}

/* Footer detection and continued scrolling styles */
.fss-footer {
    position: relative;
    z-index: 5;
}

.fss-footer-detected.fss-body-fullscreen {
    overflow: hidden;
}

.fss-footer-detected.fss-continue-scrolling {
    overflow: auto;
}

/* Natural scrolling mode - absolutely critical for continuing past the slider */
body.fss-natural-scrolling {
    overflow: visible !important;
    overflow-y: auto !important;
    height: auto !important;
    position: static !important;
}

/* When in natural scrolling mode, all sections become visible and normal */
body.fss-natural-scrolling .fullscreen-section-slider {
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
}

body.fss-natural-scrolling .fss-section {
    height: auto !important;
    min-height: 100vh;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    overflow: visible !important;
}

/* After last section mode */
body.fss-after-last-section {
    overflow: visible !important;
    overflow-y: auto !important;
    position: static !important;
}

/* Additional transition effects */
.fss-section {
    transition: opacity 0.5s ease, transform 0.5s ease, top 0.5s ease, left 0.5s ease;
}

/* Overlay transition */
body:not(.fss-natural-scrolling) .fss-section[data-transition="overlay"] {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Zoom transition */
body:not(.fss-natural-scrolling) .fss-section[data-transition="zoom"] {
    transition: opacity 0.5s ease, transform 0.8s ease;
}

/* Slide transition */
body:not(.fss-natural-scrolling) .fss-section[data-transition="slide"] {
    transition: opacity 0.5s ease, left 0.8s ease;
}
