/* ============================================
   LANGUAGE SWITCHER - DIL SEÇİCİ
   ============================================ */

.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #191919;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-switcher-btn:hover {
    background: #fff;
    border-color: #e27924;
}

.lang-switcher.open .lang-switcher-btn {
    background: #fff;
    border-color: #e27924;
    box-shadow: 0 4px 12px rgba(226, 121, 36, 0.15);
}

.lang-switcher-btn .lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-switcher-btn .lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-switcher-btn i {
    font-size: 10px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-switcher-btn i {
    transform: rotate(180deg);
}

/* Dropdown */
.lang-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switcher.open .lang-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Language Options */
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: #f8f9fa;
    color: #191919;
}

.lang-option.active {
    background: #fff8f3;
    color: #e27924;
}

.lang-option .lang-flag {
    font-size: 20px;
    line-height: 1;
}

.lang-option .lang-name {
    flex: 1;
}

.lang-option i.fa-check {
    font-size: 12px;
    color: #e27924;
}

/* ===== FOOTER DİL SEÇİCİ ===== */
.footer-lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-lang-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.footer-lang-link.active {
    background: #e27924;
    color: #fff;
}

.footer-lang-link .lang-flag {
    font-size: 16px;
}

/* ===== MOBİL DÜZENLEMELER ===== */
@media (max-width: 900px) {
    .lang-switcher {
        order: -1;
    }
    
    .lang-switcher-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .lang-switcher-btn .lang-flag {
        font-size: 16px;
    }
    
    .lang-switcher-dropdown {
        right: auto;
        left: 0;
        min-width: 150px;
    }
}

@media (max-width: 600px) {
    .lang-switcher-btn {
        padding: 5px 8px;
    }
    
    .lang-switcher-btn .lang-code {
        display: none;
    }
    
    .lang-switcher-btn .lang-flag {
        font-size: 18px;
    }
    
    .lang-option {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* ===== MOBİL MENÜDE DİL SEÇİCİ ===== */
.mobile-lang-section {
    padding: 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.mobile-lang-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.mobile-lang-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-lang-btn:hover {
    border-color: #e27924;
    color: #e27924;
}

.mobile-lang-btn.active {
    background: #e27924;
    border-color: #e27924;
    color: #fff;
}

.mobile-lang-btn .lang-flag {
    font-size: 18px;
}

/* ===== ANIMASYONLAR ===== */
@keyframes langDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-switcher.open .lang-switcher-dropdown {
    animation: langDropdownIn 0.2s ease forwards;
}
