/**
 * TRUE Liquid Glass FIXED Header for OJS 3.4
 * Default Manuscript Theme
 * 
 * This version keeps the header in its EXACT position - it never moves.
 * Content scrolls behind it from the very start.
 * 
 * Upload via: Settings > Website > Appearance > Advanced > Custom Stylesheet
 */

/* ==========================================================================
   STEP 1: MAKE HEADER FIXED IN PLACE (Never Moves)
   ========================================================================== */

.pkp_structure_head {
    position: sticky !important;   /* was fixed: sticky stays below the site notice bar and still pins on scroll (2026-11-24) */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

/* ==========================================================================
   STEP 2: ADD SPACE AT TOP OF PAGE CONTENT
   Since the header is now fixed and removed from document flow,
   we need to push the content down so it doesn't hide behind the header.
   
   ADJUST THIS VALUE if your header is taller or shorter!
   Current value: 160px (approximate header height)
   ========================================================================== */

.pkp_structure_page {
    padding-top: 0 !important;   /* was 180px, only needed for position: fixed */
}

/* Alternative: If the above doesn't work, try this instead */
.pkp_structure_main {
    margin-top: 0 !important;
}

/* ==========================================================================
   STEP 3: REMOVE ALL SOLID BACKGROUNDS FOR GLASS EFFECT
   ========================================================================== */

.pkp_structure_head {
    background: transparent !important;
    background-color: transparent !important;
}

.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
    background: transparent !important;
    background-color: transparent !important;
}

/* ==========================================================================
   STEP 4: LIQUID GLASS ON LOGO/SITE NAME SECTION (Top White Area)
   
   Adjust 0.65 for transparency (lower = more see-through)
   Adjust 20px for blur amount (higher = more frosted)
   ========================================================================== */

.pkp_site_name_wrapper {
    background: none !important;
    background-color: transparent !important;
    background: rgba(255, 255, 255, 0.15) !important;
    
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================================================
   STEP 5: LIQUID GLASS ON NAVIGATION BAR (Yellow Menu Area)
   
   Adjust 0.75 for transparency (lower = more see-through)
   Adjust 20px for blur amount (higher = more frosted)
   ========================================================================== */

.pkp_navigation_primary_row {
    background: none !important;
    background-color: transparent !important;
    background: rgba(247, 200, 25, 0.55) !important;
    
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   STEP 6: MAKE OTHER HEADER ELEMENTS TRANSPARENT
   ========================================================================== */

.pkp_navigation_user_wrapper {
    background: transparent !important;
    background-color: transparent !important;
}

.pkp_navigation_primary_wrapper {
    background: transparent !important;
    background-color: transparent !important;
}

.pkp_navigation_primary {
    background: transparent !important;
    background-color: transparent !important;
}

.pkp_navigation_search_wrapper {
    background: transparent !important;
    background-color: transparent !important;
}

/* ==========================================================================
   STEP 7: DROPDOWN MENUS WITH GLASS EFFECT
   ========================================================================== */

#navigationPrimary ul {
    background: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   STEP 8: MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    .pkp_structure_head {
        position: sticky !important;   /* was fixed: sticky stays below the site notice bar and still pins on scroll (2026-11-24) */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: transparent !important;
    }
    
    /* Adjust this for mobile - header might be different height */
    .pkp_structure_page {
        padding-top: 0 !important;   /* was 140px, only needed for position: fixed */
    }
    
    .pkp_head_wrapper {
        background: transparent !important;
    }
    
    .pkp_site_name_wrapper {
        background: rgba(255, 255, 255, 0.8) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        backdrop-filter: blur(20px) !important;
    }
    
    .pkp_navigation_primary_row {
        background: rgba(247, 200, 25, 0.85) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        backdrop-filter: blur(20px) !important;
    }
    
    .pkp_nav_list {
        background: rgba(255, 255, 255, 0.95) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        backdrop-filter: blur(20px) !important;
    }
}

/* ==========================================================================
   STEP 9: SMOOTH SCROLLING
   ========================================================================== */

html {
    scroll-behavior: smooth;
}
