/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.language-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.language-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #adb5bd;
}

.language-toggle:active {
    transform: scale(0.95);
}

.flag-container {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.language-toggle .flag-container {
    width: 36px;
    height: 36px;
}

.language-option .flag-container {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.flag-container svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.language-toggle:hover .flag-container {
    transform: rotate(5deg);
    border-color: #adb5bd;
}

.language-option:hover .flag-container {
    transform: translateX(-2px);
    border-color: #adb5bd;
}

.language-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.language-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.language-option:last-child {
    margin-bottom: 0;
}

.language-option:hover {
    background-color: #f8f9fa;
    transform: translateX(-2px);
}

.language-option .flag-icon {
    margin-right: 10px;
    flex-shrink: 0;
}

.language-option span {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-switcher {
        bottom: 15px;
        right: 15px;
    }
    
    .language-toggle {
        width: 55px;
        height: 55px;
    }
    
    .language-popup {
        min-width: 160px;
        right: -5px;
    }
    
    .language-popup::after {
        right: 25px;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        bottom: 10px;
        right: 10px;
    }
    
    .language-toggle {
        width: 50px;
        height: 50px;
    }
    
    .language-popup {
        min-width: 150px;
        right: -10px;
    }
    
    .language-option span {
        font-size: 13px;
    }
}
