/* ── Nav Path (breadcrumb-like trail with thumbnails) ── */

.nav-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 0 4px;
  max-width: var(--content-width, 1280px);
  margin: 0 auto;
  padding-left: var(--page-gutter, 20px);
  padding-right: var(--page-gutter, 20px);
  font-size: 0.84rem;
  line-height: 1.3;
}

/* Clickable ancestor item */
.nav-path__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 4px;
  border-radius: 20px;
  background: var(--color-surface, #f5f3f0);
  color: var(--color-text-secondary, #555);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
  max-width: 220px;
  white-space: nowrap;
}

.nav-path__item:hover {
  background: var(--color-surface-hover, #ebe8e4);
  color: var(--color-primary, #6c5ce7);
}

.nav-path__item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Current page (not a link) */
.nav-path__current {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 4px;
  border-radius: 20px;
  background: var(--color-surface, #f5f3f0);
  color: var(--color-text-primary, #222);
  font-weight: 500;
  max-width: 260px;
  white-space: nowrap;
}

.nav-path__current span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thumbnail (artwork preview, book cover, avatar) */
.nav-path__thumb {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Profile avatars get circular thumbnails */
.nav-path__item[href*="/Profile"] .nav-path__thumb,
.nav-path__current .nav-path__thumb {
  border-radius: 50%;
}

/* Fallback SVG icon when no thumbnail */
.nav-path__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
  margin-left: 4px;
}

/* Separator */
.nav-path__sep {
  color: var(--color-text-muted, #bbb);
  font-weight: 300;
  user-select: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-path {
    padding-top: 8px;
    gap: 4px;
    font-size: 0.8rem;
  }

  .nav-path__item,
  .nav-path__current {
    max-width: 150px;
  }

  .nav-path__thumb {
    width: 18px;
    height: 18px;
  }
}
