/* Block */
.breadcrumb {
  width: 100%;
}

/* Elements */
.breadcrumb__nav {
  width: 100%;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--aurore-spacing-sm);
  padding: var(--aurore-spacing-md) 0;
  flex-wrap: wrap;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: var(--aurore-spacing-sm);
  color: inherit;
  transition:
    color 0.3s ease,
    text-decoration 0.3s ease;
}

.breadcrumb__separator {
  display: flex;
  align-items: center;
  color: var(--e-global-color-accent);
}

/* Modifiers */
.breadcrumb__item--home {
  color: inherit;
}

.breadcrumb__item--current {
  color: var(--e-global-color-accent);
  pointer-events: none;
}

/* Theme Modifiers */
.breadcrumb--light {
  background-color: #ffffff;
  color: var(--e-global-color-text, #1b2132);
}

.breadcrumb--light .breadcrumb__item {
  color: var(--e-global-color-text, #1b2132);
}

.breadcrumb--dark {
  background-color: var(--e-global-color-primary, #be1e2e);
  color: #ffffff;
}

.breadcrumb--dark .breadcrumb__item {
  color: #ffffff;
}

.breadcrumb--dark .breadcrumb__item--current {
  color: var(--e-global-color-accent);
}

/* States */
/* Default hover behavior - change color and underline */
.breadcrumb__item:not(.breadcrumb__item--current):hover {
  color: var(--e-global-color-accent);
  text-decoration: underline;
}

/* No color change on hover, only underline */
.breadcrumb--no-hover-color .breadcrumb__item:not(.breadcrumb__item--current):hover {
  color: inherit; /* Keep the original color */
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .breadcrumb__list {
    gap: var(--aurore-spacing-xs);
  }

  .breadcrumb__item {
    font-size: 0.875rem;
  }
}
