/*
 * BWS 2.0 Public User Profile
 * Description: Public-facing member profile with contact, resume, Streets
 * participation, businesses, music, public lists, and personal content.
 * TOC:
 * - Hero identity and signal card
 * - Panels, chips, cards, and stacks
 * - Responsive layout
 * Summary: Designed as an API-first user profile surface with fallback data
 * until profile visibility and ownership tables are fully formalized.
 */
.public-profile-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 52% 0%, rgba(218, 151, 45, .18), transparent 35%),
    linear-gradient(180deg, #070301 0%, #190803 48%, #050201 100%);
  color: #f8ead2;
}

.public-profile-shell {
  padding-bottom: 76px;
}

.public-profile-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
  gap: 28px;
  align-items: center;
  padding: 120px max(24px, calc((100vw - 1220px) / 2)) 70px;
  overflow: hidden;
}

.public-profile-hero-bg,
.public-profile-hero-overlay {
  position: absolute;
  inset: 0;
}

.public-profile-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.public-profile-hero-overlay {
  background:
    linear-gradient(90deg, rgba(5,2,0,.95), rgba(20,7,2,.56) 48%, rgba(5,2,0,.82)),
    linear-gradient(180deg, rgba(0,0,0,.46), rgba(10,4,1,.96));
}

.public-profile-identity,
.profile-signal-card {
  position: relative;
  z-index: 1;
}

.public-profile-identity {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.public-profile-avatar {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 190, 80, .48);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(226, 154, 47, .32), rgba(0,0,0,.82));
  color: #fff1d8;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  overflow: hidden;
}

.public-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-kicker,
.profile-panel-head span,
.profile-card-type,
.profile-signal-card span {
  color: #dda34a;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.public-profile-hero h1 {
  margin: 8px 0 12px;
  color: #fff1d8;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 92px);
  line-height: .92;
  text-shadow: 0 5px 0 rgba(65, 26, 8, .92), 0 22px 50px rgba(0,0,0,.8);
}

.public-profile-hero p {
  max-width: 760px;
  color: rgba(255, 239, 216, .86);
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.42;
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.profile-action-row a,
.profile-section-head a,
.profile-card-actions a {
  border: 1px solid rgba(255, 190, 80, .42);
  border-radius: 7px;
  background: rgba(26, 9, 2, .74);
  color: #f6d49a;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-action-row a:first-child {
  background: linear-gradient(180deg, #e1a339, #b66b1d);
  color: #170802;
}

.profile-signal-card,
.profile-panel,
.profile-card,
.profile-list-row {
  border: 1px solid rgba(207, 132, 31, .36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 11, 2, .88), rgba(8, 3, 1, .92)),
    rgba(10, 4, 1, .88);
  box-shadow: 0 22px 54px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,227,178,.08);
}

.profile-signal-card {
  padding: 20px;
}

.profile-signal-card strong {
  display: block;
  color: #f4ad38;
  font-family: var(--font-display);
  font-size: 74px;
  line-height: .9;
  margin: 10px 0;
}

.profile-section,
.profile-overview-grid,
.profile-split-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 26px auto 0;
}

.profile-overview-grid,
.profile-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 16px;
}

.profile-panel {
  padding: 18px;
}

.profile-panel-head,
.profile-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.profile-panel-head strong,
.profile-section-head h2 {
  margin: 0;
  color: #fff0d7;
  font-family: var(--font-ui);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.profile-detail-list,
.profile-chip-list,
.profile-stack {
  display: grid;
  gap: 10px;
}

.profile-detail-row,
.profile-chip,
.profile-list-row {
  border: 1px solid rgba(255, 185, 78, .18);
  border-radius: 7px;
  background: rgba(0,0,0,.28);
  padding: 11px 12px;
}

.profile-detail-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
}

.profile-detail-row span {
  color: rgba(255, 235, 206, .54);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-detail-row strong,
.profile-chip strong,
.profile-list-row strong {
  color: #fff0d7;
}

.profile-chip small,
.profile-list-row small {
  display: block;
  color: rgba(255, 235, 206, .64);
  margin-top: 4px;
}

.profile-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.profile-card {
  min-height: 280px;
  border-radius: 0;
  overflow: hidden;
}

.profile-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
}

.profile-card-body {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.profile-card h3 {
  margin: 0;
  color: #fff4e2;
  font-family: var(--font-ui);
  font-size: 24px;
  line-height: 1;
}

.profile-card p {
  margin: 0;
  color: rgba(255, 235, 206, .75);
  line-height: 1.4;
}

.profile-badges,
.profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-badges span {
  border: 1px solid rgba(255, 185, 78, .24);
  border-radius: 999px;
  color: #f0c576;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .public-profile-hero,
  .profile-overview-grid,
  .profile-split-grid,
  .profile-card-grid {
    grid-template-columns: 1fr;
  }

  .public-profile-identity {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .public-profile-hero {
    padding-top: 110px;
  }

  .profile-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-detail-row {
    grid-template-columns: 1fr;
  }
}
