/* Dil Seçici Stili */
.language-selector {
    position: relative;
    display: inline-block;
}

.lang-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
    margin-left: 0.2em;
    height: 2.65em;
}

.lang-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-button i {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 3px;
}

.language-selector.active .lang-button i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999999 !important;
    overflow: hidden;
}

.language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 500;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.25);
    border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.flag-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.lang-name {
    font-size: 14px;
    white-space: nowrap;
}

/* Mobil için özel ayarlar */
@media (max-width: 991px) {
    .language-selector {
        z-index: 999998 !important;
        position: relative;
    }
    
    .lang-button {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 12px;
        height: 2.5em;
        margin-left: 0.5em;
        position: relative;
        z-index: 999998 !important;
    }
    
    .lang-dropdown {
        min-width: 160px;
        right: auto !important; /* Sağdan hizalamayı kaldır */
        left: 70% !important; /* Ortadan başlat */
        transform: translateX(-50%) translateY(-10px); /* Ortala */
        z-index: 999999 !important;
        position: fixed !important;
        top: auto !important;
        margin-top: 20px; /* Header yüksekliğine göre ayarla */
    }
    
    .language-selector.active .lang-dropdown {
        transform: translateX(-50%) translateY(0); /* Açıldığında da ortala */
    }
    
    .flag-icon {
        font-size: 18px;
        width: 22px;
    }
    
    .lang-name {
        font-size: 13px;
    }
    
    .lang-option {
        padding: 10px 14px;
    }
    
    .current-lang {
        gap: 6px;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 576px) {
    .lang-button {
        min-width: 90px;
        padding: 8px 12px;
        font-size: 11px;
        gap: 5px;
    }
    
    .lang-dropdown {
        min-width: 140px;
    }
}

/* Google Translate Widget'ını Gizle */
#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.skiptranslate {
    display: none !important;
}