/* Screen 5: Person / Nightlife Profile
   Reuses the Venue Detail top bar (.vd-topbar), rings (.vd-match-ring),
   section heads and video cards (.vd-moment) so both screens feel the same. */

.person-scroll {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: var(--nav-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.person-scroll::-webkit-scrollbar { display: none; }
.pp-top-actions { display: flex; gap: 8px; flex: none; }
.pp-safety { color: var(--accent-light); }

/* ---------- Hero ---------- */
.pp-hero {
  position: relative;
  height: calc(var(--status-h) + env(safe-area-inset-top, 0px) + 440px);
  overflow: hidden;
  background: #0d0a14;
  isolation: isolate;
}
.pp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.pp-hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 4, 7, 0.5), transparent 25%, transparent 50%, var(--bg) 98%);
  pointer-events: none;   /* taps reach the photo underneath */
}
.pp-hero-text {
  pointer-events: none;   /* only its pill is tappable; the rest lets taps reach the photo */
  position: absolute; left: 0; right: 0; bottom: 8px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.pp-match {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 6, 14, 0.6);
  border: 1px solid rgba(185, 139, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #d9d5e3;
}
.pp-match b { color: var(--fg); font-size: 13px; letter-spacing: 0.02em; }
.pp-match.strong { background: rgba(157, 92, 255, 0.55); box-shadow: 0 0 20px rgba(157, 92, 255, 0.5); color: #fff; }
.pp-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px; font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.pp-name span { font-family: var(--font-body); font-weight: 500; font-size: 28px; text-transform: none; color: #d9d5e3; }

/* ---------- Body ---------- */
.pp-body {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 10px;
  padding-bottom: 100px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.pp-section { display: flex; flex-direction: column; gap: 10px; }
.pp-section .vd-section-head { margin-bottom: 0; }
.pp-card {
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* nightlife identity tags: quieter than buttons, more like a signature */
.pp-vibe { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-vibe-tag {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.16), rgba(18, 16, 25, 0.9));
  border: 1px solid rgba(185, 139, 255, 0.28);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- Why you vibe ---------- */
.pp-why {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(157, 92, 255, 0.22), transparent 60%),
    var(--surface);
  border-color: rgba(185, 139, 255, 0.35);
  display: flex; flex-direction: column; gap: 16px;
}
.pp-why-top { display: flex; align-items: center; gap: 16px; }
.pp-ring { width: 74px; height: 74px; }
.pp-ring b { font-size: 19px; }
.pp-why-title { margin: 4px 0 0; font-size: 18px; font-weight: 800; }
.pp-why-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.pp-why-cols > div { min-width: 0; }
.pp-why-label { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pp-why-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-why-cols li { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; }
.pp-why-cols svg { flex: none; width: 15px; height: 15px; color: var(--accent-light); }
.pp-link { font-weight: 700; color: var(--fg); border-bottom: 1px solid rgba(185, 139, 255, 0.45); text-align: left; }
.pp-link:hover { color: var(--accent-light); }
.pp-link.strong { font-size: 15px; font-weight: 800; }

/* ---------- Your paths (timeline) ---------- */
.pp-paths-count { margin: -4px 0 14px; font-size: 14px; color: #d9d5e3; }
.pp-paths-count b { color: var(--accent-light); }
.pp-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pp-timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.pp-timeline li:last-child { padding-bottom: 0; }
.pp-timeline li:not(:last-child)::before {
  content: "";
  position: absolute; left: 13px; top: 30px; bottom: 2px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(185, 139, 255, 0.5), rgba(185, 139, 255, 0.1));
}
.pp-node {
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(185, 139, 255, 0.5);
  font-size: 12px; font-weight: 800; color: var(--accent-light);
}
.pp-timeline li:first-child .pp-node { background: var(--accent); color: #fff; box-shadow: 0 0 14px var(--glow); }
.pp-timeline p { margin: 3px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.pp-card .cp-note { margin-top: 14px !important; }

/* ---------- Favorite spots ---------- */
.pp-row {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.pp-row::-webkit-scrollbar { display: none; }
.pp-spot {
  flex: none;
  width: 150px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 3px;
  padding: 8px 8px 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
}
.pp-spot-img { display: block; height: 96px; border-radius: 14px; overflow: hidden; background: #0d0a14; margin-bottom: 6px; }
.pp-spot-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-spot-name { padding-inline: 4px; font-size: 14px; font-weight: 800; }
.pp-spot-vibe { padding-inline: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Nightlife DNA preview ---------- */
.pp-preview-tag {
  margin-left: auto;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.pp-dna { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pp-dna li { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 10px; }
.pp-dna-label { font-size: 13px; font-weight: 700; color: #d9d5e3; }
.pp-dna-bar { height: 6px; border-radius: 3px; background: #241f33; overflow: hidden; }
.pp-dna-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #d2b6ff); box-shadow: 0 0 10px var(--glow); }
.pp-dna b { font-size: 13px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Social context ---------- */
.pp-social {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 20px;
  border: 1px solid var(--line);
}
.pp-social div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; text-align: center; }
.pp-social div + div { border-left: 1px solid var(--line); }
.pp-social b { font-size: 18px; font-weight: 800; color: var(--accent-light); }
.pp-social span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- Sticky actions ---------- */
.pp-sticky {
  position: absolute; left: 0; right: 0;
  bottom: var(--nav-h);
  z-index: 4;
  padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px;
  background: rgba(8, 6, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.pp-sticky .btn { min-height: 48px; border-radius: 15px; }
.pp-hi-slot { display: grid; }

/* ---------- Options sheet ---------- */
.pp-options { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.pp-options-title { margin: 0 0 4px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 700; }
.pp-option {
  min-height: 50px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px; font-weight: 800;
}
.pp-option.danger { color: #ff8fa3; }
.pp-more-link { margin-top: 12px; }
.pp-social > div[data-hint]:active { background: rgba(157, 92, 255, 0.08); border-radius: 12px; }
.pp-hero img[data-pp="photo"] { cursor: zoom-in; }
button.pp-match { cursor: pointer; }
button.pp-match:active { transform: scale(0.96); }
.pp-hero-text .pp-match { pointer-events: auto; }
button.pp-match { position: relative; }
button.pp-match::before { content: ""; position: absolute; inset: -6px -4px; }
