/**
 * GOLAKS - Language Switcher CSS
 * Dil seçici stilleri
 */

/* Language Switcher Container */
.language-switcher,
.language-switcher-main {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

.language-switcher-main {
    margin-left: 0;
}

/* Dropdown Button */
.language-switcher .btn-language,
.language-switcher-main .btn-language {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #333 !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    position: relative;
}

.language-switcher .btn-language:hover,
.language-switcher .btn-language:focus,
.language-switcher-main .btn-language:hover,
.language-switcher-main .btn-language:focus {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
    color: #333 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-switcher .btn-language i,
.language-switcher-main .btn-language i {
    font-size: 16px;
    color: #333;
}

.language-switcher .btn-language .lang-code,
.language-switcher-main .btn-language .lang-code {
    color: #333;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.language-switcher .btn-language::after,
.language-switcher-main .btn-language::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    border: none;
    margin-left: 4px;
    font-size: 12px;
    vertical-align: middle;
    color: #333;
}

/* Dropdown Menu */
.language-switcher .dropdown-menu,
.language-switcher-main .dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 160px;
    margin-top: 10px;
    z-index: 99999 !important; /* Ana sayfa içeriğinin üstünde görünsün */
    position: absolute !important;
    right: 0; /* Sağa hizala */
    display: none; /* Varsayılan olarak gizli */
}

/* Açık durum */
.language-switcher .dropdown-menu.show,
.language-switcher-main .dropdown-menu.show {
    display: block;
}

.language-switcher .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

/* Dropdown Items */
.language-switcher .dropdown-item,
.language-switcher-main .dropdown-item {
    padding: 12px 20px;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-switcher .dropdown-item:hover,
.language-switcher-main .dropdown-item:hover {
    background: #f8f9fa !important;
    color: #0d6efd !important;
    transform: translateX(5px);
}

.language-switcher .dropdown-item.active,
.language-switcher-main .dropdown-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

.language-switcher .dropdown-item.active:hover,
.language-switcher-main .dropdown-item.active:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

/* Flag Emojis */
.language-switcher .flag-emoji,
.language-switcher-main .flag-emoji {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

.language-switcher .lang-name,
.language-switcher-main .lang-name {
    font-weight: 500;
}

/* Responsive - Mobile */
@media (max-width: 991px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }

    .language-switcher .btn-language {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.2);
        color: #333 !important;
    }

    .language-switcher .btn-language i,
    .language-switcher .btn-language .lang-code,
    .language-switcher .btn-language::after {
        color: #333 !important;
    }

    .language-switcher .btn-language:hover {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.3);
    }
}

/* Sticky Header - Dark Background */
.sticky-on .language-switcher .btn-language {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333 !important;
}

.sticky-on .language-switcher .btn-language i,
.sticky-on .language-switcher .btn-language .lang-code,
.sticky-on .language-switcher .btn-language::after {
    color: #333 !important;
}

.sticky-on .language-switcher .btn-language:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Animation */
.language-switcher .dropdown-menu.show,
.language-switcher-main .dropdown-menu.show {
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Language Switcher - Hide on Desktop */
.mobile-lang-switcher {
    display: none !important;
}

@media (max-width: 991px) {
    .mobile-lang-switcher {
        display: inline-flex !important;
        margin-right: 15px;
        gap: 6px;
    }
}

/* Mobile Language Buttons */
.mobile-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-lang-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.mobile-lang-btn.active {
    background: rgba(255, 187, 0, 0.15);
    border-color: rgba(255, 187, 0, 0.3);
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.mobile-language-switcher h6 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-language-switcher .language-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-language-switcher .lang-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.mobile-language-switcher .lang-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.mobile-language-switcher .flag-emoji {
    font-size: 18px;
    line-height: 1;
}

.mobile-language-switcher .lang-name {
    color: #fff;
    font-weight: 500;
}
