.snake-breadcrumb {
  font-family: var(--font-family);
  position: relative;
}

.snake-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-xs);
}

.snake-breadcrumb__list-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Item */
.snake-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: #8e8e90;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  padding: 2px 4px;
}

/* Link items */
a.snake-breadcrumb__item {
  cursor: pointer;
}

a.snake-breadcrumb__item:hover {
  color: var(--color-text-primary);
  background-color: rgba(31, 29, 32, 0.4);
}

a.snake-breadcrumb__item:active {
  opacity: 0.8;
}

/* Current/last item */
.snake-breadcrumb__item--current {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

/* Disabled item (ellipsis) */
.snake-breadcrumb__item--disabled {
  cursor: default;
  opacity: 0.5;
}

/* Focus state */
a.snake-breadcrumb__item:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-bg-base),
    0 0 0 4px rgba(189, 189, 189, 0.3);
}

/* Icon */
.snake-breadcrumb__icon {
  display: flex;
  align-items: center;
  font-size: 1.1em;
}

/* Text */
.snake-breadcrumb__text {
  white-space: nowrap;
}

/* Separator */
.snake-breadcrumb__separator {
  color: #4a4a4a;
  font-size: 0.9em;
  user-select: none;
  padding: 0 2px;
}

/* Sizes */
.snake-breadcrumb--small {
  font-size: var(--font-size-sm);
}

.snake-breadcrumb--small .snake-breadcrumb__list {
  gap: 4px;
}

.snake-breadcrumb--small .snake-breadcrumb__item {
  padding: 1px 3px;
}

.snake-breadcrumb--medium {
  font-size: var(--font-size-base);
}

.snake-breadcrumb--large {
  font-size: var(--font-size-lg);
}

.snake-breadcrumb--large .snake-breadcrumb__list {
  gap: var(--spacing-sm);
}

.snake-breadcrumb--large .snake-breadcrumb__item {
  padding: 3px 6px;
}

/* Hover effect with corner decoration */
a.snake-breadcrumb__item::before,
a.snake-breadcrumb__item::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid var(--color-text-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

a.snake-breadcrumb__item::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

a.snake-breadcrumb__item::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

a.snake-breadcrumb__item:hover::before,
a.snake-breadcrumb__item:hover::after {
  opacity: 0.5;
}

/* Alternative separator styles */
.snake-breadcrumb__separator--chevron {
  font-family: inherit;
}

.snake-breadcrumb__separator--arrow {
  font-size: 0.8em;
}

.snake-breadcrumb__separator--dot {
  font-size: 0.6em;
  vertical-align: middle;
}
