/* ============================================================
   Model profile — customer_fanclub_v2.html

   Geometry from the refined Claude Design prototype's Model profile
   screen. The four .profile-stat boxes come from the earlier
   customer-site prototype and keep its proportions.
   ============================================================ */

.profile-back { margin-bottom: 14px; }

/* ------------------------------------------------------------------
   HEADER BAND
   ------------------------------------------------------------------ */
.profile-head {
  /* Reset the earlier prototype's flex/negative-margin profile shell from
     pages.css. V2 owns a full-width banner plus a separate overlay row. */
  display: block;
  padding: 0;
  margin-top: 0;
  margin-bottom: 22px;
}

.profile-banner {
  position: relative;
  width: 100%;
  height: 225px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-position: center 28%;
  box-shadow: var(--shadow);
}

.profile-banner.has-bio-header {
  /* Keep a neutral fallback visible while a remote GIF/image is loading. */
  background-color: var(--card-alt);
}

/* Darkens the lower half so the avatar ring and plate edge stay legible
   whatever the banner turns out to be. */
.profile-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 22, .38));
}

.profile-head__row {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 30px;
  margin-top: -48px;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  flex: none;
  background-position: center 18%;
  border: 4px solid var(--surface);
  font-size: var(--text-2xl);
}

/* Frosted plate — see the note in the template for why this is not just
   text over the banner. */
.profile-plate {
  flex: 1;
  min-width: 240px;
  padding: 11px 16px 12px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}

.profile-plate__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.3px;
}

.profile-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--online) 13%, transparent);
  color: var(--online);
  font-size: 12px;
  font-weight: 700;
}
.profile-live .dot { animation: pulse 1.8s infinite; }

.profile-tagline {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.profile-tagline:empty { display: none; }
.profile-tagline,
.profile-loc,
.profile-last-online,
.profile-detail__value,
.profile-about__bio {
  overflow-wrap: anywhere;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 9px;
  min-width: 0;
  margin-top: 5px;
}
.profile-meta-row[hidden] { display: none; }

.profile-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.profile-loc svg { flex: none; }
.profile-loc:not(.is-shown) { display: none; }

.profile-last-online {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.profile-last-online[hidden] { display: none; }
.profile-loc:not(.is-shown) + .profile-last-online .profile-meta-separator {
  display: none;
}

/* ---- action row --------------------------------------------------- */
.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding-bottom: 10px;
}

.profile-join { padding: 10px 20px; font-size: 13.5px; }

.profile-member {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--online) 12%, transparent);
  color: var(--online);
  font-weight: 700;
  font-size: 12.5px;
}

.profile-public-offer {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-public-offer__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-public-offer__fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.profile-public-offer__fact strong {
  color: var(--ink);
  font-weight: 700;
}

.profile-fav {
  width: 38px;
  height: 38px;
  cursor: default;
  pointer-events: none;
}
.profile-fav.is-favorite {
  color: var(--heart);
  border-color: color-mix(in srgb, var(--heart) 48%, var(--line));
  background: color-mix(in srgb, var(--heart) 9%, var(--surface));
}

.profile-action--disabled,
.profile-action--disabled:hover {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink-soft);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .72;
}

/* ------------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------------ */
.profile-about {
  padding: 18px 22px;
  margin-bottom: 24px;
}

.profile-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.profile-about__grid:empty { display: none; }

.profile-detail__key {
  margin-bottom: 3px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .9px;
  color: var(--ink-soft);
}
.profile-detail__value { font-size: 13px; font-weight: 600; }

.profile-about__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.profile-about__chips:empty { display: none; }

.profile-about__chip {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--card-alt);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.profile-about__bio {
  margin: 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-line;
}
.profile-about__bio:empty { display: none; }

.profile-about__more {
  appearance: none;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}

.profile-about__bio-copy.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  white-space: normal;
}

/* ------------------------------------------------------------------
   STATS  (from the customer-site prototype)
   ------------------------------------------------------------------ */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.profile-stat {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
}

.profile-stat__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.profile-stat__value {
  margin-top: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
}

.profile-stat__reactions { display: flex; align-items: center; gap: 7px; }
.profile-stat__pair { display: inline-flex; align-items: center; gap: 5px; }
.profile-stat__sep { color: var(--ink-soft); font-weight: 600; }

/* ------------------------------------------------------------------
   TABS
   ------------------------------------------------------------------ */
.profile-tabs { margin-bottom: 18px; }
.profile-tabs .tab { display: flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 13px; }
.profile-tabs .tab--inactive,
.profile-tabs .tab--inactive:hover {
  opacity: .48;
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--card);
  box-shadow: none;
  cursor: not-allowed;
}

/* Counts sit inside the tab, dimmed, and vanish until there is a number. */
.tab__count { font-weight: 700; opacity: .65; }
.tab__count:empty { display: none; }

/* Tabs and the post toolbar share one row; the toolbar sits right. */
.profile-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.post-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.post-toolbar[hidden] { display: none; }

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 27px;
}

/* ------------------------------------------------------------------
   POSTS
   Two layouts off one container: single is the default because one post
   at a time is closer to how the feed is read.

   Only the container is here. The card itself (.ppost*) and the vault tile
   (.vault-item*) are shared with My Feed and live in feed.css, which this
   page also loads.
   ------------------------------------------------------------------ */
.profile-posts {
  display: grid;
  gap: 20px;
  align-items: start;
  margin: 0 auto;
}

.profile-posts.is-grid   { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); max-width: none; }
.profile-posts.is-single { grid-template-columns: 1fr; max-width: 600px; }

.profile-filter-empty {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  grid-column: 1 / -1;
  column-span: all;
}

.profile-filter-empty__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.profile-filter-empty__text {
  max-width: 520px;
  margin: 7px auto 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.profile-feed-sentinel {
  width: 100%;
  height: 1px;
}

.profile-feed-foot {
  display: flex;
  justify-content: center;
  min-height: 44px;
  padding-top: 18px;
}

.profile-feed-foot[hidden] { display: none; }

.profile-feed-memory {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.profile-feed-memory[hidden] { display: none; }

.profile-feed-memory__button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-feed-memory__button:hover,
.profile-feed-memory__button:focus-visible {
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   JOIN BANNER
   ------------------------------------------------------------------ */
.join-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
  padding: 22px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.join-banner__wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 160% at 0% 50%,
    color-mix(in srgb, var(--brand) 12%, transparent) 0%, transparent 55%);
}

.join-banner__avatar {
  position: relative;
  width: 54px;
  height: 54px;
  flex: none;
  background-position: center 18%;
  font-size: var(--text-md);
}

.join-banner__text { position: relative; flex: 1; min-width: 200px; }

.join-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
}

.join-banner__sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.join-banner__sub:empty { display: none; }

.join-banner__cta { position: relative; flex: none; padding: 11px 22px; font-size: 13.5px; }

@media (max-width: 900px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .profile-head__row { padding: 0 14px; }
  .profile-banner { height: 170px; }
  .profile-avatar { width: 84px; height: 84px; }
  .profile-name { font-size: 21px; }
  .profile-public-offer,
  .profile-public-signin { width: 100%; }
  .profile-public-offer__facts { display: grid; grid-template-columns: 1fr; }
  .profile-public-offer__fact { justify-content: center; white-space: normal; }
  .profile-public-signin { justify-content: center; }
  .profile-about { padding: 16px; }
  .profile-about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .profile-about__grid { grid-template-columns: 1fr; }
  .profile-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .profile-meta-separator { display: none; }
  .profile-last-online { gap: 0; }
}
