/* ========================= Language Switcher Styles ========================= */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    margin-right: 20px;
}

/* Default state (transparent navbar) - INACTIVE button */
.language-switcher .lang-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Default state (transparent navbar) - ACTIVE button */
.language-switcher .lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

/* Hover state for inactive buttons */
.language-switcher .lang-btn:not(.active):hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* STICKY NAVBAR (scrolled down - WHITE background) - INACTIVE button */
.header.sticky .language-switcher .lang-btn {
    background: transparent;
    border-color: rgba(8, 24, 40, 0.2);
    color: rgba(8, 24, 40, 0.5);
}

/* STICKY NAVBAR (scrolled down - WHITE background) - ACTIVE button */
.header.sticky .language-switcher .lang-btn.active {
    background: #673AB7;
    border-color: #673AB7;
    color: #fff;
    font-weight: 700;
}

/* STICKY NAVBAR - Hover state for inactive buttons */
.header.sticky .language-switcher .lang-btn:not(.active):hover {
    background: rgba(103, 58, 183, 0.1);
    border-color: #673AB7;
    color: #673AB7;
    transform: translateY(-2px);
}

.language-switcher .lang-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* STICKY NAVBAR - Separator color */
.header.sticky .language-switcher .lang-separator {
    color: rgba(8, 24, 40, 0.3);
}

/* Mobile responsiveness for language switcher */
@media only screen and (max-width: 767px) {
    .language-switcher {
        margin-left: 0;
        margin-right: 0;
        margin-top: 15px;
        justify-content: center;
        padding: 15px 0 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile collapsed menu - adjust colors for better visibility */
    .navbar-collapse .language-switcher .lang-btn {
        border-color: rgba(8, 24, 40, 0.3);
        color: rgba(8, 24, 40, 0.6);
    }
    
    .navbar-collapse .language-switcher .lang-btn.active {
        background: #673AB7;
        border-color: #673AB7;
        color: #fff;
    }
    
    .navbar-collapse .language-switcher .lang-separator {
        color: rgba(8, 24, 40, 0.3);
    }

    /* Hover state for inactive buttons */
    .language-switcher .lang-btn:not(.active):hover {
        background: rgba(103, 58, 183, 0.1);
        border-color: #673AB7;
        color: #673AB7;
        transform: translateY(-2px);
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .language-switcher {
        margin-left: 15px;
    }
}

/* Desktop - show language switcher next to nav items */
@media only screen and (min-width: 768px) {
    .language-switcher {
        margin-left: 20px;
        margin-right: 20px;
    }
}
