/* Profile Card Styles for MastoThreads */
.profile-card-popover {
  position: absolute;
  z-index: 100;
  min-width: 260px;
  max-width: 320px;
  background: #fff;
  color: #222;
  border-radius: 0.75rem;
  box-shadow: 0 4px 32px 0 rgba(80, 0, 120, 0.13), 0 1.5px 4px 0 rgba(80,0,120,0.04);
  border: 1px solid #ede9fe;
  padding: 1.25rem 1.5rem;
  font-size: 0.96rem;
  pointer-events: auto;
  transition: opacity 0.13s cubic-bezier(0.4,0,0.2,1);
  opacity: 0;
  visibility: hidden;
}
.profile-card-popover.visible {
  opacity: 1;
  visibility: visible;
}
.profile-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.profile-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #a78bfa;
}
.profile-card-displayname {
  font-weight: bold;
  font-size: 1.1rem;
  color: #7c3aed;
}

/* Username link in profile card and main UI */
.profile-card-trigger {
  color: #7c3aed;
  transition: color 0.13s;
}
@media (prefers-color-scheme: dark) {
  .profile-card-trigger {
    color: #fff !important;
  }
}
.profile-card-username {
  font-size: 0.98rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
}
.profile-card-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}
.profile-card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-card-stat-label {
  font-size: 0.80rem;
  color: #9ca3af;
}

.profile-card-stat-link {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.13s, text-decoration 0.13s;
}
.profile-card-stat-link:hover, .profile-card-stat-link:focus {
  color: #a78bfa;
  text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
  .profile-card-stat-link:hover, .profile-card-stat-link:focus {
    color: #c4b5fd;
  }
}

.profile-card-note {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.4rem;
}
.profile-card-fields {
  margin-top: 0.3rem;
  font-size: 0.92rem;
}
.profile-card-field {
  margin-bottom: 0.18rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.profile-card-field-name {
  color: #7c3aed;
  font-weight: 500;
}
.profile-card-field-value a {
  color: #6366f1;
  text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
  .profile-card-popover {
    background: #23223a;
    color: #e0e7ef;
    border: 1px solid #37306b;
    box-shadow: 0 4px 32px 0 rgba(80, 0, 120, 0.26), 0 1.5px 4px 0 rgba(80,0,120,0.09);
  }
}

.emoji-picker-popup {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px 0 rgba(80, 0, 120, 0.13), 0 1.5px 4px 0 rgba(80,0,120,0.09);
  border: 1px solid #e0e0f0;
  padding: 10px 10px 6px 10px;
  max-width: 350px;
  max-height: 260px;
  overflow: auto;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  pointer-events: none;
  transition: opacity 0.16s cubic-bezier(0.4,0,0.2,1), transform 0.18s cubic-bezier(0.4,0,0.2,1);
}
.emoji-picker-popup.emoji-picker-animate-in {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 32px);
  gap: 10px;
}
.emoji-btn {
  background: none;
  border: none;
  padding: 4px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.13s;
}
.emoji-btn:hover, .emoji-btn:focus {
  background: #ede9fe;
}
.emoji-picker-popup img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  margin: auto;
}
@media (prefers-color-scheme: dark) {
  .emoji-picker-popup {
    background: #23223a;
    border: 1px solid #37306b;
    box-shadow: 0 4px 32px 0 rgba(80, 0, 120, 0.26), 0 1.5px 4px 0 rgba(80,0,120,0.09);
  }
  .emoji-btn:hover, .emoji-btn:focus {
    background: #3b3179;
  }
}

  .profile-card-displayname {
    color: #c4b5fd;
  }
  .profile-card-field-name {
    color: #c4b5fd;
  }
  .profile-card-field-value a {
    color: #a5b4fc;
  }
  .profile-card-stat-label {
    color: #a3a3b3;
  }
  .profile-card-note {
    color: #d1d5db;
  }