/**
 * Terpa - Dil seçici + Google Translate gizleme
 */

.terpa-gt-root,
#google_translate_element,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-te-menu-value,
.goog-te-menu-frame,
iframe.goog-te-menu-frame,
iframe.skiptranslate,
.skiptranslate,
body > iframe[style*="translate"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

body {
    top: 0 !important;
    position: static !important;
}

.terpa-dil-secici {
    position: relative;
    z-index: 9999;
}

.terpa-dil-topbar {
    position: relative;
    z-index: 9999;
}

.terpa-dil-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--terpa-amber, #F59E0B);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.terpa-dil-toggle:hover {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.terpa-dil-ok {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.terpa-dil-secici.acik .terpa-dil-ok {
    transform: rotate(180deg);
}

.terpa-dil-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

.terpa-dil-secici.acik .terpa-dil-menu {
    pointer-events: auto;
}

.terpa-dil-secici.acik .terpa-dil-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.terpa-dil-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--terpa-text, #F8FAFC);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.terpa-dil-item:hover {
    background: rgba(245, 158, 11, 0.12);
}

.terpa-dil-item.aktif {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.terpa-dil-bayrak {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.terpa-dil-bayrak-img,
.terpa-dil-bayrak-aktif {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.terpa-dil-bayrak-aktif {
    flex-shrink: 0;
}

.terpa-dil-metin {
    flex: 1;
    font-size: 0.9rem;
}

.terpa-dil-kod {
    font-size: 0.7rem;
    color: var(--terpa-muted, #94A3B8);
    font-weight: 600;
}

.terpa-dil-topbar .terpa-dil-toggle {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
}

.terpa-dil-navbar {
    margin-right: 0.5rem;
}

html[dir="rtl"] body.terpa-rtl .navbar-nav {
    margin-right: auto !important;
    margin-left: auto !important;
}

html[dir="rtl"] .terpa-dil-menu {
    right: auto;
    left: 0;
}

@media (max-width: 991px) {
    .terpa-dil-navbar {
        padding: 0;
        margin-right: 0;
    }
    .terpa-dil-navbar .terpa-dil-menu {
        right: auto;
        left: 0;
    }
}

.terpa-sss-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 50%;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.1);
    color: var(--terpa-amber, #F59E0B);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.terpa-sss-link:hover,
.terpa-sss-link.is-active,
.terpa-sss-link:focus-visible {
    background: rgba(245, 158, 11, 0.22);
    color: #fff;
    border-color: rgba(245, 158, 11, 0.55);
    outline: none;
}

.terpa-sss-icon {
    display: block;
    line-height: 1;
}

.terpa-sss-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

.terpa-sss-link:hover .terpa-sss-tooltip,
.terpa-sss-link:focus-visible .terpa-sss-tooltip {
    opacity: 1;
    visibility: visible;
}

.terpa-sss-link--topbar {
    margin-left: 0.35rem;
}

body[data-theme="can"] .top-bar .terpa-sss-link {
    border-color: rgba(245, 166, 35, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #F5A623;
}

body[data-theme="can"] .terpa-navbar .terpa-sss-link {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body[data-theme="can"] .terpa-navbar .terpa-sss-link:hover,
body[data-theme="can"] .terpa-navbar .terpa-sss-link.is-active {
    background: rgba(245, 166, 35, 0.25);
    border-color: rgba(245, 166, 35, 0.5);
    color: #fff;
}
