/* 언어 변경 스위처 스타일 */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.language-switcher .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
}

.language-switcher .icon-box i {
    font-size: 16px;
    color: #ffffff;
}

.language-dropdown {
    position: relative;
}

.language-dropdown .current-lang {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 300ms ease;
}

.language-dropdown .current-lang:hover {
    color: #ff6600;
}

.language-dropdown .current-lang i {
    font-size: 12px;
    transition: transform 300ms ease;
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    min-width: 120px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 300ms ease;
    z-index: 99;
    list-style: none;
    margin: 0;
}

.language-dropdown:hover .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown:hover .current-lang i {
    transform: rotate(180deg);
}

.language-options li {
    margin: 0;
    padding: 0;
}

.language-options li a {
    display: block;
    padding: 8px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    transition: all 300ms ease;
}

.language-options li a:hover {
    background: #f5f5f5;
    color: #ff6600;
}

/* Sticky 헤더에서의 스타일 조정 */
.sticky-header .language-switcher .icon-box {
    background: rgba(0, 0, 0, 0.1);
}

.sticky-header .language-switcher .icon-box i {
    color: #333333;
}

.sticky-header .language-dropdown .current-lang {
    color: #333333;
}

/* 네비게이션 언어 스위처 */
.language-switcher-nav {
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher-nav .icon-box {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 102, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
    border: 2px solid #ffffff;
}

.language-switcher-nav .icon-box i {
    font-size: 14px;
    color: #ffffff !important;
    font-weight: bold;
    transition: all 300ms ease;
}

.language-switcher-nav .select-box {
    position: relative;
}

.language-switcher-nav .select-box select {
    background: #ffffff !important;
    border: 2px solid #ff6600 !important;
    border-radius: 5px;
    color: #333333 !important;
    -webkit-text-fill-color: #333333 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    min-width: 100px;
    cursor: pointer;
    transition: all 300ms ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.language-switcher-nav .select-box select:hover {
    border-color: #ff6600 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    transform: translateY(-1px);
}

.language-switcher-nav .select-box select option {
    background: #ffffff !important;
    color: #333333 !important;
    padding: 10px;
    font-weight: 500;
}

/* Sticky 헤더에서의 스타일 */
.sticky-header .language-switcher-nav .icon-box {
    background: rgba(255, 102, 0, 0.8) !important;
    border: 2px solid #333333;
}

.sticky-header .language-switcher-nav .icon-box i {
    color: #ffffff !important;
    font-weight: bold;
}

.sticky-header .language-switcher-nav .select-box select {
    color: #333333 !important;
    -webkit-text-fill-color: #333333 !important;
    background: #ffffff !important;
    border: 2px solid #ff6600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.sticky-header .language-switcher-nav .select-box select:hover {
    border-color: #ff6600 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    transform: translateY(-1px);
}

/* 추가 텍스트 색상 강제 적용 */
.menu-right-content .language-switcher-nav select,
.menu-right-content .language-switcher-nav select option,
div.language-switcher-nav select,
div.language-switcher-nav select option {
    color: #333333 !important;
    -webkit-text-fill-color: #333333 !important;
}

/* 브라우저별 select 요소 기본 스타일 제거 */
select#nav-language-select {
    color: #333333 !important;
    -webkit-text-fill-color: #333333 !important;
    background: #ffffff !important;
    border: 2px solid #ff6600 !important;
}

select#nav-language-select option {
    color: #333333 !important;
    -webkit-text-fill-color: #333333 !important;
    background: #ffffff !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .language-switcher {
        gap: 5px;
    }
    
    .language-switcher .icon-box {
        width: 40px;
        height: 40px;
    }
    
    .language-dropdown .current-lang {
        font-size: 14px;
    }
    
    .language-options {
        min-width: 100px;
    }
    
    .language-switcher-nav {
        margin-left: 10px;
        gap: 5px;
    }
    
    .language-switcher-nav .icon-box {
        width: 25px;
        height: 25px;
    }
    
    .language-switcher-nav .icon-box i {
        font-size: 12px;
    }
    
    .language-switcher-nav .select-box select {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 80px;
    }
}