/* ============================================================
   Custom Translate – Language Switcher Frontend Styles
   ============================================================ */

/* ── List style ──────────────────────────────────────────── */
.ctr-language-switcher {
    display: inline-block;
    font-family: inherit;
}

.ctr-switcher-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ctr-switcher-item {
    display: inline-flex;
}

.ctr-switcher-item a,
.ctr-switcher-item span.ctr-switcher-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all .2s ease;
    cursor: pointer;
}

.ctr-switcher-item a {
    background: #f1f5f9;
    color: #2d3748;
    border-color: #e2e8f0;
}

.ctr-switcher-item a:hover {
    background: #5b6ef5;
    color: #fff;
    border-color: #5b6ef5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91,110,245,.3);
}

.ctr-switcher-item.ctr-current-lang a {
    background: #5b6ef5;
    color: #fff;
    border-color: #5b6ef5;
}

.ctr-switcher-item.ctr-no-translation a {
    opacity: .7;
}

.ctr-switcher-unavailable {
    opacity: .45;
    cursor: not-allowed;
}

/* Flag emoji */
.ctr-flag-emoji {
    font-size: 18px;
    line-height: 1;
}

/* Lang badge fallback */
.ctr-lang-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .05em;
}

/* ── Dropdown style ──────────────────────────────────────── */
.ctr-switcher-select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s;
}

.ctr-switcher-select:focus {
    border-color: #5b6ef5;
    outline: none;
}
