/*
 * Bot Hound — Shared Bot Card Styles
 *
 * Reusable avatar / name / handle / probability / reason-pill styles
 * shared across portal, vetting, and server-rendered report pages.
 * Requires theme.css to be loaded first.
 *
 * Class prefix: bc-
 */

/* ============================================================
   1. Card container
   ============================================================ */

.bc-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bc-card--sm {
  gap: 0.5rem;
}

.bc-card--lg {
  gap: 0.75rem;
}

/* ============================================================
   2. Avatar
   ============================================================ */

.bc-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bc-avatar--sm {
  width: 32px;
  height: 32px;
}

.bc-avatar--lg {
  width: 64px;
  height: 64px;
  border: 2px solid var(--color-border-muted);
  transition: border-color 0.15s;
}

.bc-avatar--lg:hover {
  border-color: var(--color-accent-teal);
}

.bc-avatar-link {
  flex-shrink: 0;
  text-decoration: none;
}

.bc-avatar-fallback {
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-text-muted);
}

.bc-avatar-fallback--sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.bc-avatar-fallback--lg {
  width: 64px;
  height: 64px;
  font-size: 1rem;
  border: 1px solid var(--color-border-default);
}

/* ============================================================
   3. Identity — name + handle
   ============================================================ */

.bc-name {
  display: block;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-name a {
  color: inherit;
  text-decoration: none;
}

.bc-name a:hover {
  text-decoration: underline;
}

.bc-name--sm {
  font-size: 0.95rem;
}

.bc-name--lg {
  font-size: 18px;
}

/* Inline name variant (report bot cards — no block display) */
.bc-name--inline {
  display: inline;
  font-size: 14px;
  max-width: 160px;
}

.bc-handle {
  display: block;
  color: var(--color-accent-teal);
  text-decoration: none;
}

.bc-handle a {
  color: inherit;
  text-decoration: none;
}

.bc-handle a:hover {
  text-decoration: underline;
}

.bc-handle--sm {
  font-size: 0.85rem;
}

.bc-handle--lg {
  font-size: 14px;
}

/* Inline handle variant (report bot cards) */
.bc-handle--inline {
  display: inline;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   4. Probability badge
   ============================================================ */

.bc-prob {
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 8px;
  white-space: nowrap;
}

.bc-prob--low {
  color: var(--color-score-real);
  background: rgba(22, 163, 74, 0.15);
}

.bc-prob--mid {
  color: var(--color-score-suspect);
  background: rgba(234, 179, 8, 0.15);
}

.bc-prob--high {
  color: var(--color-score-bot);
  background: rgba(239, 68, 68, 0.15);
}

/* ============================================================
   5. Reason pills
   ============================================================ */

.bc-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bc-reason {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 3px;
  background: #f5f0ee;
  color: #78716c;
  white-space: nowrap;
}
