/* 검색창 wrapper - 위치는 페이지에서 조절 */
.global-search-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 50;
}

/* 검색창 스타일 (index 그대로) */
.global-search-input {
  width: 300px;
  padding: 14px 20px;
  font-size: 18px;
  background: #11141c;
  border: 2px solid #2a2f3a;
  border-radius: 12px;
  transition: all 0.25s ease;
  color: #e5e7eb;
}
.global-search-input:focus {
  width: 520px;
  background: #171c26;
  border-color: #4ea9ff;
  outline: none;
}

/* ============================
   🔥 검색 패널 전체 스크롤 적용
=============================== */
.global-search-panel {
  position: absolute;
  top: 60px;
  width: 520px;

  left: 50%;
  transform: translateX(-50%);

  background: #0f1218;
  border: 1px solid #2f3542;
  border-radius: 12px;
  padding: 14px;

  opacity: 0;
  pointer-events: none;

  transform: translate(-50%, -6px);
  transition: all 0.18s ease;

  /* 스크롤 */
  max-height: 420px;
  overflow-y: auto;
}

/* 나타나는 애니메이션 */
.global-search-panel.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* 스크롤바 디자인 */
.global-search-panel::-webkit-scrollbar {
  width: 6px;
}
.global-search-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
}
.global-search-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* 제목 행 */
.title-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #8892a5;
  margin-bottom: 6px;
}

/* 리스트 */
.search-section div {
  padding: 5px 4px;
  border-radius: 6px;
  cursor: pointer;
}
.search-section div:hover {
  background: rgba(255,255,255,0.06);
}

/* 자동완성 항목 */
.search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
}
.search-item:hover {
  background: rgba(255,255,255,0.06);
}

.search-item img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
