/**
 * 언어 전환 버튼 스타일
 */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* 버튼 기본 스타일 - 메인페이지 (어두운 배경 + 흰색 텍스트) */
.header .lang-switcher button[data-lang] {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    font-family: inherit;
}

.header .lang-switcher button[data-lang]:hover {
    color: #ffffff;
}

.header .lang-switcher button[data-lang].active {
    color: #ffffff;
    font-weight: 700;
}

.header .lang-switcher button[data-lang].active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
}

.header .lang-switcher .lang-divider {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    user-select: none;
}

/* 서브페이지 (scrolled, is-main 없음) - 어두운 텍스트 */
.header.scrolled:not(.is-main) .lang-switcher button[data-lang] {
    color: rgba(73, 80, 87, 0.7);
}

.header.scrolled:not(.is-main) .lang-switcher button[data-lang]:hover {
    color: #16191d;
}

.header.scrolled:not(.is-main) .lang-switcher button[data-lang].active {
    color: #16191d;
}

.header.scrolled:not(.is-main) .lang-switcher button[data-lang].active::after {
    background-color: #16191d;
}

.header.scrolled:not(.is-main) .lang-switcher .lang-divider {
    color: rgba(73, 80, 87, 0.5);
}

/* 데스크톱 레이아웃 */
@media (min-width: 993px) {
    .lang-switcher {
        margin-left: 20px;
        margin-right: 0;
    }
}

/* 모바일 대응 */
@media (max-width: 992px) {
    .lang-switcher {
        margin-left: auto;
        margin-right: 15px;
    }
}
