/*********************************/
/* ===== BREADCRUMB STYLES ===== */

/* NAVBAR */
.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center; /* ⬅️ center items horizontally */
  flex-wrap: nowrap; /* keep them in a single line */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(0, 0, 0, 0.0004);
  backdrop-filter: blur(25px);
  color: #fff;
  padding: 0 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transform: translateY(0);
  transition: transform 0.3s ease;
  overflow: scroll;
  z-index: 1000;
}

.nav--hidden {
  transform: translateY(-100%); /* slide up out of view */
}

.all {
  padding: 80px 1.5rem 2rem; /* top padding so content isn't under nav */
  line-height: 1.7;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center; /* ⬅️ center the crumbs as a group */
  gap: 1rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 20px;
}

.breadcrumb-item {
  position: relative;
  display: flex;
  align-items: center;

  /* start hidden for animation */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* when JS adds this class, crumb fades/slides in */
.breadcrumb-item--visible {
  opacity: 1;
  transform: translateY(0);
}

.breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 184, 0.03),
    rgba(148, 163, 184, 0.33)
  );
  color: #fff;
  white-space: nowrap;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease, background 0.18s ease;
}

.breadcrumb-item a:hover {
  border-color: rgba(248, 250, 252, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.6);
}

/* ACTIVE (current page) crumb */
.breadcrumb-item.is-active a {
  background: linear-gradient(135deg, #7bdff2, teal);
  color: #050712;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.8);
}

/* chevron between crumbs (except first) */
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin: 0 0.25rem;
  color: rgba(148, 163, 184, 0.8);
  font-size: 0.8rem;
}

/* Back crumb gets a dot instead of chevron (cute divider) */
.breadcrumb-back::before {
  content: "•";
  font-size: 0.6rem;
  margin: 0 0.25rem;
  opacity: 0.6;
}

.crumb-icon {
  font-size: 0.9rem;
}

/* click pulse animation */
@keyframes crumb-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(123, 223, 242, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(123, 223, 242, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(123, 223, 242, 0);
  }
}

.breadcrumb-item--pulse a {
  animation: crumb-pulse 0.35s ease-out;
}

/* Small screen tweak */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .breadcrumb {
    padding-inline: 0.75rem;
  }
}
body {
  font-family: var(--font-base);
  /* NEW: layered wallpaper + theme gradient */
  background-image: var(--wallpaper-image), var(--bg);
  background-size: cover, auto;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-attachment: fixed, fixed;
  color: var(--ink);
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}
/* Your breadcrumb bar container */
.breadcrumb-bar {
  position: sticky; /* or fixed, depending on your layout */
  top: 0;
  z-index: 50;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hidden state on scroll down */
.breadcrumb-bar.breadcrumb-bar--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
