/**
 * Language Switcher Styles
 */

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.language-switcher .lang-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 30px 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 110px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

.language-switcher .lang-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-switcher .lang-select:focus {
    outline: none;
    border-color: var(--theme-color, #1e73be);
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.2);
}

.language-switcher .lang-select option {
    background: #0a1e32;
    color: #ffffff;
    padding: 10px;
}

/* For scrolled header (when background is white) */
.header-active .language-switcher .lang-select {
    color: #0a1e32;
    border-color: rgba(10, 30, 50, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230a1e32' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.header-active .language-switcher .lang-select:hover {
    background-color: rgba(10, 30, 50, 0.05);
    border-color: rgba(10, 30, 50, 0.3);
}

.header-active .language-switcher .lang-select option {
    background: #ffffff;
    color: #0a1e32;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-collapse .language-switcher {
        order: 999;
    }

    .language-switcher .lang-select {
        color: #0a1e32;
        border-color: rgba(10, 30, 50, 0.2);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230a1e32' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    }

    .language-switcher .lang-select:hover {
        background-color: rgba(10, 30, 50, 0.05);
        border-color: rgba(10, 30, 50, 0.3);
    }
}

/* Alternative dropdown style (optional) */
.language-switcher-dropdown {
    position: relative;
}

.language-switcher-dropdown .dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-switcher-dropdown .dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    border: none;
    vertical-align: middle;
}

.language-switcher-dropdown .dropdown-menu {
    min-width: 100px;
    padding: 5px 0;
}

.language-switcher-dropdown .dropdown-item {
    padding: 8px 15px;
    font-size: 13px;
}

.language-switcher-dropdown .dropdown-item.active {
    background-color: var(--theme-color, #1e73be);
    color: #ffffff;
}

/* Flag icons (optional - if you want to add flags) */
.lang-btn .flag-icon,
.dropdown-item .flag-icon {
    margin-right: 5px;
    font-size: 16px;
}

/* Logo transparency fix */
.navbar-brand img.logo-display,
.navbar-brand img.logo-scrolled {
    mix-blend-mode: multiply;
    background: transparent;
}

/* Alternative: If mix-blend-mode doesn't work well, use this instead */
/*
.navbar-brand img.logo-display,
.navbar-brand img.logo-scrolled {
    filter: brightness(0) invert(1);
}
*/