/* Language Switcher Styles for CLIR Landing Page */

.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    align-self: center;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.language-btn:hover {
    border-color: var(--aquamarine, #00c993);
    color: var(--aquamarine, #00c993);
}

.language-flag {
    font-size: 18px;
    line-height: 1;
}

.language-text {
    font-size: 12px;
    letter-spacing: 0.5px;
}

.language-btn i {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.language-dropdown.active + .language-btn i,
.language-btn:hover i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    text-transform: none;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option .flag {
    font-size: 18px;
    line-height: 1;
}

.language-option .text {
    flex: 1;
}

/* Mobile responsive */
@media screen and (max-width: 991px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .language-btn {
        width: 100%;
        justify-content: center;
    }
    
    .language-dropdown {
        right: auto;
        left: 0;
        width: 100%;
    }
}

