/* Social-feature components shared by friends, mentions, and notifications. */
.friends-section-title {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.friend-card,
.friend-request-card,
.friend-search-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(155, 93, 255, 0.08), transparent 42%),
    var(--surface-2);
}

.friend-card {
  padding: 16px;
}

.friend-card-head,
.friend-request-card,
.friend-search-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.friend-request-card,
.friend-search-card {
  padding: 12px;
}

.friend-avatar {
  width: 58px;
  height: 58px;
}

.friend-identity,
.friend-request-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.friend-identity p {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}

.friend-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.friend-stats > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.friend-stats strong {
  color: var(--cyan);
  font-size: 17px;
}

.friend-stats span {
  overflow: hidden;
  color: var(--text-2);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-actions {
  justify-content: space-between;
  margin-top: 14px;
}

.friend-request-compact .avatar {
  width: 38px;
  height: 38px;
}

@media (max-width: 420px) {
  .friend-request-card,
  .friend-search-card {
    flex-wrap: wrap;
  }

  .friend-request-card .action-row,
  .friend-search-card form {
    width: 100%;
  }

  .friend-request-card .button,
  .friend-search-card .button {
    width: 100%;
  }
}

.notification-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.notification-choice input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--violet);
}

.notification-choice span {
  display: grid;
  gap: 3px;
}

.notification-choice small {
  color: var(--text-2);
  line-height: 1.4;
}

.notification-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.notification-card.is-unread {
  border-color: rgba(5, 224, 255, 0.42);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.notification-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notification-copy span,
.notification-copy small {
  color: var(--text-2);
}

.notification-copy small {
  font-size: 11px;
}

.clip-mentions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.clip-mention {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
}

.clip-mention .avatar {
  width: 24px;
  height: 24px;
}
