/* =============================================================================
   Role Badge Component
   Shared visual role indicators used across all content surfaces.
   Requirement: 2.6, 2.11 — consistent badge rendering platform-wide.
   Regression: 3.5 — artist colour #e94560 matches existing bi-patch-check-fill
   ============================================================================= */

.role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  line-height: 1;
  margin-left: 3px;
  vertical-align: middle;
}

.role-badge--artist   { color: #e94560; }
.role-badge--admin    { color: #f59e0b; }
.role-badge--investor { color: #10b981; }
.role-badge--fan      { color: #6366f1; }

/* =============================================================================
   Badge Cluster — wraps primary badge + privilege dot row
   Requirements: 1.7, 2.7
   ============================================================================= */

.badge-cluster {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
}

/* =============================================================================
   Role Dot Row — sequence of coloured privilege dots beside the name
   ============================================================================= */

.role-dot-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: middle;
}

/* =============================================================================
   Role Dot — single coloured SVG checkmark circle
   ============================================================================= */

.role-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  line-height: 1;
  transition: transform 0.1s;
}
.role-dot:hover {
  transform: scale(1.2);
}
.role-dot svg {
  display: block;
  width: 14px;
  height: 14px;
}

/* =============================================================================
   Discovery Group Label — sidebar section headers in People to Follow
   Requirements: 4.7
   ============================================================================= */

.discovery-group__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #8a8d91;
  margin: 14px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
}

/* Fan-card context-action links (Listen / Shop) */
.fan-card__action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  text-decoration: none;
  margin-top: 3px;
  transition: opacity 0.12s;
}
.fan-card__action-link:hover { opacity: 0.75; }
.fan-card__action-link--listen {
  background: #f3f0ff;
  color: #7c3aed;
}
.fan-card__action-link--shop {
  background: #fef3c7;
  color: #92400e;
}

/* Sidebar follow button — lighter weight than feed follow buttons */
.social-sidebar--right .social-follow-btn {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: #f0f2f5;
  color: #050505;
  border: 1px solid #dddfe2;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}
.social-sidebar--right .social-follow-btn:hover {
  background: #e4e6eb;
}
.social-sidebar--right .social-follow-btn.is-following {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #c8e6c9;
}


/* Premium crown — keep it tight inside the badge span */
.role-badge__crown {
  margin-left: 2px;
  font-size: 0.8em;
  line-height: 1;
}

/* Ensure badge and dot row render inline within name links */
.social-artist-row__name,
.fan-card__name,
.social-post__author,
.profile-header__name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* Role badge — consistent inline sizing, sentence-case */
.role-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0.01em;
}
.role-badge .bi {
  font-size: 0.75em;
}
.role-badge__label {
  margin-left: 2px;
  text-transform: none;
}

/* =============================================================================
   Creator Tick — single gold badge for premium multi-privilege users
   Shows: ✓ Artist  /  ✓ Author  /  ✓ Seller  /  ✓ Creator (default)
   ============================================================================= */

.creator-tick {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 99px;
  padding: 1px 7px 1px 3px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #92400e;
  white-space: nowrap;
  vertical-align: middle;
  cursor: default;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.creator-tick__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.creator-tick__label {
  /* inherits from .creator-tick */
}
