/* language-switcher.css */
.language-switcher {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.lang-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

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

.lang-option {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-option:hover {
    background-color: #f5f5f5;
}

.lang-option.active {
    background-color: #e3f2fd;
    font-weight: 500;
}

.lang-flag {
    font-size: 18px;
}

@media (prefers-color-scheme: dark) {
    .lang-btn, .lang-menu {
        background: #2d2d2d;
        border-color: #404040;
        color: #fff;
    }

    .lang-option:hover {
        background-color: #3d3d3d;
    }

    .lang-option.active {
        background-color: #1565c0;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        bottom: 70px;
        right: 15px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}
