/* Language Switcher Component - Mobile First */

/* Base styles (mobile < 1200px) */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 6px;
    background: transparent;
    border-radius: 4px;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.language-switcher__toggle:hover {
    border-color: #999;
    background: #f9f9f9;
}

.current-lang {
    font-weight: 500;
    min-width: 20px;
}

.language-switcher__icon {
    transition: transform 0.3s ease;
}

.language-switcher:hover .language-switcher__icon {
    transform: rotate(180deg);
}

.language-switcher__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 120px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher:hover .language-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher__dropdown li {
    margin: 0;
    padding: 0;
}

.language-switcher__dropdown a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.language-switcher__dropdown a:hover {
    background: #f5f5f5;
}

.language-switcher__dropdown li.current a {
    font-weight: 600;
    color: #0066cc;
    background: #f0f7ff;
}

/* Desktop styles (≥ 1200px) */
@media (min-width: 1200px) {
    .language-switcher__toggle {
        padding: 8px 8px;
        font-size: 14px;
    }

    .language-switcher__dropdown {
        left: auto;
        right: 0;
        min-width: 140px;
    }

    .language-switcher__dropdown a {
        padding: 10px 20px;
        font-size: 15px;
    }
}