/* Quick Profile - Minimal styles for popup sizing and social links */

.quick-profile {
  overflow-wrap: anywhere; /* a 100-character unbroken name still fits the card */
  width: 320px;
}

.quick-profile__identity {
  min-width: 0;
}

.quick-profile__name {
  font-size: 1rem;
  line-height: 1.2;
}

.quick-profile__status {
  color: var(--color-text-subtle);
  font-size: 0.78125rem;
  line-height: 1.3;
  margin-block-start: 2px;
}

.quick-profile__bio {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--color-text-lighter);
  display: -webkit-box;
  font-size: 0.84375rem;
  line-height: 1.55;
  margin-block-start: 6px;
  overflow: hidden;
}

.quick-profile__stats-values {
  gap: 18px;

  .txt-medium {
    font-size: 0.9375rem;
  }

  .txt-x-small {
    font-size: 0.65625rem;
    letter-spacing: 0.04em;
  }
}

/* Avatar frame: a non-clipping wrapper so the presence dot can overhang the
   avatar's rounded corner (the .avatar itself is overflow:hidden). */
.quick-profile__avatar {
  --avatar-size: 52px;
  position: relative;
  flex: none;
  display: inline-flex;
}

.quick-profile__avatar--muted {
  opacity: 0.55;
}

.quick-profile__dot {
  position: absolute;
  inset-inline-end: -2px;
  inset-block-end: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--color-bg);
  box-sizing: border-box;
}

/* Footer actions share the width evenly. */
.quick-profile__actions > .btn {
  flex: 1;
  font-size: 0.8125rem;
}

/* Social link base styles (full profile page) */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--control-padding);
  border-radius: var(--control-radius);
  background-color: var(--control-bg);
  border: 1px solid var(--control-border);
}

.social-link img {
  width: 20px;
  height: 20px;
  filter: var(--icon-filter);
}

.social-link:hover {
  background-color: var(--control-bg-hover);
}

/* Social link compact styles (quick profile popup) */
.quick-profile .social-link {
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: none;
  transition: background-color 120ms ease;
}

.quick-profile .social-link img {
  width: 16px;
  height: 16px;
  filter: none;
}

.quick-profile .social-link:hover {
  background: var(--color-bg-hover);
}

/* Popup menu sizing */
.message__avatar-menu:has(.quick-profile),
div[data-popup-target="menu"]:has(.quick-profile) {
  width: auto;
  min-width: 0;
  max-width: none;
  padding: var(--block-space) var(--inline-space);
}
