/* Modern Navbar Styles for Gira Menu - v2.0 */

/* Override any existing header styles */
#header {
    display: none !important;
}

/* Body offset for fixed header */
body {
    padding-top: 90px !important;
    margin: 0;
}

/* Modern Header Container */
.modern-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    background: rgba(151, 71, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: auto !important;
    box-shadow: none !important;
}

/* Force override any external animations that might affect navbar elements */
.modern-header * {
    animation: none !important;
    transform: none !important;
}

/* Specific overrides for popup animations */
.modern-header .popup-with-zoom-anim {
    animation: none !important;
    transform: translateY(0) !important;
}

.modern-header .header-widget .button,
.modern-header .language-switcher .btn,
.modern-header .popup-with-zoom-anim {
    animation: none !important;
    transform: translateY(0) !important;
}

.modern-header .header-widget .button:hover {
    transform: translateY(-2px) !important;
}

.modern-header .language-switcher .btn:hover {
    transform: translateY(-1px) !important;
}

.modern-header .popup-with-zoom-anim:hover {
    transform: translateY(-2px) !important;
}

.modern-header.sticky .header-widget .button:hover {
    transform: translateY(-2px) scale(1.02) !important;
}

.modern-header.sticky .language-switcher .btn:hover {
    transform: translateY(-1px) !important;
}

.modern-header.sticky .popup-with-zoom-anim:hover {
    transform: translateY(-2px) scale(1.02) !important;
}

.modern-header.sticky {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 32px rgba(151, 71, 255, 0.15) !important;
    border-bottom: 1px solid rgba(151, 71, 255, 0.1) !important;
    padding: 15px 0 !important;
}

/* Header Content Layout */
.modern-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.modern-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    height: 50px;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Reset any external styles that might affect alignment */
.modern-header .header-content * {
    margin: 0 !important;
    vertical-align: middle;
}

.modern-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    height: 50px;
    position: relative;
}

/* Logo Styling */
.modern-header .logo {
    flex: 0 0 auto;
    z-index: 10;
}

.modern-header .logo-img {
    height: 40px !important;
    width: auto;
    transition: all 0.3s ease;
}

.modern-header.sticky .logo-img {
    height: 35px !important;
}

/* Main Navigation */
.modern-header .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.modern-header .main-nav ul {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.modern-header .main-nav li {
    position: relative;
}

.modern-header .main-nav a {
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-header .main-nav a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px);
}

.modern-header .main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-header .main-nav a:hover::before {
    width: 80%;
}

.modern-header.sticky .main-nav a {
    color: #1A1A1A !important;
}

.modern-header.sticky .main-nav a:hover {
    background: rgba(151, 71, 255, 0.1) !important;
    color: #9747ff !important;
}

.modern-header.sticky .main-nav a::before {
    background: #9747ff;
}

/* Mobile Menu Toggle */
.modern-header .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    transition: all 0.3s ease;
}

.modern-header .hamburger-line {
    width: 24px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-header.sticky .hamburger-line {
    background: #9747ff;
}

.modern-header .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.modern-header .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.modern-header .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Right Side Elements */
.modern-header .right-side {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
    height: 100%;
    margin: 0;
}

.modern-header .header-widget {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
}

.modern-header .header-widget .button {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 44px;
    min-width: fit-content;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px);
    vertical-align: middle;
    margin: 0 !important;
    transform: translateY(0) !important; /* Reset any external transforms */
}

.modern-header .header-widget .button:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.modern-header.sticky .header-widget .button {
    background: linear-gradient(135deg, #9747ff 0%, #b575ff 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(151, 71, 255, 0.3) !important;
    transform: translateY(0) !important; /* Reset any external transforms */
}

.modern-header.sticky .header-widget .button:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(151, 71, 255, 0.4) !important;
}

.modern-header .header-widget .button .arrow {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.modern-header .header-widget .button:hover .arrow {
    transform: translateX(2px);
}

/* Super specific and aggressive override for Join Now button */
#wrapper .modern-header .header-widget a.popup-with-zoom-anim.button,
.modern-header .header-widget a.popup-with-zoom-anim.button,
.modern-header .header-widget .popup-with-zoom-anim,
.modern-header .header-widget a.button.popup-with-zoom-anim {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    height: 44px !important;
    min-width: fit-content !important;
    white-space: nowrap !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    vertical-align: middle !important;
    margin: 0 !important;
    transform: translateY(0) !important;
    animation: none !important;
    box-shadow: none !important;
    position: relative !important;
    top: 0 !important;
    overflow: visible !important;
    cursor: pointer !important;
}

/* Super specific hover state */
#wrapper .modern-header .header-widget a.popup-with-zoom-anim.button:hover,
.modern-header .header-widget a.popup-with-zoom-anim.button:hover,
.modern-header .header-widget .popup-with-zoom-anim:hover,
.modern-header .header-widget a.button.popup-with-zoom-anim:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    animation: none !important;
    top: 0 !important;
}

/* Super specific sticky state */
#wrapper .modern-header.sticky .header-widget a.popup-with-zoom-anim.button,
.modern-header.sticky .header-widget a.popup-with-zoom-anim.button,
.modern-header.sticky .header-widget .popup-with-zoom-anim,
.modern-header.sticky .header-widget a.button.popup-with-zoom-anim {
    background: linear-gradient(135deg, #9747ff 0%, #b575ff 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(151, 71, 255, 0.3) !important;
    transform: translateY(0) !important;
    animation: none !important;
    top: 0 !important;
}

/* Super specific sticky hover state */
#wrapper .modern-header.sticky .header-widget a.popup-with-zoom-anim.button:hover,
.modern-header.sticky .header-widget a.popup-with-zoom-anim.button:hover,
.modern-header.sticky .header-widget .popup-with-zoom-anim:hover,
.modern-header.sticky .header-widget a.button.popup-with-zoom-anim:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(151, 71, 255, 0.4) !important;
    animation: none !important;
    top: 0 !important;
}

.modern-header .header-widget .popup-with-zoom-anim span {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.modern-header .header-widget .popup-with-zoom-anim .arrow {
    margin-left: 6px !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

.modern-header .header-widget .popup-with-zoom-anim:hover .arrow {
    transform: translateX(2px) !important;
}

/* Language Switcher */
.modern-header .language-switcher {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
}

.modern-header .language-switcher .btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    padding: 10px 12px !important;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    height: 44px;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
    margin: 0 !important;
    vertical-align: middle;
    transform: translateY(0) !important; /* Reset any external transforms */
}

.modern-header .language-switcher .btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

.modern-header.sticky .language-switcher .btn {
    color: #1A1A1A !important;
    border-color: rgba(151, 71, 255, 0.2) !important;
    transform: translateY(0) !important; /* Reset any external transforms */
}

.modern-header.sticky .language-switcher .btn:hover {
    background: rgba(151, 71, 255, 0.1) !important;
    border-color: rgba(151, 71, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

.modern-header .language-switcher svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.modern-header .language-switcher .btn:hover svg {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 991px) {
    body {
        padding-top: 80px !important;
    }
    
    .modern-header .mobile-menu-toggle {
        display: flex !important;
    }
    
    .modern-header .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(151, 71, 255, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .modern-header .main-nav.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .modern-header.sticky .main-nav.active {
        background: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid rgba(151, 71, 255, 0.1);
    }
    
    .modern-header .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 30px 24px;
        width: 100%;
    }
    
    .modern-header .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .modern-header .main-nav li:last-child {
        border-bottom: none;
    }
    
    .modern-header.sticky .main-nav li {
        border-bottom-color: rgba(151, 71, 255, 0.1);
    }
    
    .modern-header .main-nav a {
        display: block;
        padding: 16px 20px !important;
        font-size: 16px;
        font-weight: 500;
        width: 100%;
        text-align: left;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .modern-header .main-nav a::before {
        display: none;
    }
    
    .modern-header .header-content {
        gap: 20px;
        height: 40px;
    }
    
    .modern-header .logo-img {
        height: 32px !important;
    }
    
    .modern-header.sticky .logo-img {
        height: 28px !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px !important;
    }
    
    .modern-header .container {
        padding: 0 16px;
    }
    
    .modern-header {
        padding: 12px 0 !important;
    }
    
    .modern-header.sticky {
        padding: 10px 0 !important;
    }
    
    .modern-header .main-nav {
        top: 70px;
    }
}

/* FINAL OVERRIDE - Maximum specificity to force Join Now button alignment */
body #wrapper .modern-header .header-widget a.popup-with-zoom-anim.button,
body .modern-header .header-widget a.popup-with-zoom-anim.button,
body #wrapper .modern-header .header-widget .popup-with-zoom-anim,
body .modern-header .header-widget .popup-with-zoom-anim {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    height: 44px !important;
    width: auto !important;
    min-width: fit-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    vertical-align: middle !important;
    margin: 0 !important;
    transform: translateY(0) !important;
    animation: none !important;
    box-shadow: none !important;
    position: relative !important;
    top: 0 !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    overflow: visible !important;
    cursor: pointer !important;
    z-index: auto !important;
}

/* Force remove any external positioning that might affect alignment */
body #wrapper .modern-header .header-widget a.popup-with-zoom-anim.button *,
body .modern-header .header-widget a.popup-with-zoom-anim.button *,
body #wrapper .modern-header .header-widget .popup-with-zoom-anim *,
body .modern-header .header-widget .popup-with-zoom-anim * {
    margin: 0 !important;
    vertical-align: middle !important;
    animation: none !important;
    transform: none !important;
}
