/* Language Switcher Component */
.language-switcher {
    position: relative;
    display: inline-block;
}

/* Navigation bottom positioning */
.nav-bottom {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid var(--overlay-white-10);
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-bottom .language-switcher {
    width: 100%;
    position: static;
}

.language-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--grey5-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-l);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
    width: 100%;
}

.language-button:hover {
    background: var(--grey6-color);
    border-color: var(--grey4-color);
}

.language-button svg {
    width: 20px;
    height: 20px;
}

.current-lang-name {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.language-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    min-width: 300px;
    max-width: 400px;
    width: 90vw;
    background: var(--grey2-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-2xl);
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    z-index: 10000;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.language-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: var(--grey22-color);
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.language-dropdown-title {
    font-size: 18px;
    font-weight: 750;
    margin: 0;
}

.language-dropdown-close {
    background: var(--grey22-color);
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.language-dropdown-close:hover {
    background: var(--grey6-color);
    border-color: var(--grey4-color);
}

.language-dropdown-close svg {
    width: 20px;
    height: 20px;
}

.language-dropdown-list {
    list-style: none;
    padding: 8px 16px;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.language-dropdown li {
    margin: 0;
    padding: 0;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border-radius: var(--radius-m);
    margin: 2px 0;
}

.language-option:hover {
    background: var(--grey5-color);
}

.language-option.active {
    background: var(--grey4-color);
    border: 2px solid var(--accent-color);
    padding: 10px 14px;
}

.lang-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.lang-check {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 16px;
}

/* Mobile adjustments */
@media (max-width: 768px) {    
    .language-button {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-dropdown {
        min-width: 160px;
    }
    
    .language-option {
        padding: 8px 12px;
    }
    
    .lang-name {
        font-size: 13px;
    }
}
