/**
 * 경로 점프메뉴(드롭다운) 공통 CSS
 * 모든 bc_skins 스킨에서 공유
 */

/* 점프메뉴 버튼: #666 라운드 + 흰색 화살표 */
.bc_jump_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #666;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    vertical-align: middle;
    position: relative;
    flex-shrink: 0;
}
.bc_jump_btn:hover {
    background: var(--bc-hover-color, var(--primary, #4f46e5));
}
.bc_jump_btn[aria-expanded="true"] {
    background: var(--bc-hover-color, var(--primary, #4f46e5));
}
.bc_jump_btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s;
}
.bc_jump_btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* 드롭다운 패널 */
.bc_jump_dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 150px;
    max-width: 260px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
    padding: 6px 0;
    background: #1f2937;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
}
.bc_jump_dropdown.open {
    opacity: 1;
    visibility: visible;
}

/* ★ 드롭다운 열릴 때 부모 타이틀 영역 z-index 승격 (dep2 위로) */
.sub_top_title_area:has(.bc_jump_dropdown.open) {
    z-index: 99999 !important;
}
.bc_jump_dropdown[hidden] {
    display: none;
}

/* 드롭다운 화살표 (삼각형) */
.bc_jump_dropdown::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #1f2937;
}

/* 드롭다운 항목 */
.bc_jump_dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bc_jump_dropdown li {
    display: block !important;
}
.bc_jump_dropdown li a {
    display: block;
    padding: 8px 16px;
    color: var(--bc-jump-font-color, rgba(255,255,255,0.8)) !important;
    font-size: var(--bc-jump-font-size, 13px) !important;
    font-weight: 400;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.1s, color 0.1s;
}
.bc_jump_dropdown li a:hover {
    background: var(--bc-hover-color, var(--primary, #4f46e5));
    color: #fff !important;
    text-decoration: none !important;
}
.bc_jump_dropdown li.active a {
    background: #111;
    color: #fff !important;
    font-weight: 600;
}

/* 모바일 조정 */
@media only all and (max-width:767px) {
    .bc_jump_btn {
        width: 32px;
        height: 32px;
    }
    .bc_jump_btn svg {
        width: 18px;
        height: 18px;
    }
    .bc_jump_dropdown {
        min-width: 130px;
        max-width: 220px;
        max-height: 360px;
    }
    .bc_jump_dropdown li a {
        padding: 7px 14px;
        font-size: var(--bc-jump-font-size, 12px) !important;
    }
}

/* pos3 (이미지 밖) 경로의 점프메뉴: 밝은 테마 */
.stb_subtitle_area .bc_jump_dropdown {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.stb_subtitle_area .bc_jump_dropdown::before {
    border-bottom-color: #fff;
}
.stb_subtitle_area .bc_jump_dropdown li a {
    color: #374151 !important;
}
.stb_subtitle_area .bc_jump_dropdown li a:hover {
    background: var(--bc-hover-color, var(--primary, #4f46e5));
    color: #fff !important;
}
.stb_subtitle_area .bc_jump_dropdown li.active a {
    background: #222;
    color: #fff !important;
    font-weight: 600;
}
