/**
 * Bengal SSG Default Theme
 * Tag & Badge Components
 */

/* ============================================
   TAGS
   ============================================ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: var(--leading-none);
  color: var(--color-primary);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast) var(--ease-out);
}

.tag:hover {
  color: var(--color-text-inverse);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  text-decoration: none;
}

/* ============================================
   TAG VARIANTS
   ============================================ */

.tag-primary {
  color: var(--color-text-inverse);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.tag-secondary {
  color: var(--color-text-inverse);
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.tag-outline {
  color: var(--color-primary);
  background-color: transparent;
  border-color: var(--color-primary);
}

.tag-outline:hover {
  color: var(--color-text-inverse);
  background-color: var(--color-primary);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: var(--leading-none);
  color: var(--color-text-inverse);
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
}

.badge-success {
  background-color: var(--color-success);
}

.badge-warning {
  background-color: var(--color-warning);
}

.badge-error {
  background-color: var(--color-error);
}

.badge-info {
  background-color: var(--color-info);
}

/* ============================================
   TAG LIST WITH ICON
   ============================================ */

.tag-with-icon {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

.tag-icon {
  width: 14px;
  height: 14px;
}
