/* ========================================
   CUSTOM NAVBAR STYLES - GoVerifyr
   FINAL VERSION - OVERRIDES ALL CONFLICTS
   ======================================== */

/* CRITICAL: Reset any bootstrap/main.css conflicts */
.site-header,
.site-header *,
.header-container,
.header-logo-wrapper,
.navigation-menu-wrapper,
.primary-nav-list,
.auth-nav-list {
    box-sizing: border-box !important;
}

/* Base Navbar Styles */
.site-header {
    position: relative !important;
    min-height: 70px !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    padding: 0 !important;
}

/* Container */
.header-container {
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 70px !important;
}

/* Logo Section */
.header-logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.brand-logo-link {
    display: inline-block !important;
    padding: 15px 0 !important;
    line-height: 20px !important;
    height: auto !important;
}

.brand-logo-link img {
    max-height: 40px !important;
    width: auto !important;
    display: block !important;
}

/* Mobile Menu Toggle Button */
.mobile-menu-trigger {
    position: relative !important;
    float: none !important;
    padding: 9px 10px !important;
    margin: 13px 15px 13px 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    display: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 1001 !important;
}

.mobile-menu-trigger:hover,
.mobile-menu-trigger:focus {
    background-color: #f5f5f5 !important;
    border-color: #ccc !important;
}

.mobile-menu-trigger i {
    font-size: 20px !important;
    color: #333 !important;
}

/* Navigation Menu Wrapper - DESKTOP */
.navigation-menu-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 !important;
    margin-left: 30px !important;
    position: relative !important;
}

/* Primary Navigation List */
.primary-nav-list {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px !important;
}

.nav-item {
    position: relative !important;
    display: inline-block !important;
}

.nav-link {
    display: block !important;
    padding: 25px 15px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-family: 'Poppins', sans-serif !important;
    background: transparent !important;
}

.nav-link:hover,
.nav-link:focus {
    color: #0047FF !important;
    text-decoration: none !important;
    background-color: transparent !important;
}

.nav-item.active-page .nav-link {
    color: #0047FF !important;
    position: relative !important;
}

.nav-item.active-page .nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 15px !important;
    right: 15px !important;
    height: 3px !important;
    background-color: #0047FF !important;
}

/* Auth Navigation List */
.auth-nav-list {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 10px !important;
}

.auth-item {
    display: inline-block !important;
}

/* Auth Buttons */
.auth-btn {
    display: inline-block !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-family: 'Poppins', sans-serif !important;
    min-height: auto !important;
    height: auto !important;
    width: auto !important;
}

.auth-btn:hover,
.auth-btn:focus {
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Secondary Auth Button (Sign In) */
.secondary-auth-btn {
    background-color: transparent !important;
    color: #333 !important;
    border-color: #e0e0e0 !important;
}

.secondary-auth-btn:hover,
.secondary-auth-btn:focus {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border-color: #ccc !important;
}

/* Primary Auth Button (Sign Up) */
.primary-auth-btn {
    background-color: #0047FF !important;
    color: #ffffff !important;
    border-color: #0047FF !important;
}

.primary-auth-btn:hover,
.primary-auth-btn:focus {
    background-color: #0039CC !important;
    color: #ffffff !important;
    border-color: #0039CC !important;
}

/* ========================================
   RESPONSIVE STYLES - MOBILE
   ======================================== */

@media (max-width: 767px) {
    /* Show mobile menu toggle button */
    .mobile-menu-trigger {
        display: block !important;
    }

    /* Header Container */
    .header-container {
        flex-wrap: wrap !important;
    }

    .header-logo-wrapper {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .brand-logo-link {
        order: 2 !important;
        margin-left: auto !important;
    }

    .mobile-menu-trigger {
        order: 1 !important;
        margin: 13px 0 !important;
    }

    /* Navigation Menu - CRITICAL MOBILE STYLES */
    .navigation-menu-wrapper {
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin-left: 0 !important;
        background-color: #0047FF !important;
        border-radius: 8px !important;
        margin-top: 10px !important;
        padding: 0 !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, padding 0.3s ease !important;
    }

    /* CRITICAL: Show menu when active - UPDATED */
    .navigation-menu-wrapper.menu-active {
        display: flex !important;
        max-height: 1000px !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 20px 0 !important;
    }

    /* Override Bootstrap collapse classes */
    .navigation-menu-wrapper.collapse {
        max-height: 0 !important;
        display: flex !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .navigation-menu-wrapper.collapse.in {
        max-height: 1000px !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 20px 0 !important;
    }

    /* Primary Navigation - Vertical stack */
    .primary-nav-list {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
    }

    .nav-item {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: block !important;
    }

    .nav-item:last-child {
        border-bottom: none !important;
    }

    .nav-link {
        padding: 15px 20px !important;
        color: #ffffff !important;
        font-size: 16px !important;
        display: block !important;
    }

    .nav-link:hover,
    .nav-link:focus {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    .nav-item.active-page .nav-link {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
    }

    .nav-item.active-page .nav-link::after {
        display: none !important;
    }

    /* Auth Navigation - Vertical stack */
    .auth-nav-list {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        padding: 0 20px !important;
    }

    .auth-item {
        width: 100% !important;
    }

    .auth-btn {
        width: 100% !important;
        padding: 12px 24px !important;
        font-size: 15px !important;
        display: block !important;
    }

    /* Mobile Auth Button Colors */
    .secondary-auth-btn {
        background-color: #ffffff !important;
        color: #0047FF !important;
        border-color: #ffffff !important;
    }

    .secondary-auth-btn:hover,
    .secondary-auth-btn:focus {
        background-color: #f0f0f0 !important;
        color: #0047FF !important;
        border-color: #f0f0f0 !important;
    }

    .primary-auth-btn {
        background-color: transparent !important;
        color: #ffffff !important;
        border-color: #ffffff !important;
    }

    .primary-auth-btn:hover,
    .primary-auth-btn:focus {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        border-color: #ffffff !important;
    }

    /* Override guest body padding */
    body.guest .navigation-menu-wrapper {
        position: relative !important;
        top: auto !important;
    }
}

/* ========================================
   RESPONSIVE STYLES - TABLET
   ======================================== */

@media (min-width: 768px) and (max-width: 991px) {
    .header-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .navigation-menu-wrapper {
        margin-left: 20px !important;
    }

    .primary-nav-list {
        gap: 0 !important;
    }

    .nav-link {
        padding: 25px 10px !important;
        font-size: 14px !important;
    }

    .auth-btn {
        padding: 8px 18px !important;
        font-size: 13px !important;
    }
}

/* Desktop - ensure menu is always visible */
@media (min-width: 768px) {
    .navigation-menu-wrapper {
        display: flex !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-menu-trigger {
        display: none !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Accessibility - Focus visible */
.nav-link:focus-visible,
.auth-btn:focus-visible,
.mobile-menu-trigger:focus-visible {
    outline: 2px solid #0047FF !important;
    outline-offset: 2px !important;
}

/* Prevent text selection on buttons */
.mobile-menu-trigger,
.auth-btn {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
}