/* dil çeviri css */

/* ============================================================================
   MAHSUN LANGUAGE SELECTOR - MANUEL VERSİYON
   Google Translate Widget Yerine Özel Dropdown
   KESİN ÇALIŞIR - Mahsun Altun
   ============================================================================ */

/* Google toolbar gizle */
body {
    top: 0 !important;
}

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

/* ============================================================================
   DESKTOP DİL SEÇİCİ
   ============================================================================ */

.mahsun-lang-selector {
    position: relative;
    display: inline-block;
}

.mahsun-lang-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mahsun-lang-btn:hover {
    border-color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.mahsun-lang-btn::after {
    content: '▼';
    font-size: 8px;
    margin-left: 3px;
    transition: transform 0.3s;
}

.mahsun-lang-btn.active::after {
    transform: rotate(180deg);
}

.mahsun-lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.mahsun-lang-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mahsun-lang-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mahsun-lang-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mahsun-lang-item.selected {
    background: #000;
    color: white;
}

/* ============================================================================
   MOBİL DİL SEÇİCİ
   ============================================================================ */

.mahsun-mobile-lang {
    width: 100%;
    padding: 25px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.mahsun-mobile-lang-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #000;
    text-align: center;
}

.mahsun-mobile-lang-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000;
}

.mahsun-mobile-lang-btn::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s;
}

.mahsun-mobile-lang-btn.active::after {
    transform: rotate(180deg);
}

.mahsun-mobile-lang-dropdown {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 10px;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.mahsun-mobile-lang-dropdown.active {
    display: block;
}

.mahsun-mobile-lang-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mahsun-mobile-lang-item:last-child {
    border-bottom: none;
}

.mahsun-mobile-lang-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mahsun-mobile-lang-item.selected {
    background: #000;
    color: white;
}

/* ============================================================================
   SCROLLBAR
   ============================================================================ */

.mahsun-lang-dropdown::-webkit-scrollbar,
.mahsun-mobile-lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.mahsun-lang-dropdown::-webkit-scrollbar-track,
.mahsun-mobile-lang-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mahsun-lang-dropdown::-webkit-scrollbar-thumb,
.mahsun-mobile-lang-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.mahsun-lang-dropdown::-webkit-scrollbar-thumb:hover,
.mahsun-mobile-lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .mahsun-lang-selector {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .mahsun-mobile-lang {
        display: none !important;
    }
}