/*
 * user.css — public profile page.
 */
.wg-profile-public { max-width: 720px; margin: 0 auto; }

.wg-up-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.wg-up-avatar {
  width: 84px; height: 84px; flex: none; border-radius: 50%;
  background:var(--wg-color); color:var(--wg-on-brand); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
}
.wg-up-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wg-up-info { min-width: 0; }
.wg-up-nick { font-size: 1.25rem; font-weight: 700; }
.wg-up-since { color:var(--wg-muted); font-size: 0.82rem; margin-top: 2px; }
.wg-up-bio { margin: 8px 0 0; line-height: 1.5; }
.wg-up-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.wg-up-actions .wg-btn { width: auto; padding: 7px 14px; font-size: 0.85rem; }
.wg-up-report { color:var(--wg-accent-red); font-weight: 600; }

/* Reviews on the profile */
.wg-up-reviews { margin: 8px 0 20px; }
.wg-rv-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.wg-rv-title { font-size: 1.05rem; font-weight: 700; }
.wg-rv-avg { color:var(--wg-warn-ink); font-weight: 700; font-size: 0.9rem; }
.wg-rv-empty { color:var(--wg-muted); font-size: 0.9rem; margin: 0; }
.wg-rv-item { border-top:1px solid var(--wg-border); padding: 10px 0; }
.wg-rv-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wg-rv-stars { color:var(--wg-accent-yellow); letter-spacing: 1px; }
.wg-rv-by { color:var(--wg-muted); font-size: 0.78rem; }
.wg-rv-body { font-size: 0.9rem; line-height: 1.5; margin-top: 4px; white-space: pre-wrap; }
.wg-rv-more { width: auto; margin-top: 12px; padding: 7px 14px; font-size: 0.85rem; }
.wg-rv-modal-list { margin-top: 6px; max-height: 60vh; overflow-y: auto; }
.wg-rv-modal-list .wg-rv-item:first-child { border-top:none; }
.wg-up-self { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wg-up-self .wg-btn { width: auto; padding: 7px 14px; font-size: 0.85rem; }

/* Tabs (Posts / Sold) */
.wg-tabs {
  display: flex; gap: 2px; border-bottom:1px solid var(--wg-border); margin-bottom: 16px;
}
.wg-tab {
  background:none; border:none; border-bottom:2px solid transparent;
  padding: 10px 14px; margin-bottom: -1px;
  font: inherit; font-weight: 600; color:var(--wg-muted); cursor: pointer;
  transition: color .16s ease, border-color .16s ease, transform .12s var(--wg-ease-spring, ease);
}
.wg-tab:hover { color:var(--wg-text); }
.wg-tab:active { transform: scale(0.95); }
.wg-tab.is-active { color:var(--wg-color-dark); border-bottom-color:var(--wg-color); }
@media (prefers-reduced-motion: reduce) { .wg-tab { transition: none; } .wg-tab:active { transform: none; } }

.wg-saved-sec { margin-bottom: 24px; }
.wg-saved-h2 { font-size: 1.05rem; margin: 0 0 12px; }

.wg-up-secfilter { margin: 0 0 14px; }
.wg-up-secfilter select {
  padding: 8px 10px; font: inherit; background:var(--wg-raised);
  border:1px solid var(--wg-border); border-radius: var(--wg-radius);
}

/* Post grid (shares the marketplace card look) */
.wg-feed-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 460px)  { .wg-feed-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .wg-feed-list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .wg-feed-list { grid-template-columns: repeat(5, 1fr); } }

/* Saved-post card with a remove (un-save) button overlay */
.wg-saved-card { position: relative; display: flex; }
.wg-saved-card .wg-card { flex: 1; }
.wg-saved-remove {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; border:none;
  background:rgba(0, 0, 0, 0.55); color:var(--wg-on-scrim); font-size: 1.15rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.wg-saved-remove:hover { background:rgba(0, 0, 0, 0.78); }
.wg-saved-remove[disabled] { opacity: 0.5; cursor: default; }

.wg-card {
  position: relative;
  display: flex; flex-direction: column;
  border:1px solid var(--wg-border-soft); border-radius: var(--wg-radius-card);
  overflow: hidden; background:var(--wg-raised); color:var(--wg-text); text-decoration: none;
  box-shadow: var(--wg-shadow-card); transition: box-shadow .2s ease, transform .2s var(--wg-ease-spring, ease), border-color .16s ease;
}
.wg-card:hover { box-shadow: var(--wg-shadow-hover); transform: translateY(-2px); border-color:var(--wg-border-soft); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .wg-card { transition: none; } .wg-card:hover { transform: none; } }
/* .wg-card-img is defined once, globally, in main.css (uniform square). */
.wg-card-body { padding: 6px 8px; }
.wg-card-title {
  font-size: 0.82rem; font-weight: 600; line-height: 1.28;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wg-card-price { color:var(--wg-color-dark); font-weight: 700; margin-top: 3px; font-size: 0.82rem; }
.wg-card-stats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color:var(--wg-muted); font-size: 0.72rem; margin-top: 4px; }
.wg-card-status {
  background:var(--wg-surface-2); color:var(--wg-muted); font-weight: 700;
  font-size: 0.66rem; padding: 1px 7px; border-radius: 999px;
}

.wg-feed-empty { text-align: center; color:var(--wg-muted); padding: 28px 0; }
#wg-up-more { width: auto; margin: 14px auto 0; display: block; }

/* Login gate (shown to logged-out visitors instead of the profile) */
.wg-login-gate {
  max-width: 420px; margin: 24px auto; padding: 32px 24px; text-align: center;
  border:1px solid var(--wg-border); border-radius: 14px; background:var(--wg-raised);
}
.wg-login-gate-icon { font-size: 2rem; margin-bottom: 8px; }
.wg-login-gate-title { margin: 0 0 8px; font-size: 1.25rem; }
.wg-login-gate-msg { margin: 0 0 20px; color:var(--wg-muted); line-height: 1.6; }
.wg-login-gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wg-login-gate-actions .wg-btn { width: auto; }

/* Event cards in the profile "Events" tab (grid, not the home slider) */
.wg-up-events .wg-ev-card {
  display: flex; flex-direction: column; width: auto;
  border:1px solid var(--wg-border); border-radius: var(--wg-radius);
  overflow: hidden; background:var(--wg-bg); color:var(--wg-text);
}
.wg-up-events .wg-ev-card:hover { text-decoration: none; border-color:var(--wg-color); }
.wg-ev-card-img {
  width: 100%; aspect-ratio: 16 / 9; background:var(--wg-surface);
  display: flex; align-items: center; justify-content: center;
}
.wg-ev-card-img img { width: 100%; height: 100%; object-fit: cover; }
.wg-ev-card-img:empty {
  background:url(/brand/placeholder-event.svg) center/cover no-repeat;
}
.wg-ev-card-body { padding: 10px; }
.wg-ev-card-title {
  font-weight: 600; font-size: 0.9rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wg-ev-card-when { font-size: 0.8rem; font-weight: 600; margin-top: 4px; }
.wg-ev-card-loc, .wg-ev-card-meta { font-size: 0.78rem; color:var(--wg-muted); margin-top: 2px; }

/* Community-helper badge on the public profile — same meaning as the one beside
   a comment, sized to sit next to "Verified" without competing with it. */
.wg-badge-helper { background:var(--wg-warn-tint); color:var(--wg-warn-ink); border-color:#fcd34d; }

/* Profile head (2026-09): the facts line and a share button. */
.wg-up-facts { margin-top: 3px; font-size: .84rem; color: var(--wg-text); font-weight: 600; }
.wg-up-actions .wg-btn-sm { width: auto; }

.wg-up-reply { margin-top: 3px; font-size: .8rem; color: var(--wg-muted); }
.wg-up-reply .wg-ico-in { width: 14px; height: 14px; vertical-align: -2px; }
.wg-up-cta { display: flex; gap: 8px; margin-top: 10px; }
.wg-up-cta .wg-btn { flex: 1; width: auto; justify-content: center; }
