/* Visual Translator - Floating & Inline Language Switcher Styles */

.vt-floating-switcher {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    user-select: none;
    box-sizing: border-box;
}

.vt-floating-switcher *,
.vt-floating-switcher *::before,
.vt-floating-switcher *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Positions */
.vt-pos-bottom-right {
    bottom: 85px;
    right: 20px;
}

.vt-pos-bottom-left {
    bottom: 20px;
    left: 20px;
}

.vt-pos-top-right {
    top: 20px;
    right: 20px;
}

.vt-pos-top-left {
    top: 20px;
    left: 20px;
}

/* Active Trigger Button */
.vt-switcher-active {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1e293b;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.vt-switcher-active:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.vt-flag {
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vt-flag-svg,
.vt-flag img {
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
    border-radius: 2px;
}

.vt-name,
.vt-code {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    text-transform: uppercase;
}

.vt-arrow {
    font-size: 9px;
    color: #64748b;
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.vt-pos-bottom-right .vt-arrow,
.vt-pos-bottom-left .vt-arrow {
    transform: rotate(-90deg);
}

.vt-pos-top-right .vt-arrow,
.vt-pos-top-left .vt-arrow {
    transform: rotate(90deg);
}

.vt-floating-switcher:hover .vt-arrow {
    color: #0f172a;
}

/* Dropdown Menu */
.vt-switcher-dropdown {
    position: absolute;
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    z-index: 1000000;
}

.vt-pos-bottom-right .vt-switcher-dropdown,
.vt-pos-bottom-left .vt-switcher-dropdown {
    bottom: 100%;
    transform: translateY(-6px);
}

.vt-pos-top-right .vt-switcher-dropdown,
.vt-pos-top-left .vt-switcher-dropdown {
    top: 100%;
    transform: translateY(6px);
}

.vt-pos-bottom-right .vt-switcher-dropdown,
.vt-pos-top-right .vt-switcher-dropdown {
    right: 0;
}

.vt-pos-bottom-left .vt-switcher-dropdown,
.vt-pos-top-left .vt-switcher-dropdown {
    left: 0;
}

/* Show Dropdown on Hover or Click */
.vt-floating-switcher:hover .vt-switcher-dropdown,
.vt-floating-switcher.open .vt-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown Item */
.vt-switcher-dropdown li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vt-switcher-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #334155;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
    font-weight: 500;
}

.vt-switcher-dropdown li a:hover,
.vt-switcher-dropdown li.active a {
    background: #f1f5f9;
    color: #2563eb;
}

.vt-switcher-dropdown li.active a {
    font-weight: 700;
}

/* Inline Switcher (Shortcode) */
.vt-inline-switcher {
    display: inline-block;
    font-family: inherit;
}

.vt-inline-switcher-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vt-inline-switcher-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vt-inline-switcher-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none !important;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.vt-inline-switcher-list li a:hover,
.vt-inline-switcher-list li.active a {
    opacity: 1;
    font-weight: 700;
}
