/* GO Translate — frontend switcher (dropdown with globe icon + flags) */

.go-switcher {
    position: relative;
    display: inline-block;
    font-size: 13px;
}

/* Trigger button: globe + language code + chevron */
.go-switcher-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    cursor: pointer;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}
.go-switcher-trigger:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.2);
}
.go-switcher-globe { display: inline-flex; align-items: center; }
.go-switcher-code  { letter-spacing: 0.5px; }
.go-switcher-chev  { font-size: 10px; opacity: 0.6; margin-left: 2px; }

/* Dropdown menu */
.go-switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
    z-index: 10000;
    display: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.go-switcher.is-open .go-switcher-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.go-switcher-menu li { margin: 0; padding: 0; list-style: none; }

.go-switcher-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    text-decoration: none;
    color: #1a1a1a;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s, transform 0.12s;
    white-space: nowrap;
    line-height: 1.2;
}
.go-switcher-option:hover,
.go-switcher-option:focus {
    background: #f3f4f6;
    color: #000;
    transform: translateX(2px);
}
.go-switcher-option.is-active {
    font-weight: 700;
    background: #eef2ff;
    color: #1e40af;
}
.go-switcher-option.is-active::after {
    content: '\2713';
    margin-left: auto;
    color: #1e40af;
    font-weight: 700;
}

.go-switcher-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
    display: block;
}
.go-switcher-name {
    font-size: 14px;
    font-weight: 500;
}
.go-switcher-option.is-active .go-switcher-name {
    font-weight: 700;
}

/* Floating fixed button style (bottom-left) */
#go-switcher-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
}
#go-switcher-floating .go-switcher-trigger {
    background: #0E2D4E;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
#go-switcher-floating .go-switcher-trigger:hover {
    background: #143b5e;
}
#go-switcher-floating .go-switcher-menu {
    right: auto;
    left: 0;
    bottom: calc(100% + 6px);
    top: auto;
}

/* Menu-appended style — blend into the nav */
.go-switcher-menu-item .go-switcher-trigger {
    background: transparent;
    border: none;
    padding: 0 10px;
}
