@use "sass:color";
@use "sass:map";
@use "../colors";

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;

  &.tags-compact {
    gap: 0.25rem;
  }

  &.tags-vertical {
    flex-direction: column;
    align-items: flex-start;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  background-color: rgba(map.get(colors.$palette, info), 0.1);
  color: map.get(colors.$palette, info);
  border-radius: 4px;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.125;
  padding: 0.25rem 0.625rem;
  transition: background-color 0.2s ease;

  a {
    color: var(--pico-color-azure-600);
    text-decoration: none;
    
    &:hover {
      color: var(--pico-color-azure-700);
      text-decoration: underline;
    }
  }

  &:hover {
    background-color: rgba(map.get(colors.$palette, info), 0.15);
  }

  &.tag-large {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  &.tag-small {
    padding: 0.125rem 0.375rem;
    font-size: 0.6875rem;
  }
} 