/* Language Switcher for SASEN Theme */
.language-switcher {
    position: relative;
    margin-left: 15px;
}

.language-btn {
    background: transparent;
    border: 2px solid var(--theme-color);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: center;
    font-family: var(--text-font);
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.language-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--theme-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.language-btn:hover::before {
    left: 0;
}

.language-btn:hover {
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(203, 56, 255, 0.3);
}

.language-btn img {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.language-btn:hover img {
    transform: scale(1.1);
}

.language-btn i {
    font-size: 11px;
    color: var(--theme-color);
    margin-left: 2px;
    transition: all 0.3s ease;
}

.language-btn:hover i {
    color: var(--white-color);
}

.language-btn.active i {
    transform: rotate(180deg);
}

.language-btn span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.language-switcher .dropdown-menu {
    min-width: 140px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(203, 56, 255, 0.15);
    padding: 8px 0;
    margin-top: 10px;
    background: var(--white-color);
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher .dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.language-switcher .dropdown-menu li {
    list-style: none;
}

.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 13px;
    border-left: 3px solid transparent;
}

.language-switcher .dropdown-item:hover {
    background: var(--primary-color);
    color: var(--theme-color);
    border-left-color: var(--theme-color);
    transform: translateX(5px);
}

.language-switcher .dropdown-item img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Sticky header adjustments */
.sticky-header .language-switcher {
    margin-left: 12px;
}

.sticky-header .language-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 65px;
    border-width: 1px;
}

.sticky-header .language-btn img {
    width: 16px;
    height: 16px;
}

.sticky-header .language-btn i {
    font-size: 10px;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    /* Hide language switcher in header on mobile */
    .main-header .menu-area .outer-box .language-switcher,
    .sticky-header .outer-box .language-switcher {
        display: none !important;
    }
}

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

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

.mobile-language-switcher .language-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-language-switcher .language-list li {
    margin-bottom: 10px;
}

.mobile-language-switcher .language-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.mobile-language-switcher .language-list li a:hover,
.mobile-language-switcher .language-list li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(5px);
}

.mobile-language-switcher .language-list li a img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mobile-language-switcher .language-list li a span {
    font-weight: 600;
}

/* Fix for social icons in mobile menu */
.mobile-menu .social-links li a span,
.mobile-menu .social-links li a i {
    display: inline-block;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mobile-menu .social-links li a span.fa,
.mobile-menu .social-links li a i.fa {
    font-family: 'FontAwesome' !important;
}

.mobile-menu .social-links li a span[class^="icon-"],
.mobile-menu .social-links li a i[class^="icon-"] {
    font-family: 'icomoon' !important;
}

/* Ensure Font Awesome icons are visible */
.mobile-menu .social-links li a .fa-instagram:before {
    content: "\f16d";
    font-family: 'FontAwesome' !important;
}

.mobile-menu .social-links li a .fa-youtube:before {
    content: "\f167";
    font-family: 'FontAwesome' !important;
}
