/* Dropdown UI Component Styles */
#language-dropdown {
    position: relative;
    display: inline-block;
}

#language-dropdown::after {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -12px;
    width: 1px;
    height: 10px;
    background-color: #dde0e5;
    content: "";
}

.language-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Noto Sans CJK KR", 본고딕, "sans-serif", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    height: 17px;
    line-height: 17px;
}

.language-icon {
    width: 16px;
    height: 17px;
    background-image: url(../../../images/icon_gnb_language.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--text-primary);
    display: block;
    transition: transform 0.2s ease;
}

#language-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 4px 0 0 -4px;
    border: 1px solid #1b1e23;
    border-radius: 8px;
    -webkit-box-shadow: 6px 6px 8px 0 rgba(0, 0, 0, 0.25);
    box-shadow: 6px 6px 8px 0 rgba(0, 0, 0, 0.25);
    background-color: #fff;
    list-style: none;
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: var(--z-dropdown);
    text-align: center;
    display: block;
}

/* active 상태에서 메뉴 표시 */
#language-dropdown.active .language-menu {
    opacity: 1 ;
    visibility: visible ;
    transform: translateY(0);
    display: block ;
}

.language-item {
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Noto Sans CJK KR", 본고딕, "sans-serif", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    position: relative;
    white-space: nowrap;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.language-item:hover {
    background-color: var(--bg-secondary);
}

.language-item.active {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #000;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.language-item .language-icon {
    width: 16px;
    height: 17px;
    background-image: url(../../../images/icon_gnb_language.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}
