/* Shared styles for the rendered bio profile — used by both the public
   page and the live preview inside the dashboard. */

.profile-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pf-font, 'Inter', sans-serif);
  --pf-accent: #3b82f6;
  --pf-text: #ffffff;
  --pf-glow: #3b82f6;
}

/* background layers */
.pf-bg,
.pf-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.pf-bg-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.25), rgba(0,0,0,0.72));
  pointer-events: none;
}
.pf-effect-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* card */
.pf-card {
  position: relative;
  z-index: 3;
  width: min(92%, 430px);
  padding: 34px 30px 28px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 18, calc(var(--pf-opacity, 85) / 100));
  backdrop-filter: blur(var(--pf-blur, 0px));
  -webkit-backdrop-filter: blur(var(--pf-blur, 0px));
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  text-align: center;
  color: var(--pf-text);
  animation: pfCardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes pfCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
}

.pf-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  background: #1a1a25;
  display: block;
}
.pf-card.glow .pf-avatar {
  border-color: var(--pf-glow);
  box-shadow: 0 0 30px -4px var(--pf-glow);
}
.pf-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--pf-accent);
}

.pf-name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.pf-card.glow .pf-name {
  text-shadow: 0 0 18px var(--pf-glow);
}
.pf-username {
  color: var(--pf-accent);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 2px;
}

.pf-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; justify-content: center; }
.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--pf-text);
}
.pf-badge.emoji-only { padding: 4px 7px; }
.pf-badge-emoji { font-size: 0.92rem; line-height: 1; }
.pf-badge.colored {
  background: color-mix(in srgb, var(--bc) 20%, transparent);
  border-color: var(--bc);
  color: var(--bc);
  box-shadow: 0 0 14px -4px var(--bc);
}

.pf-bio {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  margin: 14px auto 0;
  max-width: 340px;
  min-height: 1.2em;
  white-space: pre-wrap;
  word-break: break-word;
}
.pf-typewriter::after {
  content: '▍';
  color: var(--pf-accent);
  animation: pfBlink 1s steps(1) infinite;
}
@keyframes pfBlink { 50% { opacity: 0; } }

/* socials */
.pf-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.pf-social {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--pf-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.18s, background 0.2s, box-shadow 0.2s, color 0.2s;
}
.pf-social svg { width: 20px; height: 20px; }
.pf-social:hover {
  transform: translateY(-3px);
  background: var(--pf-accent);
  color: #fff;
  box-shadow: 0 8px 20px -6px var(--pf-accent);
}

/* links */
.pf-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.pf-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pf-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s, background 0.2s, border-color 0.2s;
}
.pf-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pf-accent);
}

/* views pill */
.pf-views {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}
.pf-views svg { width: 15px; height: 15px; opacity: 0.85; }

/* like button (diamond) */
.pf-like {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.pf-like:hover { background: rgba(0, 0, 0, 0.6); border-color: rgba(255, 255, 255, 0.2); }
.pf-like:active { transform: scale(0.94); }
.pf-like-ic { display: inline-flex; color: #fff; }
.pf-like-ic svg { width: 16px; height: 16px; display: block; }
.pf-like .d-body {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round; transition: fill 0.2s ease;
}
.pf-like.liked { color: var(--pf-accent); border-color: color-mix(in srgb, var(--pf-accent) 55%, transparent); }
.pf-like.liked .pf-like-ic { color: var(--pf-accent); filter: drop-shadow(0 0 6px var(--pf-accent)); }
.pf-like.liked .d-body { fill: var(--pf-accent); }
.pf-like.bump .pf-like-ic { animation: pfLikePop 0.32s ease; }
@keyframes pfLikePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-like.bump .pf-like-ic { animation: none; }
}

/* audio player */
.pf-audio {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  max-width: 240px;
}
.pf-audio-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--pf-accent);
  color: #fff;
  flex-shrink: 0;
}
.pf-audio-btn svg { width: 16px; height: 16px; }
.pf-audio-meta { min-width: 0; }
.pf-audio-title {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.pf-audio-vol {
  width: 60px;
  accent-color: var(--pf-accent);
  cursor: pointer;
}

/* splash */
.pf-splash {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  background: rgba(6, 6, 10, 0.55);
  backdrop-filter: blur(14px);
  transition: opacity 0.5s;
}
.pf-splash.hide { opacity: 0; pointer-events: none; }
.pf-splash-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: lowercase;
  animation: pfPulse 2s ease-in-out infinite;
}
.pf-splash-hint { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
@keyframes pfPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
