/* ── JUMP System v4 — Obsidian Graph Style ── */

/* FAB */
.jump-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border: 3px solid #222;
  border-radius: 50%;
  background: #c7b8ea;
  color: #222;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 4px 4px 0px #222;
  transition: all 0.15s;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.jump-fab:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0px #222; }
.jump-fab:active { transform: translate(2px,2px); box-shadow: 1px 1px 0px #222; }
.jump-fab-icon { font-size: 1.5rem; line-height: 1; }

/* ch-title JUMP button */
.jump-ch-btn {
  float: right;
  border: 2px solid #222;
  border-radius: 8px;
  background: #c7b8ea;
  color: #222;
  padding: 1px 7px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 2px 2px 0px #222;
  transition: all 0.12s;
  line-height: 1.4;
  margin-top: -1px;
}
.jump-ch-btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0px #222; background: #b5a3d9; }
.jump-ch-btn:active { transform: translate(1px,1px); box-shadow: 0 0 0 #222; }

/* Overlay — Dark */
.jump-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d1117;
  display: none;
  flex-direction: column;
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
}
.jump-overlay.open { display: flex; }

/* Header — Dark */
.jump-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #161b22;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
  border-bottom: 1px solid #30363d;
}
.jump-close {
  width: 28px; height: 28px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.12s;
}
.jump-close:hover { background: #21262d; color: #fff; }
.jump-title {
  font-size: 0.82rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,0.85);
}

/* Breadcrumb */
.jump-breadcrumb {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.jump-bc-item {
  cursor: pointer;
  color: #58a6ff;
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
  border: none;
  background: none;
  padding: 2px 4px;
  font-family: inherit;
  border-radius: 4px;
  transition: all 0.12s;
}
.jump-bc-item:hover { background: rgba(88,166,255,0.15); }
.jump-bc-sep { color: #484f58; font-size: 0.65rem; flex-shrink: 0; }
.jump-bc-current { font-size: 0.65rem; font-weight: 600; color: rgba(255,255,255,0.8); white-space: nowrap; }

/* Depth Selector */
.jump-depth {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 4px;
}
.jump-depth-btn {
  width: 24px; height: 24px;
  border: 1px solid #30363d;
  border-radius: 5px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.12s;
}
.jump-depth-btn:hover { background: #21262d; color: #fff; }
.jump-depth-btn.active {
  background: #58a6ff;
  color: #0d1117;
  border-color: #58a6ff;
}

/* Topic Chips — Dark */
.jump-chips {
  display: flex;
  gap: 4px;
  padding: 5px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
  background: #0d1117;
  border-bottom: 1px solid #21262d;
}
.jump-chips::-webkit-scrollbar { display: none; }
.jump-chip {
  padding: 3px 10px;
  border: 1px solid #30363d;
  border-radius: 12px;
  background: #161b22;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.12s;
}
.jump-chip:hover { border-color: #58a6ff; color: #fff; }
.jump-chip.active { border-color: transparent; color: #000; font-weight: 700; }
.jump-chip.inactive { background: #161b22 !important; color: rgba(255,255,255,0.35) !important; border-color: #21262d; }

/* Canvas */
.jump-canvas-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #0d1117;
}
.jump-canvas-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.jump-canvas-wrap canvas:active { cursor: grabbing; }
.jump-hint {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  background: rgba(22,27,34,0.85);
  color: rgba(255,255,255,0.5);
  font-size: 0.6rem;
  border-radius: 8px;
  border: 1px solid #30363d;
  pointer-events: none;
  transition: opacity 0.5s;
}
.jump-hint.hidden { opacity: 0; }

/* Bottom Bar — Dark Glass */
.jump-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(22,27,34,0.92);
  border: 1px solid #30363d;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  z-index: 10;
  max-width: 90vw;
  transition: transform 0.2s ease-out;
  white-space: nowrap;
}
.jump-bar.show { transform: translateX(-50%) translateY(0); }
.jump-bar-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jump-bar-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.jump-bar-sep {
  width: 1px;
  height: 16px;
  background: #30363d;
  flex-shrink: 0;
}
.jump-bar-btn {
  width: 28px; height: 28px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #21262d;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.12s;
}
.jump-bar-btn:hover { background: #30363d; color: #fff; }
.jump-bar-btn.go { background: #238636; border-color: #238636; color: #fff; }
.jump-bar-btn.go:hover { background: #2ea043; }
.jump-bar-btn.globe { background: #21262d; }

/* Legend — Dark */
.jump-legend-popup {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 10px 14px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  z-index: 20;
  display: none;
  min-width: 140px;
}
.jump-legend-popup.show { display: block; }
.jump-legend-row {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 0; font-size: 0.65rem; font-weight: 500; color: rgba(255,255,255,0.7);
}
.jump-legend-line { width: 20px; height: 2px; border-radius: 1px; flex-shrink: 0; }

/* Mobile */
@media (max-width: 640px) {
  .jump-fab { width: 48px; height: 48px; bottom: max(16px, env(safe-area-inset-bottom, 16px)); right: 16px; }
  .jump-fab-icon { font-size: 1.3rem; }
  .jump-header { padding: 5px 10px; gap: 4px; }
  .jump-title { font-size: 0.75rem; }
  .jump-bc-item, .jump-bc-sep, .jump-bc-current { font-size: 0.58rem; }
  .jump-depth-btn { width: 20px; height: 20px; font-size: 0.58rem; }
  .jump-chips { padding: 4px 8px; gap: 3px; }
  .jump-chip { padding: 2px 7px; font-size: 0.58rem; }
  .jump-ch-btn { padding: 1px 5px; font-size: 0.6rem; }
  .jump-bar { padding: 5px 10px; gap: 4px; }
  .jump-bar-label { font-size: 0.62rem; max-width: 140px; }
  .jump-bar-btn { width: 24px; height: 24px; font-size: 0.7rem; }
}
