/* ================================================
   Leaders LM — Language Switcher Styles
   Version: 1.0.0
   ================================================ */

/* ── Button Style (default) ─────────────────── */
.lm-switcher.lm-buttons {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.lm-switcher.lm-buttons .lm-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lm-switcher.lm-buttons .lm-btn:hover {
    border-color: #1a56a4;
    color: #1a56a4;
    background: #f0f5ff;
    text-decoration: none;
}

.lm-switcher.lm-buttons .lm-btn.lm-active {
    border-color: #1a56a4;
    background: #1a56a4;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

/* ── Dropdown Style ──────────────────────────── */
.lm-switcher.lm-dropdown {
    position: relative;
    display: inline-block;
}

.lm-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 2px solid #1a56a4;
    border-radius: 6px;
    background: #fff;
    color: #1a56a4;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lm-drop-btn:hover {
    background: #1a56a4;
    color: #fff;
}

.lm-drop-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
}

.lm-switcher.lm-dropdown:hover .lm-drop-list,
.lm-switcher.lm-dropdown:focus-within .lm-drop-list {
    display: block;
}

.lm-drop-list li {
    margin: 0;
    padding: 0;
}

.lm-drop-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s;
}

.lm-drop-list a:hover {
    background: #f5f8ff;
    color: #1a56a4;
    text-decoration: none;
}

.lm-drop-list a.lm-active {
    background: #eef3ff;
    color: #1a56a4;
    font-weight: 600;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 480px) {
    .lm-switcher.lm-buttons {
        gap: 4px;
    }
    .lm-switcher.lm-buttons .lm-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}
