/* Language Switcher */
.language-switcher-wrapper {
    position: relative;
    display: inline-block;
}

.language-switcher-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 18px;
}

.language-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-switcher-btn .material-icons {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.language-switcher-wrapper.active .language-switcher-btn .material-icons {
    transform: rotate(180deg);
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lang-flag-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher-wrapper.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-menu-item:last-child {
    border-bottom: none;
}

.lang-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-menu-item.active {
    background: rgba(255, 255, 255, 0.15);
}

.lang-menu-item .lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.lang-menu-item .lang-flag-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.lang-menu-item .lang-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.lang-menu-item .material-icons {
    font-size: 18px;
    color: #4caf50;
}

.lang-menu-item:not(.active) .material-icons {
    display: none;
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .language-dropdown {
        right: 0;
        min-width: 160px;
    }
}
