/* Transleti Translator — Language Switcher */

/* Shortcode switcher */
.tlt-switcher {
    display: inline-block;
    position: relative;
    font-size: 14px;
}
.tlt-switcher-current {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tlt-switcher-list {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}
.tlt-lang-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}
.tlt-lang-item a:hover {
    background: #f0f0f0;
}
.tlt-lang-item.tlt-active a {
    font-weight: 600;
}

/* Flag emoji */
.tlt-flag-emoji {
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
}

/* Floating switcher */
.tlt-floater {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
}
.tlt-floater-bottom-right {
    bottom: 20px;
    right: 20px;
}
.tlt-floater-bottom-left {
    bottom: 20px;
    left: 20px;
}
.tlt-floater-top-right {
    top: 20px;
    right: 20px;
}
.tlt-floater-top-left {
    top: 20px;
    left: 20px;
}

.tlt-floater-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s;
}
.tlt-floater-toggle:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
.tlt-floater-arrow {
    font-size: 10px;
    margin-left: 2px;
}

/* Color schemes */
.tlt-color-dark .tlt-floater-toggle {
    background: #1d2327;
    color: #fff;
}
.tlt-color-light .tlt-floater-toggle {
    background: #fff;
    color: #1d2327;
    border: 1px solid #ddd;
}
.tlt-color-blue .tlt-floater-toggle {
    background: #2271b1;
    color: #fff;
}
.tlt-color-red .tlt-floater-toggle {
    background: #d63638;
    color: #fff;
}
.tlt-color-green .tlt-floater-toggle {
    background: #00a32a;
    color: #fff;
}

/* Dropdown */
.tlt-floater-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    overflow: hidden;
}
.tlt-floater-top-right .tlt-floater-dropdown,
.tlt-floater-top-left .tlt-floater-dropdown {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 8px;
}
.tlt-floater-bottom-left .tlt-floater-dropdown,
.tlt-floater-top-left .tlt-floater-dropdown {
    right: auto;
    left: 0;
}
.tlt-floater-dropdown .tlt-lang-item a {
    padding: 8px 16px;
    color: #1d2327;
}
.tlt-floater-dropdown .tlt-lang-item a:hover {
    background: #f0f6fc;
}
.tlt-floater-dropdown .tlt-lang-item.tlt-active a {
    background: #e8f0fe;
}
