/*
  Discord-style intro block shown at the top of a direct-DM scroller when
  we're at the beginning of the message history. Renders once per DM,
  before any message-group, so the empty state and loaded-history share
  the same visual landing.

  Contract: a single `.dm-intro` root with avatar + title + username +
  tagline + optional mutual-context block + quick-action buttons. All
  colors/spacing route through existing DS tokens.
*/

.dm-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.dm-intro-avatar {
  width: var(--avatar-2xl);
  height: var(--avatar-2xl);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dm-intro-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.dm-intro-username {
  font-size: var(--font-md);
  color: var(--ink-secondary);
  margin: 0;
}

.dm-intro-tagline {
  max-width: 480px;
  font-size: var(--font-md);
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

.dm-intro-mutuals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.dm-intro-mutual {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--glass);
  font-size: var(--font-xs);
  color: var(--ink-secondary);
}

.dm-intro-mutual svg {
  width: 14px;
  height: 14px;
}

.dm-intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.dm-intro-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--ink);
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.dm-intro-btn:hover {
  background: var(--glass-hover);
}

.dm-intro-btn.primary {
  background: var(--accent);
  color: var(--color-white-100);
}

.dm-intro-btn.primary:hover {
  background: var(--accent-hover);
}

.dm-intro-btn.danger {
  color: var(--coral);
}

.dm-intro-btn.danger:hover {
  background: var(--coral-soft);
}

.dm-intro-btn svg {
  width: 14px;
  height: 14px;
}
