/* Language dropdown + flags. Hide Google top bar (engine stays off-screen). */

.lang-switcher {
    position: relative;
    z-index: 60;
    display: inline-block;
    text-align: start;
}

.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.7rem 0.35rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 149, 106, 0.4);
    background: rgba(20, 16, 28, 0.72);
    color: #f3eadc;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
}

.lang-switcher__toggle:hover,
.lang-switcher__toggle[aria-expanded="true"] {
    border-color: rgba(213, 161, 94, 0.7);
    background: rgba(32, 24, 40, 0.92);
}

.lang-switcher__current {
    line-height: 1;
}

.lang-switcher__caret {
    width: 0;
    height: 0;
    margin-inline-start: 0.15rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(237, 216, 188, 0.85);
}

.lang-switcher__list {
    position: absolute;
    top: calc(100% + 0.4rem);
    inset-inline-start: 0;
    min-width: 11.5rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 0.85rem;
    border: 1px solid rgba(184, 149, 106, 0.35);
    background: rgba(16, 12, 22, 0.97);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.lang-switcher--mobile {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
}

.lang-switcher--mobile .lang-switcher__toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 0.85rem;
}

.lang-switcher--mobile .lang-switcher__list {
    position: static;
    margin-top: 0.4rem;
    width: 100%;
}

.lang-switcher__option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    color: #edd8bc;
    font-size: 0.86rem;
    font-weight: 500;
    text-align: start;
    cursor: pointer;
}

.lang-switcher__option:hover {
    background: rgba(184, 149, 106, 0.16);
    color: #fff;
}

.lang-switcher__option.is-active {
    background: linear-gradient(135deg, rgba(212, 161, 97, 0.28), rgba(180, 135, 80, 0.22));
    color: #ffe8c7;
}

.lang-flag {
    display: inline-block;
    width: 1.35rem;
    height: 1rem;
    flex-shrink: 0;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.lang-flag--tr {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'%3E%3Crect width='1200' height='800' fill='%23E30A17'/%3E%3Ccircle cx='425' cy='400' r='200' fill='%23fff'/%3E%3Ccircle cx='475' cy='400' r='160' fill='%23E30A17'/%3E%3Cpolygon fill='%23fff' points='583,400 504,426 554,355 554,445 504,374'/%3E%3C/svg%3E");
}

.lang-flag--en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 V30 M0,15 H60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 V30 M0,15 H60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E");
}

.lang-flag--ar {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6'%3E%3Crect width='12' height='6' fill='%23007032'/%3E%3Crect width='3' height='6' fill='%23CE1126'/%3E%3Crect x='3' width='9' height='2' fill='%23007032'/%3E%3Crect x='3' y='2' width='9' height='2' fill='%23fff'/%3E%3Crect x='3' y='4' width='9' height='2' fill='%23000'/%3E%3C/svg%3E");
}

.google-translate-host {
    position: absolute !important;
    left: -9999px !important;
    top: 8px !important;
    width: 220px !important;
    height: 40px !important;
    overflow: hidden !important;
    opacity: 0.01 !important;
    pointer-events: none !important;
}

.goog-te-banner-frame,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    border: 0 !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

html.translated-ltr body,
html.translated-rtl body,
body {
    top: 0 !important;
    position: static !important;
}

.goog-te-gadget { font-size: 0 !important; }
.goog-logo-link { display: none !important; }

html.is-rtl,
html[dir="rtl"] { direction: rtl; }

html.is-rtl .site-header__inner,
html[dir="rtl"] .site-header__inner { flex-direction: row-reverse; }

html.is-rtl .site-nav,
html[dir="rtl"] .site-nav { flex-direction: row-reverse; }

html.is-rtl .lang-switcher__list,
html[dir="rtl"] .lang-switcher__list {
    inset-inline-start: auto;
    inset-inline-end: 0;
}
