/* Navbar Scroll Effect Styles - Desktop Only */

/* Only apply on desktop screens */
@media (min-width: 992px) and (min-height: 600px) {
    /* Base styles for scroll effect */
    .header-scroll-effect,
    .header.header-scroll-effect {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 999999 !important;
        transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease !important;
    }

    /* Controls container base */
    .header-scroll-effect .header__controls,
    .header.header-scroll-effect .header__controls {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease !important;
        z-index: 999999 !important;
    }

    /* Transparent state (at top) */
    .header-scroll-effect:not(.header-scrolled) {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .header-scroll-effect:not(.header-scrolled) .header__controls {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    /* White background state (when scrolled) */
    .header-scroll-effect.header-scrolled {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .header-scroll-effect.header-scrolled .header__controls {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* Dark text when scrolled for better contrast on white background */
    .header-scroll-effect.header-scrolled a,
    .header-scroll-effect.header-scrolled .header__burger-line {
        color: #000 !important;
        background-color: #000 !important;
    }

    /* Override any conflicting styles */
    .header-scroll-effect.header-scrolled.header_white a,
    .header-scroll-effect.header-scrolled.header_black a,
    .header-scroll-effect.header-scrolled.header_theme-dark a,
    .header-scroll-effect.header-scrolled.header_theme-dark-2 a,
    .header-scroll-effect.header-scrolled.header_theme-black a {
        color: #000 !important;
    }

    .header-scroll-effect.header-scrolled .header__burger-line {
        background-color: #000 !important;
    }

    /* Admin bar adjustment */
    .admin-bar .header-scroll-effect .header__controls {
        top: 32px !important;
    }

    @media screen and (max-width: 782px) {
        .admin-bar .header-scroll-effect .header__controls {
            top: 46px !important;
        }
    }
}

/* Ensure mobile devices don't get any scroll effects */
@media (max-width: 991px) {
    .header,
    .header.header-scroll-effect,
    .header.header-scrolled {
        position: relative !important;
        top: auto !important;
        background: transparent !important;
    }
    
    .header .header__controls {
        position: relative !important;
        top: auto !important;
        background: transparent !important;
    }
}