/* Language Switcher Styles */

.language-switcher-container {
    position: relative;
}

.language-switcher {
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.language-switcher span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-language-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    margin-right: 5px;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 180px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 100;
}

.language-menu.active {
    max-height: 400px;
    opacity: 1;
    padding-bottom: 10px;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-option:hover {
    background-color: var(--light-color);
}

.language-option.active {
    background-color: #f0f0f0;
    font-weight: 500;
}

.language-option img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    margin-right: 10px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .language-switcher-container {
        margin-left: auto;
    }
    
    .language-menu {
        right: -10px;
    }
}
