/* ==========================================================================
   profile.css — Member profile page (extends style.css)
   Full-screen cinematic background + centered glass sanctuary
   ========================================================================== */

.profile-page .bg-root { z-index: -6; }
.profile-page .bg-media { filter: saturate(0.40) contrast(1.08) brightness(0.88); }

/* Back link — floating glass pill */
.back-link {
  position: fixed;
  top: 18px; left: 18px;
  z-index: 30;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
}
.back-link:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.20); color: #fff; box-shadow: 0 0 16px rgba(255,255,255,0.08); }

/* Sanctuary layout — asymmetric, not generic card grid */
.sanctuary {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 16px 120px;
}
.sanctuary-inner {
  width: min(760px, 96vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Hero glass — layered depth */
.profile-hero {
  padding: 28px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.profile-hero::after {
  content: "";
  position: absolute;
  top: -60%; left: -30%;
  width: 60%; height: 200%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.06) 50%, transparent 65%);
  transform: rotate(8deg);
  animation: sweep 7s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.35;
}
.profile-hero-top {
  display: flex; gap: 22px; align-items: flex-start;
}
@media (max-width: 640px) {
  .profile-hero-top { flex-direction: column; align-items: center; text-align: center; }
}
.profile-avatar-wrap {
  position: relative; flex-shrink: 0;
}
.profile-avatar {
  width: 118px; height: 118px;
  border-radius: 26px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 14px 36px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.profile-avatar:hover { transform: scale(1.03) rotate(0.6deg); }
.profile-avatar-wrap .presence-dot {
  width: 18px; height: 18px;
  right: 4px; bottom: 4px;
  border-width: 3px;
}
.profile-avatar-glow {
  position: absolute; inset: -10px;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14), transparent 72%);
  filter: blur(14px);
  z-index: -1;
}
.profile-meta { flex: 1; min-width: 0; }
.profile-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.50), 0 0 30px rgba(255,255,255,0.22);
  letter-spacing: 0.06em;
  line-height: 1;
}
.profile-username {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.profile-title {
  margin-top: 10px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  text-shadow: 0 0 6px rgba(255,255,255,0.28);
}
.profile-badges { margin-top: 12px; }

/* Typing bio — elegant, not neon */
.bio-panel {
  padding: 20px 22px;
  border-radius: 18px;
  min-height: 88px;
}
.bio-text {
  font-size: 1.02rem;
  line-height: 1.72;
  color: #e6e6ea;
  font-weight: 400;
}
.bio-text .typing-cursor {
  width: 2px; height: 1.08em;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 8px rgba(255,255,255,0.85);
}

/* Socials — only rendered when present */
.social-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.84);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.32s ease;
}
.social-pill:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); color: #fff; transform: translateY(-1px); box-shadow: 0 0 14px rgba(255,255,255,0.08); }
.social-pill i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.8); display: inline-block; }

/* Details row (ID, hierarchy) */
.detail-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 560px) { .detail-row { grid-template-columns: 1fr; } }
.detail-card {
  padding: 14px 16px;
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.detail-label { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.detail-value { font-size: 0.84rem; color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.22); word-break: break-all; }

/* Error state (dark, not bright) */
.error-panel {
  padding: 28px;
  border-radius: 18px;
  text-align: center;
}
.error-panel h2 { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.35); }
