/* ── 하단 내비게이션 바 ── */

/* 하단 내비가 가려지지 않도록 body 하단 여백 확보 */
body {
  padding-bottom: calc(52px + env(safe-area-inset-bottom));
}

/* 내비게이션 바 컨테이너 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;

  /* ── VT API: 페이지 전환 중 nav를 별도 레이어로 분리하여 제자리 고정 ── */
  view-transition-name: bottom-nav;

  display: flex;
  align-items: stretch;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.07);

  /* iOS Safe Area 대응 */
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(52px + env(safe-area-inset-bottom));
}

/* 각 탭 아이템 */
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 0 4px;
  cursor: pointer;
  text-decoration: none;
  color: #9ca3af; /* 기본: 회색 */
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: transparent; /* 모바일 탭 하이라이트 제거 */
  user-select: none;
}

/* 탭 아이콘 */
.bottom-nav__icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bottom-nav__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.18s ease;
}

/* 탭 레이블 */
.bottom-nav__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

/* 활성 탭 */
.bottom-nav__item.active {
  color: #7c3aed; /* 보라색 포인트 */
}

/* 활성 탭 아이콘 살짝 커지는 효과 */
.bottom-nav__item.active .bottom-nav__icon svg {
  transform: scale(1.08);
}

/* 탭 클릭 시 피드백 */
.bottom-nav__item:active .bottom-nav__icon svg {
  transform: scale(0.9);
}

/* 찜 탭 — 뱃지 (찜 개수 표시) */
.bottom-nav__badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  display: none; /* JS로 카운트 있을 때만 표시 */
}
.bottom-nav__badge.visible {
  display: block;
}

/* ── PC/모바일 모두 표시 ── */
