/*
 * Poet profile page (profile.php).
 *
 * Sits inside main.css's #left-col (643px wide, dark translucent panel) and
 * reuses the site's palette: white type on black, #303030 hairlines, the gold
 * of the PRO MEMBER badge and sidebar buttons, and the #ffcc2f menu hover.
 * Everything is scoped under .pvp so nothing leaks into the rest of the site.
 */

.pvp {
  --pvp-gold: #d3b06b;
  --pvp-gold-deep: #947113;
  --pvp-gold-bright: #ffcc2f;
  --pvp-ruby: #931111;
  --pvp-line: #303030;
  --pvp-panel: rgba(255, 255, 255, 0.04);
  --pvp-muted: #a8a8a8;
  font-family: "Fira Sans", Helvetica, Verdana, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #fff;
}

.pvp p { margin: 0; }
.pvp a { color: var(--pvp-gold); }
.pvp a:hover { color: var(--pvp-gold-bright); }
.pvp-muted { color: var(--pvp-muted); }
.pvp-footnote { margin-top: 10px !important; font-size: 12px; }

/* ---- Banners ------------------------------------------------------------ */

.pvp-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--pvp-gold-deep);
  border-left: 12px solid var(--pvp-gold-deep);
}
.pvp-banner__art { width: 64px; height: 64px; object-fit: contain; flex: none; }
.pvp-banner__body { flex: 1; min-width: 0; }
.pvp-banner__kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pvp-gold);
}
.pvp-banner__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 2px 0 4px !important;
}
.pvp-banner__text { font-size: 13px; color: #e6e6e6; }

.pvp-banner--mayor {
  background: linear-gradient(100deg, rgba(148, 113, 19, 0.55), rgba(0, 0, 0, 0.6) 70%);
}
.pvp-banner--mayor .pvp-banner__title { color: var(--pvp-gold-bright); }

.pvp-banner--winner {
  border-color: var(--pvp-ruby);
  border-left-color: var(--pvp-ruby);
  background: linear-gradient(100deg, rgba(147, 17, 17, 0.55), rgba(0, 0, 0, 0.6) 70%);
}
.pvp-banner__count {
  flex: none;
  min-width: 70px;
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--pvp-gold);
  border-radius: 8px;
  color: var(--pvp-gold);
}
.pvp-banner__count span { display: block; font-size: 30px; line-height: 1; color: #fff; }

/* ---- Header ------------------------------------------------------------- */

.pvp-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 3px solid #fff;
}
.pvp-avatar {
  flex: none;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--pvp-gold);
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pvp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pvp-avatar span { font-size: 48px; font-weight: 700; color: var(--pvp-gold); }

.pvp-header__main { flex: 1; min-width: 0; }
.pvp-name {
  margin: 4px 0 6px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  word-break: break-word;
}
.pvp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pvp-tag {
  padding: 2px 8px;
  border: 1px solid #555;
  border-radius: 10px;
  font-size: 11px;
  color: #ddd;
}
.pvp-tag--pro { border: 2px solid var(--pvp-gold-deep); border-left-width: 8px; color: var(--pvp-gold-deep); font-weight: 700; }
.pvp-tag--mayor { border-color: var(--pvp-gold-bright); color: var(--pvp-gold-bright); font-weight: 700; }
.pvp-tag--winner { border-color: #e04848; color: #ff8a8a; font-weight: 700; }

.pvp-status { font-style: italic; color: #ddd; margin-bottom: 8px !important; font-size: 14px; }
.pvp-social { display: flex; align-items: center; gap: 6px; }
.pvp-social img { display: block; }
.pvp-edit { margin-left: 6px; font-size: 12px; font-variant: small-caps; }

.pvp-rank {
  flex: none;
  width: 140px;
  text-align: center;
  padding: 8px;
  border: 1px solid var(--pvp-line);
  border-radius: 8px;
  background: var(--pvp-panel);
}
.pvp-rank__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pvp-muted); }
.pvp-rank__icon { width: 54px; height: 54px; object-fit: contain; margin: 4px 0; }
.pvp-rank__name { font-weight: 700; font-size: 14px; }
.pvp-rank__next { font-size: 11px; color: var(--pvp-muted); }
.pvp-progress {
  height: 6px;
  margin: 6px 0 4px;
  border-radius: 3px;
  background: #333;
  overflow: hidden;
}
.pvp-progress span { display: block; height: 100%; border-radius: 3px; background: var(--pvp-gold); }

/* ---- Section headings (echo .heir on read_poetry.php) ------------------- */

.pvp-heading {
  margin: 26px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--pvp-line);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pvp-count {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 9px;
  background: var(--pvp-gold);
  color: #000;
  font-size: 12px;
  vertical-align: 2px;
}

.pvp-panel {
  padding: 14px;
  border: 1px solid var(--pvp-line);
  border-radius: 8px;
  background: var(--pvp-panel);
}

/* ---- Stat tiles --------------------------------------------------------- */

.pvp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pvp-tile {
  padding: 12px 10px;
  border: 1px solid var(--pvp-line);
  border-top: 3px solid var(--pvp-gold);
  border-radius: 6px;
  background: var(--pvp-panel);
}
.pvp-tile__value { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; }
.pvp-tile__label { display: block; margin-top: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pvp-muted); }

.pvp-minis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  color: var(--pvp-muted);
  font-size: 12px;
}
.pvp-minis span { color: #fff; font-weight: 700; font-size: 14px; }

.pvp-empty {
  margin-top: 16px !important;
  padding: 14px;
  border: 1px dotted #666;
  border-radius: 6px;
  font-size: 14px;
}

/* ---- Highlights --------------------------------------------------------- */

.pvp-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pvp-highlight {
  padding: 12px 14px;
  border: 1px solid var(--pvp-line);
  border-left: 6px solid var(--pvp-gold-deep);
  border-radius: 6px;
  background: var(--pvp-panel);
  min-width: 0;
}
.pvp-highlight__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pvp-gold); }
.pvp-highlight__title {
  display: block;
  margin: 3px 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pvp-highlight__title:hover { text-decoration: underline; }
.pvp-highlight__value { color: var(--pvp-muted); font-size: 12px; }
.pvp-highlight__value span { color: #fff; font-weight: 700; font-size: 14px; }

/* ---- Activity ----------------------------------------------------------- */

.pvp-periods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.pvp-periods div { font-size: 11px; color: var(--pvp-muted); text-transform: uppercase; }
.pvp-periods span { display: block; font-size: 20px; font-weight: 700; color: #fff; }

.pvp-chart-title { font-size: 12px; color: var(--pvp-muted); margin-bottom: 6px !important; }
.pvp-months { display: flex; gap: 2px; height: 130px; align-items: stretch; }
.pvp-month { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pvp-month:hover .pvp-month__bar { background: var(--pvp-gold-bright); }
.pvp-month__value { height: 16px; font-size: 11px; font-weight: 700; }
.pvp-month__track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid #555;
}
.pvp-month__bar { display: block; width: 70%; max-width: 30px; background: var(--pvp-gold); border-radius: 4px 4px 0 0; }
.pvp-month__label { margin-top: 4px; font-size: 10px; color: var(--pvp-muted); }

/* ---- Categories --------------------------------------------------------- */

.pvp-cat { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.pvp-cat__name {
  flex: none;
  width: 130px;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pvp-cat__name i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: -1px;
}
.pvp-cat__track { flex: 1; height: 12px; }
.pvp-cat__bar { display: block; height: 100%; background: var(--pvp-gold); border-radius: 0 4px 4px 0; }
.pvp-cat:hover .pvp-cat__bar { background: var(--pvp-gold-bright); }
.pvp-cat__count { flex: none; width: 80px; text-align: right; font-weight: 700; }
.pvp-cat__count em { font-style: normal; font-weight: 400; color: var(--pvp-muted); margin-left: 4px; }

/* ---- Top poems table ---------------------------------------------------- */

.pvp-table { width: 100%; border-collapse: collapse; }
.pvp-table th {
  padding: 6px 8px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
  background: #ccc;
}
.pvp-table td { padding: 8px; border-bottom: 1px dotted #555; font-size: 13px; }
.pvp-table th:nth-child(n+3), .pvp-table td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.pvp-table tr:hover td { background: rgba(255, 255, 255, 0.05); }
.pvp-table__rank { width: 20px; font-weight: 700; color: var(--pvp-gold); }
.pvp-table a { color: #fff; text-decoration: none; font-weight: 700; }
.pvp-table a:hover { color: var(--pvp-gold-bright); text-decoration: underline; }

/* ---- Recent poems ------------------------------------------------------- */

.pvp-recent { list-style: none; margin: 0; padding: 0; }
.pvp-recent li { padding: 8px 0; border-bottom: 1px dotted #555; }
.pvp-recent a { display: block; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; }
.pvp-recent a:hover { color: var(--pvp-gold-bright); }
.pvp-recent .pvp-muted { font-size: 11px; }

/* ---- Guestbook ---------------------------------------------------------- */

.pvp-flash { padding: 8px 10px; margin-bottom: 12px !important; border-radius: 5px; font-weight: 700; }
.pvp-flash--ok { color: #04f518; border: 1px solid #04f518; }
.pvp-flash--error { color: #ff6b6b; border: 1px solid #ff3b3b; }

.pvp-owner-note,
.pvp-signin {
  padding: 8px 10px;
  margin-bottom: 12px !important;
  border: 1px solid var(--pvp-gold-deep);
  border-left: 8px solid var(--pvp-gold-deep);
  border-radius: 5px;
  font-size: 13px;
}

.pvp-gb-form { margin-bottom: 14px; }
.pvp-gb-form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.pvp-gb-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  border: 1px solid #555;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  resize: vertical;
}
.pvp-gb-form textarea:focus { outline: none; border-color: var(--pvp-gold); }
.pvp-gb-form__row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11px; }

.pvp-button {
  padding: 7px 16px;
  border: 1px solid #ccad6c;
  border-left: 10px solid #b07706;
  border-radius: 5px;
  background: #ccad6c;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}
.pvp-button:hover { background: var(--pvp-gold-bright); }

.pvp-gb-empty { padding: 6px 0; }
.pvp-notes { list-style: none; margin: 0; padding: 0; }
.pvp-note { display: flex; gap: 12px; padding: 10px 0; border-top: 1px dotted #555; }
.pvp-note__avatar { text-decoration: none; }
.pvp-note__avatar img,
.pvp-note__avatar span {
  display: block;
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #fff;
  object-fit: cover;
}
.pvp-note__avatar span {
  background: #222;
  color: var(--pvp-gold);
  font-size: 20px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
}
.pvp-note__body { flex: 1; min-width: 0; }
.pvp-note__meta { font-size: 12px; margin-bottom: 3px !important; }
.pvp-note__meta a { font-weight: 700; color: #ccc; text-decoration: none; }
.pvp-note__text { font-size: 14px; font-family: Arial, Helvetica, sans-serif; word-wrap: break-word; }
.pvp-note__delete { flex: none; }
.pvp-link-button {
  padding: 2px 6px;
  border: 1px solid #ff3b3b;
  border-radius: 4px;
  background: none;
  color: #ff6b6b;
  font-size: 11px;
  font-variant: small-caps;
  cursor: pointer;
}
.pvp-link-button:hover { background: #ff3b3b; color: #fff; }

.pvp-notfound { font-family: Verdana, Geneva, sans-serif; margin: 12px 0 6px; }

/* ---- Narrow screens ----------------------------------------------------- */

@media (max-width: 640px) {
  .pvp-header { flex-wrap: wrap; }
  .pvp-rank { width: 100%; }
  .pvp-tiles, .pvp-periods { grid-template-columns: repeat(2, 1fr); }
  .pvp-highlights { grid-template-columns: 1fr; }
  .pvp-banner { flex-wrap: wrap; }
  .pvp-cat__name { width: 90px; }
}
