/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.language-switcher-dropdown {
    position: relative;
}

.language-switcher-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 60px;
    justify-content: center;
}

.language-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

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

.language-switcher-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 120px;
}

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

.language-switcher-menu li {
    margin: 0;
    padding: 0;
}

.language-switcher-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-switcher-menu li:last-child a {
    border-bottom: none;
}

.language-switcher-menu li a:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

.language-switcher-menu li.active a {
    background: #ff6b35;
    color: #ffffff;
}

.language-switcher-menu li.active a:hover {
    background: #e55a2b;
    color: #ffffff;
}

.lang-code {
    font-weight: 600;
    font-size: 12px;
    min-width: 20px;
}

.lang-name {
    flex: 1;
}

/* Dark mode support */
.dark-mode .language-switcher-btn {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-mode .language-switcher-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .language-switcher-menu {
    background: #2d2d2d;
    border-color: #404040;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .language-switcher-menu li a {
    color: #ffffff;
    border-bottom-color: #404040;
}

.dark-mode .language-switcher-menu li a:hover {
    background: #404040;
    color: #ff6b35;
}

.dark-mode .language-switcher-menu li.active a {
    background: #ff6b35;
    color: #ffffff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-switcher-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 50px;
    }
    
    .language-switcher-menu {
        min-width: 100px;
    }
    
    .language-switcher-menu li a {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Header integration styles */
.header__two-topbar .language-switcher {
    margin-left: 15px;
}

.header__two-topbar .language-switcher-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.header__two-topbar .language-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Alternative compact style */
.language-switcher.compact .language-switcher-btn {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 40px;
}

.language-switcher.compact .language-switcher-menu {
    min-width: 80px;
}

.language-switcher.compact .language-switcher-menu li a {
    padding: 6px 8px;
    font-size: 12px;
}

/* Animation for smooth transitions */
.language-switcher-menu li {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus styles for accessibility */
.language-switcher-btn:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.language-switcher-menu li a:focus {
    outline: 2px solid #ff6b35;
    outline-offset: -2px;
}
