/* User profile popup — handle, posts, models, meeting request */

.user-profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 6200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.user-profile-overlay.hidden {
  display: none !important;
}

.user-profile-card {
  width: min(520px, 96vw);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, #1a2230 0%, #0d131c 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #e8edf4;
  padding: 18px 18px 16px;
}

.user-profile-close {
  float: right;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
}

.user-profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.user-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #111827;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: #7dd3fc;
  flex: 0 0 auto;
}

.user-profile-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.user-profile-handle {
  color: #7dd3fc;
  font-weight: 700;
  font-size: 0.92rem;
}

.user-profile-bio {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.user-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.user-profile-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.user-profile-section h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.user-profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.user-profile-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.86rem;
}

.user-profile-list a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 650;
}

.user-profile-list a:hover {
  color: #7dd3fc;
}

.user-profile-meeting {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.user-profile-meeting textarea,
.user-profile-meeting input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 14, 0.55);
  color: #e8edf4;
  padding: 8px 10px;
  font: inherit;
}

.user-profile-meeting textarea {
  min-height: 72px;
  resize: vertical;
}

.user-profile-empty {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
}

.pc-mention {
  cursor: pointer;
}

.pc-mention:hover .pc-mention-label {
  text-decoration: underline;
}

.profile-handle-field-prefix {
  color: #7dd3fc;
  font-weight: 700;
  margin-right: 2px;
}

.user-profile-status {
  margin: -4px 0 12px;
  color: #7dd3fc;
  font-size: 0.85rem;
}

.user-profile-meeting select,
.user-profile-meeting input[type="datetime-local"] {
  width: 100%;
  margin-bottom: 8px;
  background: #0d1117;
  border: 1px solid rgba(48, 54, 61, 0.95);
  border-radius: 8px;
  color: #e6edf3;
  padding: 8px;
}
