/* LibrePower Translate - Language Switcher */

/* Inline style */
.lpt-switcher-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.lpt-lang-link {
    text-decoration: none;
    color: inherit;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.lpt-lang-link:hover {
    background: rgba(0, 0, 0, 0.08);
}

.lpt-lang-link.active {
    font-weight: 700;
}

.lpt-sep {
    color: rgba(0, 0, 0, 0.3);
    user-select: none;
}

/* Flags style */
.lpt-switcher-flags {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.lpt-flag-link {
    text-decoration: none;
    color: inherit;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}

.lpt-flag-link:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

.lpt-flag-link.active {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

/* Dropdown style */
.lpt-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.lpt-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: inherit;
    transition: background 0.2s;
}

.lpt-switcher-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.lpt-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.lpt-switcher-dropdown.open .lpt-arrow {
    transform: rotate(180deg);
}

.lpt-switcher-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.lpt-switcher-dropdown.open .lpt-switcher-menu {
    display: block;
}

.lpt-switcher-menu li {
    margin: 0;
    padding: 0;
}

.lpt-switcher-menu a {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.15s;
}

.lpt-switcher-menu a:hover {
    background: #f5f5f5;
}

.lpt-switcher-menu a.active {
    font-weight: 700;
    background: #f0f6ff;
}
