@use 'ui-design-system/src/styles/semantic/index' as *;

// Tokens available globally via main application styles

.ui-breadcrumb {
  display: flex;
  align-items: center;
  padding: $semantic-spacing-2 0; // 0.5rem vertical
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: $semantic-spacing-1; // 0.25rem
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: $semantic-spacing-2; // 0.5rem
  
  &:not(:last-child) {
    margin-right: $semantic-spacing-1; // 0.25rem
  }
}

.breadcrumb-link {
  font-family: $semantic-typography-font-family-sans;
  font-size: $semantic-typography-font-size-sm;
  font-weight: $semantic-typography-font-weight-normal;
  color: $semantic-color-text-secondary;
  text-decoration: none;
  line-height: $semantic-typography-line-height-normal;
  transition: color $semantic-motion-duration-fast ease;
  border-radius: $semantic-border-radius-sm;
  padding: $semantic-spacing-1 $semantic-spacing-1-5; // 0.25rem 0.375rem
  
  &:hover {
    color: $semantic-color-interactive-primary;
    background-color: $semantic-color-surface-hover;
  }
  
  &:focus-visible {
    outline: 2px solid $semantic-color-interactive-primary;
    outline-offset: 2px;
  }
  
  &:active {
    transform: scale(0.98);
  }
}

.breadcrumb-label {
  font-family: $semantic-typography-font-family-sans;
  font-size: $semantic-typography-font-size-sm;
  font-weight: $semantic-typography-font-weight-normal;
  color: $semantic-color-text-secondary;
  line-height: $semantic-typography-line-height-normal;
  padding: $semantic-spacing-1 $semantic-spacing-1-5; // 0.25rem 0.375rem
  
  &--current {
    color: $semantic-color-text-primary;
    font-weight: $semantic-typography-font-weight-medium;
  }
  
  &--disabled {
    opacity: $semantic-opacity-disabled;
    cursor: not-allowed;
  }
}

.breadcrumb-separator {
  color: $semantic-color-text-tertiary;
  font-size: $semantic-typography-font-size-xs;
  opacity: $semantic-opacity-heavy;
  margin: 0 $semantic-spacing-0-5; // 0 0.125rem
  
  svg {
    width: 12px;
    height: 12px;
  }
}

// Responsive design
@media (max-width: 768px) {
  .breadcrumb-list {
    gap: $semantic-spacing-0-5; // 0.125rem
  }
  
  .breadcrumb-item {
    gap: $semantic-spacing-1; // 0.25rem
    
    &:not(:last-child) {
      margin-right: $semantic-spacing-0-5; // 0.125rem
    }
  }
  
  .breadcrumb-link,
  .breadcrumb-label {
    font-size: $semantic-typography-font-size-xs;
    padding: $semantic-spacing-0-5 $semantic-spacing-1; // 0.125rem 0.25rem
  }
  
  .breadcrumb-separator {
    margin: 0 $semantic-spacing-0-5; // 0 0.125rem
    
    svg {
      width: 10px;
      height: 10px;
    }
  }
}