/* ========================================
   Language Switcher Styles
   ======================================== */

.language-switcher {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 15px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    height: 40px;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.language-btn .lang-name {
    font-weight: 500;
}

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

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

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f5f7fa;
}

.language-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 500;
}

.language-option.active .flag {
    transform: scale(1.1);
}

.language-option .flag {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .language-btn .lang-name {
        display: none;
    }

    .language-btn {
        padding: 8px 12px;
        min-width: 50px;
        justify-content: center;
    }

    .language-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .language-dropdown.active {
        transform: translateX(-50%) translateY(0);
    }
}

/* Animation for language change */
@keyframes languageChange {
    0% {
        opacity: 0.5;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.language-changing {
    animation: languageChange 0.3s ease;
}

/* Language notification (if using notification system) */
.language-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.language-notification i {
    font-size: 18px;
}

.language-notification .message {
    font-weight: 500;
}
