/* ==========================================================================
   Profile and academy cards: About facts list, match / medal / seminar /
   link rows, wall composer. Markup from functions_profilecards.php.
   Rows reuse .bc-row (lists.css + surfaces.css); tokens from modern.css.
   ========================================================================== */

/* ---------- About: facts list ---------- */

.pc-facts {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.pc-facts--split {
  padding-top: 10px;
  border-top: 1px solid var(--bc-line);
}
.pc-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  min-width: 0;
}
.pc-fact-ic {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bc-surface-2);
  box-shadow: 0 0 0 1px var(--bc-line) inset;
  color: var(--bc-muted);
  font-size: 13px;
  line-height: 1;
}
.pc-fact-ic img { width: 14px; height: 14px; object-fit: contain; }
.pc-fact-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 1px;
}
.pc-fact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bc-faint);
  line-height: 1.2;
}
.pc-fact-value {
  font-size: 14px;
  line-height: 1.35;
  color: var(--bc-ink);
  overflow-wrap: anywhere;
}
.pc-fact-value a { color: var(--bc-ink) !important; text-decoration: none !important; }
.pc-fact-value a:hover { color: var(--bc-accent) !important; }
.pc-fact-sub { font-size: 12px; line-height: 1.3; color: var(--bc-muted); }

/* W-L-D in the facts list */
.pc-wld { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--bc-muted); letter-spacing: 0.01em; }
.pc-wld b { font-weight: 700; color: var(--bc-ink); }
.pc-wld b.is-win { color: #15803d; }
.pc-wld b.is-loss { color: #c2410c; }

/* Medal totals: 208  [gold] 76  [silver] 98  [bronze] 34 */
.pc-medaltotal { font-weight: 700; margin-right: 10px; font-variant-numeric: tabular-nums; }
.pc-medalcount { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; vertical-align: -3px; font-variant-numeric: tabular-nums; color: var(--bc-ink-2); font-size: 13px; }
.pc-medalcount > span { display: inline-flex; align-items: center; gap: 4px; }
.pc-medalcount img { width: 16px; height: 16px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(16, 16, 30, 0.18)); }

/* Status pills beside a value (academy claim, rank) */
.pc-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 1px;
  text-decoration: none !important;
  white-space: nowrap;
}
.pc-pill--ok    { background: rgba(22, 163, 74, 0.1);  color: #15803d !important; }
.pc-pill--wait  { background: rgba(245, 158, 11, 0.13); color: #a16207 !important; }
.pc-pill--bad   { background: rgba(225, 29, 72, 0.1);  color: #be123c !important; }
.pc-pill--muted { background: var(--bc-surface-3);     color: var(--bc-muted) !important; }

/* Social links: one row of round icon buttons */
.pc-socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.pc-social {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bc-surface-2);
  box-shadow: 0 0 0 1px var(--bc-line) inset;
  color: var(--bc-ink-2) !important;
  font-size: 15px;
  text-decoration: none !important;
  transition: background-color 0.2s var(--bc-ease), color 0.2s var(--bc-ease), transform 0.2s var(--bc-ease);
}
.pc-social:hover { background: var(--bc-surface-3); color: var(--bc-accent) !important; transform: translateY(-1px); }
.pc-social img { width: 16px; height: 16px; object-fit: contain; }

/* Lineage and bio */
.pc-block { margin: 0 0 16px; padding-top: 12px; border-top: 1px solid var(--bc-line); }
.pc-block-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bc-faint); margin-bottom: 8px; }
.pc-block-label i { margin-right: 4px; }
.pc-bio { font-size: 13.5px; line-height: 1.55; color: var(--bc-ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.pc-lineage { list-style: none; margin: 0; padding: 0 0 0 4px; }
.pc-lineage li {
  position: relative;
  padding: 3px 0 3px 18px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--bc-ink-2);
}
/* A dot per teacher on a thin line; the last one (this member) is filled */
.pc-lineage li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bc-surface);
  box-shadow: 0 0 0 2px var(--bc-line-strong) inset;
}
.pc-lineage li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 17px;
  bottom: -9px;
  width: 1px;
  background: var(--bc-line-strong);
}
.pc-lineage li:last-child { font-weight: 600; color: var(--bc-ink); }
.pc-lineage li:last-child::before { background: var(--bc-accent); box-shadow: none; }

/* Action buttons: compact, one group */
.pc-actions { display: flex; flex-direction: column; gap: 8px; }
.pc-actions > div { margin: 0 !important; }
.pc-actions .btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: 0 !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none !important;
}
.pc-actions .btn.border-secondary {
  border: 0 !important;
  background: var(--bc-surface-2) !important;
  box-shadow: 0 0 0 1px var(--bc-line) inset;
  color: var(--bc-ink-2) !important;
}
.pc-actions .btn.border-secondary:hover { background: var(--bc-surface-3) !important; color: var(--bc-ink) !important; }

/* ---------- Rows (matches, medals, seminars, links) ---------- */

.pc-list { margin-bottom: 8px; }
.pc-list-rest.w3-hide { display: none !important; }
.pc-list-rest { margin-top: -8px; }
.pc-list-rest > .bc-row:first-child { box-shadow: 0 -1px 0 0 var(--bc-line) !important; }
.pc-row--static { cursor: default; }
.pc-row .bc-row-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-row .bc-row-meta { font-size: 12px; }
.pc-vs { color: var(--bc-faint); font-weight: 500; font-size: 0.92em; }
.pc-row .bc-status { white-space: nowrap; }

/* Square icon / medal / photo in the avatar slot */
.pc-row-icon { width: 40px; height: 40px; border-radius: 50%; font-size: 14px; background: var(--bc-surface-2); color: var(--bc-faint) !important; }
.pc-row-medal { width: 40px; height: 40px; display: grid; place-items: center; }
.pc-row-medal img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(16, 16, 30, 0.2)); }
.pc-row-thumb { cursor: zoom-in; }
.pc-row-thumb img { cursor: zoom-in; }

/* Uploaded photo beside a row */
.pc-row-photo {
  position: relative;
  z-index: 2;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
  box-shadow: 0 0 0 1px var(--bc-line);
}
.pc-row-thumb .pc-row-photo { border-radius: 0; box-shadow: none; }

/* Match video */
.pc-row-video {
  position: relative;
  z-index: 2;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #e11d48 !important;
  font-size: 16px;
  text-decoration: none !important;
}
.pc-row-video:hover { background: rgba(225, 29, 72, 0.08); }
.pc-row-out { color: var(--bc-faint); font-size: 12px; }

/* "Show all 76" under a long list */
.pc-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 4px 0 6px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--bc-surface-2);
  box-shadow: 0 0 0 1px var(--bc-line) inset;
  color: var(--bc-ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pc-more:hover { background: var(--bc-surface-3); color: var(--bc-ink); }
.pc-more i { font-size: 11px; color: var(--bc-muted); }

/* Edit link on your own profile */
.pc-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bc-muted) !important;
  text-decoration: none !important;
}
.pc-edit:hover { background: var(--bc-surface-2); color: var(--bc-accent) !important; }
.pc-edit i { font-size: 11px; }

.pc-empty { margin: 0 0 8px; font-size: 13px; color: var(--bc-muted); }

/* Record tiles: two by two on phones instead of three and a lonely fourth */
@media (max-width: 480px) {
  .pc-card .bc-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .pc-row .bc-row-name { font-size: 14px; }
  .pc-row-photo { flex-basis: 34px; width: 34px; height: 34px; }
}

/* ---------- Verification progress (moderators only): profile_card_verifyprogress.php ---------- */
.bc-vp-anchor { scroll-margin-top: 90px; }
.bc-vp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bc-vp-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--bc-ink); }
.bc-vp-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.2; color: var(--bc-ink-2); background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-vp-chip i { font-size: 10.5px; color: var(--bc-faint); }
.bc-vp-chip--green { color: #15803d; background: rgba(22, 163, 74, 0.1); box-shadow: none; }
.bc-vp-chip--amber { color: #a16207; background: rgba(245, 158, 11, 0.13); box-shadow: none; }
.bc-vp-chip--red { color: #be123c; background: rgba(225, 29, 72, 0.09); box-shadow: none; }
.bc-vp-chip--accent { color: var(--bc-accent); background: rgba(91, 75, 209, 0.09); box-shadow: none; }
.bc-vp-chip--green i, .bc-vp-chip--amber i, .bc-vp-chip--red i, .bc-vp-chip--accent i { color: inherit; }
.bc-vp-flash { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #15803d; background: rgba(22, 163, 74, 0.1); }
.bc-vp-summary { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.bc-vp-count { font-size: 14px; color: var(--bc-muted); }
.bc-vp-count b { font-size: 20px; color: var(--bc-ink); font-variant-numeric: tabular-nums; }
.bc-vp-headline { font-size: 13px; color: var(--bc-ink-2); }
.bc-vp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bc-vp-step { padding: 10px 0; border-top: 1px solid var(--bc-line); min-width: 0; }
.bc-vp-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.bc-vp-num { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--bc-muted); background: var(--bc-surface-2); }
.bc-vp-step.is-done .bc-vp-num { color: #fff; background: var(--bc-green); }
.bc-vp-step.is-pending .bc-vp-num { color: #b45309; background: var(--bc-surface-2); box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35) inset; }
.bc-vp-step.is-locked { opacity: 0.7; }
.bc-vp-label { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--bc-ink); }
.bc-vp-step-head .bc-vp-chip { margin-left: 30px; }
.bc-vp-detail { margin: 6px 0 0 30px; font-size: 13px; color: var(--bc-ink-2); min-width: 0; }
.bc-vp-meta { font-size: 12.5px; color: var(--bc-muted); line-height: 1.4; }
.bc-vp-media { display: flex; align-items: center; gap: 10px; }
.bc-vp-thumb { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; border-radius: 10px; background: var(--bc-surface-2); box-shadow: 0 0 0 1px var(--bc-line); cursor: zoom-in; }
.bc-vp-thumb.is-round { width: 44px; height: 44px; flex-basis: 44px; border-radius: 50%; }
.bc-vp-thumb.is-missing { display: inline-grid; place-items: center; color: var(--bc-faint); cursor: default; }
.bc-vp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 280px; margin-bottom: 6px; }
.bc-vp-compare figure { margin: 0; min-width: 0; }
.bc-vp-compare .bc-vp-thumb { width: 100%; height: auto; aspect-ratio: 1; }
.bc-vp-compare figcaption { margin-top: 3px; font-size: 11.5px; color: var(--bc-muted); text-align: center; }
.bc-vp-warn { display: flex; gap: 7px; align-items: flex-start; margin: 4px 0 6px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; color: #92400e; background: rgba(245, 158, 11, 0.12); }
.bc-vp-warn i { margin-top: 2px; }
.bc-vp-uploads { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bc-vp-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.bc-vp-upload-when { font-size: 12.5px; color: var(--bc-ink-2); }
.bc-vp-why { font-size: 12px; color: #be123c; margin-top: 1px; }
.bc-vp-more { font-size: 12px; color: var(--bc-faint); }
.bc-vp-docthumb { margin: 6px 0; }
.bc-vp-review { margin-top: 6px; padding: 10px; border-radius: 12px; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-vp-queue { display: flex; gap: 6px; align-items: baseline; font-size: 12.5px; color: var(--bc-ink-2); margin-bottom: 8px; }
.bc-vp-queue i { color: var(--bc-faint); font-size: 11px; }
.bc-vp-form { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bc-vp-reason select { width: 100%; max-width: 100%; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--bc-line-strong); background: var(--bc-surface); color: var(--bc-ink); font: 400 13px/1.3 var(--bc-font); }
.bc-vp-actions { display: flex; gap: 8px; }
.bc-vp-btn { flex: 1 1 0; min-height: 36px; padding: 7px 12px; border: 0; border-radius: 10px; font: 600 13px/1.2 var(--bc-font); cursor: pointer; }
.bc-vp-btn--reject { color: #be123c; background: var(--bc-surface); box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.35); }
.bc-vp-btn--reject:hover { background: rgba(225, 29, 72, 0.06); }
.bc-vp-btn--approve { color: #fff; background: var(--bc-green); }
.bc-vp-btn--approve:hover { filter: brightness(0.95); }
.bc-vp-btn:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.bc-vp-open { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--bc-accent) !important; }
.bc-vp-votes { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--bc-ink-2); }
.bc-vp-bar { display: block; height: 5px; max-width: 220px; border-radius: 99px; background: var(--bc-surface-3); overflow: hidden; }
.bc-vp-bar span { display: block; height: 100%; border-radius: 99px; background: var(--bc-brand-grad); }
.bc-vp-chips { margin-top: 6px; }
.bc-vp-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--bc-accent) !important; }
.bc-vp-link i { font-size: 11px; }

/* Affiliation on the profile: a button to the team page, not a plain text link */
.pc-teamlinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.pc-teamlink { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px 6px 11px; border-radius: 999px; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); color: var(--bc-ink) !important; font-weight: 650; font-size: 14px; line-height: 1.25; text-decoration: none !important; transition: background .15s ease, box-shadow .15s ease; }
.pc-teamlink:hover { background: var(--bc-surface-3, var(--bc-surface-2)); box-shadow: inset 0 0 0 1px var(--bc-line-strong, var(--bc-line)); }
.pc-teamlink > i:first-child { font-size: 12px; color: var(--bc-accent, #5b4bd1); }
.pc-teamlink span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-teamlink-go { font-size: 10px; color: var(--bc-muted); }
