/* Mymoods Breadcrumb Styles */
.mymoods-breadcrumb {
  background-color: #f5f5f5;
  padding: 15px 0;
  font-size: 1.3rem;
}

.mymoods-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 15px;
  gap: 0.5rem;
}

.mymoods-breadcrumb__item {
  display: flex;
  align-items: center;
  color: #919191;
}

/* Separator between items */
.mymoods-breadcrumb__item:not(:last-child)::after {
  content: "|";
  margin: 0 0.8rem;
  color: #999;
  font-weight: 300;
}

.mymoods-breadcrumb__link {
  color: #7e9b70;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

/* Current item (no link) */
.mymoods-breadcrumb__item--current span {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* Mobile styles */
@media screen and (max-width: 749px) {
  .mymoods-breadcrumb {
    font-size: 1.2rem;
    padding: 0.8rem 0;
  }

  .mymoods-breadcrumb__list {
    gap: 0.3rem;
    padding: 0;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .mymoods-breadcrumb__list * {
    flex-shrink: 0;
  }

  .mymoods-breadcrumb__item:not(:last-child)::after {
    margin: 0 0.5rem;
  }

  .mymoods-breadcrumb__item--current span {
    max-width: 200px;
  }
}

/* Dark mode / color scheme support */
.color-inverse .mymoods-breadcrumb {
  background-color: rgb(var(--color-background));
  border-bottom-color: rgba(var(--color-foreground), 0.1);
}

.color-inverse .mymoods-breadcrumb__link {
  color: rgba(var(--color-foreground), 0.75);
}

.color-inverse .mymoods-breadcrumb__link:hover {
  color: rgb(var(--color-foreground));
}

.color-inverse .mymoods-breadcrumb__item {
  color: rgba(var(--color-foreground), 0.75);
}

.color-inverse .mymoods-breadcrumb__item--current {
  color: rgb(var(--color-foreground));
}

/* Maintain green color for home link in dark mode */
.color-inverse .mymoods-breadcrumb__link--home {
  color: #3abb1e;
}

.color-inverse .mymoods-breadcrumb__link--home:hover {
  color: #4ed530;
}
