/* Language Domains – Frontend Switcher */

/* ── List style ── */
.ld-switcher--list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ld-switcher--list .ld-item a,
.ld-switcher--list .ld-current {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    border: 1px solid transparent;
}

.ld-switcher--list .ld-item a {
    color: inherit;
    border-color: currentColor;
    opacity: .65;
}
.ld-switcher--list .ld-item a:hover { opacity: 1; }

.ld-switcher--list .ld-item--active .ld-current {
    border-color: currentColor;
    opacity: 1;
    font-weight: 700;
}

.ld-slug { font-family: monospace; font-size: .95em; text-transform: uppercase; }
.ld-label { font-size: .85em; }

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

.ld-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    transition: border-color .15s;
}
.ld-dropdown-toggle:hover { border-color: #888; }

.ld-arrow { font-size: .7em; transition: transform .15s; }
.ld-switcher--dropdown.ld-open .ld-arrow { transform: rotate(180deg); }

.ld-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
}
.ld-switcher--dropdown.ld-open .ld-dropdown-menu { display: block; }

.ld-dropdown-menu li a,
.ld-dropdown-menu li .ld-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: .85rem;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
    white-space: nowrap;
}
.ld-dropdown-menu li a:hover { background: #f5f5f5; }
.ld-dropdown-menu li .ld-current { font-weight: 700; opacity: .55; cursor: default; }
