/* GENERATED FILE - DO NOT EDIT.
   Source: shared/profile-view.css - run `npm run sync:shared` after editing. */

/* Traveller profile (someone else's page) — web profile.html and the app's
   worldUser stack share this look (shared/profile-view.css → css/ + mobile/www/css/).
   Header: forest cover band, round avatar overlapping it, serif name, stat
   tiles, pill actions. Trips below use the shared trip card (shared/trip-card.css). */

.pfh,
.pf-section,
.pf-empty {
  --pf-cream: #fbf6ec;
  --pf-paper: #fffdf8;
  --pf-forest: #2d5a45;
  --pf-deep: #1f3d30;
  --pf-gold: #b8892f;
  --pf-gold-pale: #f2cf7e;
  --pf-ink: #263b32;
  --pf-soft: #66706a;
  --pf-line: #e6dcc8;
  --pf-display: "Playfair Display", Georgia, serif;
  --pf-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ——— Header card ——— */
.pfh {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pf-line);
  border-radius: 1.25rem;
  background: var(--pf-paper);
  color: var(--pf-ink);
  font-family: var(--pf-body);
  box-shadow: 0 18px 40px rgba(19, 37, 30, 0.07);
}

.pfh-band {
  position: relative;
  height: clamp(6.5rem, 14vw, 10.5rem);
  background:
    radial-gradient(60% 120% at 88% -10%, rgba(242, 207, 126, 0.32), transparent 60%),
    repeating-radial-gradient(circle at 82% 135%, rgba(242, 207, 126, 0.11) 0 1px, transparent 1px 16px),
    radial-gradient(rgba(251, 246, 236, 0.09) 1px, transparent 1.2px) 0 0 / 14px 14px,
    linear-gradient(150deg, #2d5a45 0%, #1f3d30 55%, #16302a 100%);
}

.pfh-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pf-gold), var(--pf-gold-pale) 50%, var(--pf-gold));
  opacity: 0.85;
}

.pfh-board {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  z-index: 1;
  margin: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(19, 37, 30, 0.45);
  color: var(--pf-gold-pale);
  font: 700 0.66rem/1.2 var(--pf-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pfh-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "avatar copy"
    "actions actions";
  align-items: start;
  gap: 0.9rem 1.25rem;
  padding: 0 1.5rem 1.25rem;
}

.pfh-avatar {
  grid-area: avatar;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 7.25rem;
  height: 7.25rem;
  margin-top: -3.6rem;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--pf-forest), var(--pf-deep));
  color: var(--pf-cream);
  font: 500 2.3rem/1 var(--pf-display);
  box-shadow: 0 10px 26px rgba(19, 37, 30, 0.22);
  flex: none;
}

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

.pfh-copy {
  grid-area: copy;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding-top: 0.85rem;
}

.pfh-kicker {
  margin: 0;
  color: var(--pf-gold);
  font: 700 0.7rem/1.2 var(--pf-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pfh-name {
  margin: 0;
  color: var(--pf-deep);
  font-family: var(--pf-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.pfh-line {
  margin: 0.1rem 0 0;
  color: var(--pf-soft);
  font-size: 0.92rem;
}

.pfh-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pfh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0 1.05rem;
  border: 1px solid var(--pf-line);
  border-radius: 999px;
  background: var(--pf-paper);
  color: var(--pf-ink);
  font: 600 0.88rem/1 var(--pf-body);
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pfh-btn[hidden] {
  display: none;
}

.pfh-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.pfh-btn.is-primary {
  min-width: 7.5rem;
  border-color: var(--pf-deep);
  background: var(--pf-deep);
  color: var(--pf-cream);
}

.pfh-btn.is-primary.is-following,
.pfh-btn.is-primary.is-on,
#pv-follow.pfh-btn.is-following {
  border-color: rgba(31, 61, 48, 0.35);
  background: #eef3ee;
  color: var(--pf-deep);
}

.pfh-btn.is-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--pf-soft);
  padding: 0 0.7rem;
}

.pfh-btn:focus-visible {
  outline: 2px solid var(--pf-gold);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .pfh-btn:hover {
    border-color: var(--pf-gold);
    color: var(--pf-deep);
  }
  .pfh-btn.is-primary:hover {
    background: var(--pf-forest);
    border-color: var(--pf-forest);
    color: var(--pf-cream);
  }
  .pfh-btn.is-primary.is-following:hover,
  .pfh-btn.is-primary.is-on:hover {
    background: #e4ece5;
    color: var(--pf-deep);
  }
  .pfh-btn.is-quiet:hover {
    background: rgba(31, 61, 48, 0.06);
    border-color: transparent;
  }
}

.pfh-quiet {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-left: auto;
}

/* Leaderboard ranks (app) on the light card */
.pfh .pv-ranks {
  margin-top: 0.35rem;
}

.pfh .pv-rank {
  border-color: var(--pf-line);
  background: var(--pf-cream);
  color: var(--pf-ink);
}

.pfh .pv-rank em {
  color: var(--pf-gold);
}

/* ——— Stat tiles ——— */
.pfh-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0 1.5rem 1.5rem;
}

.pfh-stat {
  display: grid;
  align-content: center;
  gap: 0.15rem;
  min-width: 0;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--pf-line);
  border-radius: 0.9rem;
  background: var(--pf-cream);
  color: var(--pf-soft);
  font: inherit;
  text-align: left;
}

button.pfh-stat {
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

button.pfh-stat:disabled {
  cursor: default;
}

button.pfh-stat:focus-visible {
  outline: 2px solid var(--pf-gold);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  button.pfh-stat:not(:disabled):hover {
    border-color: var(--pf-gold);
    background: #fff;
  }
}

.pfh-stat strong {
  color: var(--pf-deep);
  font: 500 1.55rem/1.1 var(--pf-display);
  font-variant-numeric: tabular-nums;
}

.pfh-stat > span {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Wide: name beside the avatar, actions on the right. */
@media (min-width: 64rem) {
  .pfh-main {
    grid-template-columns: auto minmax(14rem, 1fr) auto;
    grid-template-areas: "avatar copy actions";
  }
  .pfh-actions {
    align-self: center;
    justify-content: flex-end;
    padding-top: 0.85rem;
  }
  .pfh-quiet {
    margin-left: 0;
  }
}

@media (min-width: 48rem) {
  .pfh-main {
    padding: 0 2rem 1.35rem;
  }
  .pfh-avatar {
    width: 8.5rem;
    height: 8.5rem;
    margin-top: -4.25rem;
    font-size: 2.7rem;
  }
  .pfh-stats {
    padding: 0 2rem 1.75rem;
  }
}

/* Phone: tighter tiles, avatar a little smaller. */
@media (max-width: 30rem) {
  .pfh-main {
    padding: 0 1rem 1rem;
    gap: 0.8rem 0.9rem;
  }
  .pfh-avatar {
    width: 5.75rem;
    height: 5.75rem;
    margin-top: -2.9rem;
    border-width: 4px;
    font-size: 1.9rem;
  }
  .pfh-copy {
    padding-top: 0.6rem;
  }
  .pfh-name {
    font-size: 1.6rem;
  }
  .pfh-stats {
    gap: 0.4rem;
    padding: 0 1rem 1rem;
  }
  .pfh-stat {
    padding: 0.6rem 0.3rem;
    border-radius: 0.75rem;
    text-align: center;
  }
  .pfh-stat strong {
    font-size: 1.3rem;
  }
  .pfh-stat > span {
    font-size: 0.64rem;
    letter-spacing: 0.03em;
  }
  .pfh-actions .pfh-btn.is-primary {
    flex: 1 1 8rem;
  }
}

/* 360px: four tiles leave ~57px per label — “FOLLOWERS” was cut to “FOLLOWE…”. */
@media (max-width: 24rem) {
  .pfh-stat {
    padding-inline: 0.15rem;
  }
  .pfh-stat > span {
    font-size: 0.6rem;
    letter-spacing: 0;
  }
}

@media (max-width: 21rem) {
  .pfh-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ——— Sections (Published / Collaborated itineraries) ——— */
.pf-section {
  font-family: var(--pf-body);
  color: var(--pf-ink);
}

.pf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0 0 1rem;
}

.pf-head h2,
.pf-head h3 {
  margin: 0;
  color: var(--pf-deep);
  font-family: var(--pf-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pf-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  margin-left: 0.4rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #eef0e7;
  color: var(--pf-forest);
  font: 700 0.78rem/1 var(--pf-body);
  vertical-align: 0.3em;
}

.pf-count:empty {
  display: none;
}

.pf-head p {
  margin: 0;
  color: var(--pf-soft);
  font-size: 0.92rem;
}

/* Same grid as My trips: photo-top cards, 16:9 covers. */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  align-items: start;
}

.pf-grid > .tc-card .tc-cover {
  aspect-ratio: 16 / 9;
}

.pf-grid > .tc-card .tc-body {
  gap: 0.35rem;
  padding: 1rem 1.15rem 1.05rem;
}

.pf-grid > .tc-card .tc-title {
  font-size: 1.35rem;
}

.pf-grid > .tc-card .tc-foot-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.pf-grid > .tc-card {
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .pf-grid > .tc-card:hover {
    box-shadow: 0 14px 30px rgba(19, 37, 30, 0.1);
    transform: translateY(-2px);
  }
}

/* Heart on the photo (keeps data-upvote / data-upvote-count). */
.pf-heart {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--pf-ink);
  font: 700 0.78rem/1 var(--pf-body);
  cursor: pointer;
}

.pf-heart svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pf-heart em {
  font-style: normal;
}

.pf-heart.is-on {
  color: #b5452f;
}

.pf-heart.is-on svg {
  fill: currentColor;
}

.pf-heart.is-static {
  cursor: default;
}

.pf-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pf-roles span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e4eef5;
  color: #2d5f82;
  font-size: 0.72rem;
  font-weight: 600;
}

.pf-owner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: var(--pf-ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.pf-owner-face {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--pf-forest);
  color: var(--pf-cream);
  font-size: 0.7rem;
  flex: none;
}

.pf-owner-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loading placeholders in the card shape. */
.pf-skel {
  border: 1px solid var(--pf-line, #e6dcc8);
  border-radius: 14px;
  aspect-ratio: 16 / 13;
  background: linear-gradient(100deg, #f3eee2 30%, #fbf8f1 50%, #f3eee2 70%) 0 0 / 300% 100%;
  animation: pf-skel 1.4s ease-in-out infinite;
}

@keyframes pf-skel {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-skel { animation: none; }
}

/* Friendly empty state. */
.pf-empty {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 2.25rem 1.25rem;
  border: 1px dashed #d9ccb2;
  border-radius: 1.1rem;
  background: var(--pf-cream);
  color: var(--pf-soft);
  font-family: var(--pf-body);
  text-align: center;
}

.pf-grid > .pf-empty {
  grid-column: 1 / -1;
}

.pf-empty img {
  width: min(7.5rem, 36vw);
  height: auto;
  margin-bottom: 0.2rem;
}

.pf-empty h3 {
  margin: 0;
  color: var(--pf-deep);
  font: 500 1.3rem/1.2 var(--pf-display);
}

.pf-empty p {
  max-width: 26rem;
  margin: 0;
  font-size: 0.92rem;
}

.pf-empty.is-slim {
  justify-items: start;
  padding: 1rem 1.15rem;
  text-align: left;
}

.pf-empty.is-slim p {
  max-width: none;
}

/* ——— Web page frame (profile.html) ——— */
.profile-page .pf-main {
  width: 100%;
  max-width: 92rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem;
  box-sizing: border-box;
}

.profile-page .pf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.25rem 0 1.5rem;
  padding: 0.3rem;
  border: 1px solid #e6dcc8;
  border-radius: 999px;
  background: #fffdf8;
}

.profile-page .pf-tabs[hidden] {
  display: none;
}

.profile-page .pf-tabs .ac-view-tab {
  min-height: 2.35rem;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 999px;
  color: #66706a;
  font: 600 0.88rem/1 "DM Sans", system-ui, sans-serif;
}

.profile-page .pf-tabs .ac-view-tab.is-on {
  background: #1f3d30;
  color: #fbf6ec;
}

.profile-page .pf-section + .pf-section {
  margin-top: 2.5rem;
}

.profile-page .pf-main .ac-section {
  padding: 0;
}

.profile-page .pf-main .ac-atlas-section .ac-section-head h2 {
  color: #1f3d30;
  font-family: "Playfair Display", Georgia, serif;
}

.profile-page .pf-main .pv-status {
  margin: 1.5rem 0 0;
}

/* ——— App (worldUser stack) ——— */
.stack.is-profile .pfh {
  margin: 0 0 1.35rem;
}

.stack.is-profile .pf-section {
  margin: 0 0 1.5rem;
}

.stack.is-profile .pf-head h3 {
  font-size: 1.3rem;
}

.stack.is-profile .pf-grid.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}
