/* GTranslate Style Switcher */
.gtranslate-wrapper {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dropdown Style */
.gt-switcher {
    position: relative;
}

.gt-current-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
}

.gt-flag {
    font-size: 18px;
    line-height: 1;
}

.gt-lang-code {
    font-weight: 600;
}

.gt-arrow {
    transition: transform 0.2s;
}

.gt-switcher.open .gt-arrow {
    transform: rotate(180deg);
}

.gt-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

.gt-switcher.open .gt-lang-menu {
    display: block;
}

.gt-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}

.gt-lang-option:hover {
    background: #f5f5f5;
}

.gt-lang-option.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.gt-lang-name {
    font-size: 14px;
}

/* Flags Dropdown Style (only flags, no text) */
.gt-flag-switcher {
    position: relative;
}

.gt-flag-current {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: #fff !important;
    border: 0px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.gt-flag-only {
    font-size: 24px;
    line-height: 1;
}

.gt-flag-switcher.open .gt-arrow {
    transform: rotate(180deg);
}

.gt-arrow {
    color: #fff;
}

.gt-flag-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 60px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

.gt-flag-switcher.open .gt-flag-menu {
    display: block;
}

.gt-flag-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    transition: background 0.15s;
}

.gt-flag-option:hover {
    background: #f5f5f5;
}

.gt-flag-option.active {
    background: #e3f2fd;
}

/* Names Only Style */
.gt-names {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gt-name-btn {
    padding: 6px 12px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.gt-name-btn:hover {
    color: #333;
    background: #f5f5f5;
}

.gt-name-btn.active {
    color: #1976d2;
    background: #e3f2fd;
    font-weight: 600;
}