/**
 * Styles for the elegant language selector
 */

/* Language selector container */
#language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto !important;
}

/* Current language button */
.lang-current {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 30px;
    padding: 8px 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 9999999;
}

.lang-current:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.lang-current img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Dropdown container */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 140px;
    z-index: 9999999;
}

/* Show dropdown when active */
#language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Language options */
.lang-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.lang-option:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.lang-option.active {
    background-color: rgba(0, 123, 255, 0.05);
    font-weight: 500;
}

.lang-option img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-option span {
    font-size: 14px;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    #language-selector {
        top: 15px;
        right: 15px;
    }
    
    .lang-current {
        padding: 6px 12px;
    }
    
    .lang-option {
        padding: 8px 12px;
    }
}

/* Scroll effect - will be controlled by JS */
#language-selector.scrolled {
    opacity: 0.6;
    transform: scale(0.95);
}

#language-selector.hidden {
    opacity: 0;
    pointer-events: none;
} 