/*
 * Home page (index.php).
 *
 * Loaded after main.css with the palette of read_poetry.css: translucent
 * overlay panels with #303030 hairlines, white Helvetica on the hazard-stripe
 * background, gold buttons (#ccad6c with a #947113 edge), #d3b06b links and
 * the #ffcc2f hover. Scoped under .pvh / #pv-home so nothing leaks.
 *
 * The contest box (includes/contest.inc.php: the 336x280 ad beside the
 * love_today and promo images) and the shared login box are left exactly as
 * main.css styles them.
 */

.pvh {
  --pvh-gold: #d3b06b;
  --pvh-gold-button: #ccad6c;
  --pvh-gold-deep: #947113;
  --pvh-gold-bright: #ffcc2f;
  --pvh-line: #303030;
  --pvh-muted: #a8a8a8;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  text-align: left;
}
.pvh p { margin: 0; }
.pvh ul, .pvh ol { list-style: none; margin: 0; padding: 0; }
.pvh a { color: var(--pvh-gold); }
.pvh a:hover { color: var(--pvh-gold-bright); }
.pvh a:focus-visible, .pvh summary:focus-visible {
  outline: 2px solid var(--pvh-gold-bright);
  outline-offset: 1px;
}
.pvh h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}
.pvh-main, .pvh-side { display: flex; flex-direction: column; gap: 14px; }
.pvh-side { margin-top: 14px; }
.pvh-muted { color: var(--pvh-muted); font-size: 12px; }
.pvh-center { margin-top: 16px !important; text-align: center; }
.pvh-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--pvh-gold-bright); }

.pvh-panel {
  padding: 20px 24px;
  border: 1px solid var(--pvh-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.82);
}
.pvh-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.pvh-head a { font-size: 12px; }

/* ---- Buttons --------------------------------------------------------- */
.pvh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-left: 8px solid var(--pvh-gold-deep);
  border-radius: 5px;
  background: var(--pvh-gold-button);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  box-sizing: border-box;
}
.pvh a.pvh-btn { color: #000; }
.pvh a.pvh-btn:hover { background: var(--pvh-gold-bright); color: #000; }
.pvh-btn--ghost { border: 1px solid var(--pvh-gold-deep); background: transparent; }
.pvh a.pvh-btn--ghost { color: #fff; }
.pvh a.pvh-btn--ghost:hover { background: #222; color: #fff; }

/* ---- Hero ------------------------------------------------------------ */
.pvh-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.pvh-hero__text { flex: 1 1 320px; min-width: 0; }
.pvh-hero h1 { margin: 0 0 4px; font-size: 22px; line-height: 1.25; color: #fff; }
.pvh-hero p { font-size: 13px; color: #cfcfcf; }
.pvh-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Avatars and chips ------------------------------------------------ */
.pvh-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 72px;
  height: 72px;
  border: 2px solid var(--pvh-gold);
  border-radius: 50%;
  background: #222;
  object-fit: cover;
  color: var(--pvh-gold);
  font-size: 28px;
  font-weight: 700;
  box-sizing: border-box;
}
.pvh-avatar--xs { width: 28px; height: 28px; border-width: 1px; font-size: 12px; }
.pvh-avatar--lg { width: 96px; height: 96px; border-width: 3px; font-size: 38px; margin: 12px auto 8px; }
.pvh-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.pvh-chip--new { background: var(--pvh-gold-bright); color: #000; }
.pvh-chip--karma { background: #1a2a12; color: #b5e48c; }
.pvh-chip--gold { background: #3c2e08; color: var(--pvh-gold-bright); }
.pvh-chip--ruby { background: #3a0c0c; color: #ff8a8a; }
.pvh-chip--night { background: #1c1c2e; color: #c9c9ff; }
.pvh-pro {
  padding: 1px 6px;
  border: 2px solid var(--pvh-gold-deep);
  border-left-width: 6px;
  border-radius: 5px;
  color: var(--pvh-gold);
  font-size: 9px;
  font-weight: 700;
}

/* ---- Videos and lists ------------------------------------------------- */
.pvh-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pvh-videos a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.pvh .pvh-videos a { color: #fff; }
.pvh-videos__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #333; border-radius: 6px; background: #151515; }
.pvh-videos__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pvh-videos__by { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pvh-videos__by strong { display: block; font-size: 13px; }
.pvh-videos__by .pvh-muted { display: block; }

.pvh-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #262626;
  font-size: 13px;
  text-decoration: none;
  text-align: left;
}
.pvh .pvh-list a { color: #fff; }
.pvh .pvh-list a:hover { color: var(--pvh-gold-bright); }
.pvh-list a span { flex: none; color: var(--pvh-muted); font-size: 11px; }
.pvh-list--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 24px; }

/* ---- Poems: stacked, the newest featured ------------------------------ */
.pvh-feed { display: flex; flex-direction: column; gap: 14px; }
.pvh-poem {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--pvh-line);
  border-radius: 8px;
  background: #111;
}
.pvh-poem__poet {
  flex: 0 1 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.pvh .pvh-poem__name { color: #fff; font-weight: 700; text-decoration: none; word-break: break-word; }
.pvh-social { display: flex; gap: 4px; }
.pvh-social img { display: block; }
.pvh-awards { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pvh-poem__body { flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pvh-poem h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.pvh .pvh-poem h3 a { color: #fff; text-decoration: none; }
.pvh .pvh-poem h3 a:hover { color: var(--pvh-gold-bright); }
.pvh-poem__text {
  font-size: 14px;
  line-height: 1.6;
  color: #dcdcdc;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.pvh-foul {
  padding: 8px 10px;
  border-left: 4px solid #f00;
  background: #2a0c0c;
  font-size: 12px;
  color: #ffb3b3;
}
.pvh-poem__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #262626;
  font-size: 12px;
  color: var(--pvh-muted);
}
.pvh-more { font-weight: 700; text-transform: uppercase; text-decoration: none; }
.pvh-fire { color: #ff9a3c; font-weight: 700; }
.pvh-fire svg { vertical-align: -1px; }

.pvh-poem--featured {
  gap: 24px;
  padding: 26px;
  border: 2px solid var(--pvh-gold-deep);
  border-radius: 10px;
  background: linear-gradient(160deg, #1d1606, #0e0e0e 55%);
}
.pvh-poem--featured .pvh-poem__poet { flex: 1 1 210px; gap: 8px; }
.pvh-poem--featured .pvh-avatar { width: 200px; height: 200px; border-width: 4px; font-size: 80px; }
.pvh-poem--featured .pvh-poem__name { font-size: 24px; }
.pvh-poem--featured .pvh-pro { font-size: 11px; }
/* 210 + 270 + gap fits the 643px column beside the poet; phones stack. */
.pvh-poem--featured .pvh-poem__body { flex: 999 1 270px; gap: 14px; }
.pvh-poem--featured h3 { font-size: 32px; line-height: 1.15; }
.pvh-poem--featured .pvh-poem__text { font-size: 19px; line-height: 1.7; color: #f2f2f2; }
.pvh-poem--featured .pvh-poem__foot { font-size: 13px; }

/* ---- Topics (the word cloud, as tidy chips) --------------------------- */
#pv-home .pvh-tags { display: flex; flex-wrap: wrap; gap: 6px; width: auto; margin: 12px 0 0; border: 0; }
#pv-home .pvh-tags .word {
  padding: 5px 10px;
  border: 1px solid #3a3a3a;
  border-radius: 14px;
  color: #e6e6e6;
  font: 12px Helvetica, Verdana, Arial, sans-serif;
  letter-spacing: 0;
}

/* ---- Sidebar --------------------------------------------------------- */
.pvh-side .pvh-panel { padding: 18px 20px; }
.pvh-poetcard { text-align: center; }
.pvh-poetcard__name { font-size: 17px; font-weight: 700; }
.pvh .pvh-poetcard__name a { color: #fff; text-decoration: none; }
.pvh-poetcard .pvh-list { margin-top: 12px; }
.pvh-leaders li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #262626;
  font-size: 13px;
}
.pvh-leaders__n { width: 22px; text-align: right; font-weight: 700; color: var(--pvh-muted); }
.pvh-leaders__n--1 { color: var(--pvh-gold-bright); }
.pvh-leaders__n--2 { color: #d9d9d9; }
.pvh-leaders__n--3 { color: #cd7f32; }
.pvh-leaders__u { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pvh-leaders__p { font-weight: 700; color: var(--pvh-gold-button); }
#pv-home #facebook_panel { margin-top: 10px; overflow: hidden; }
.pvh-about h2 { margin-bottom: 10px; }
.pvh-about p { margin-bottom: 8px; font-size: 13px; color: #dcdcdc; }
.pvh-about .pvh-about__cta { font-weight: 700; color: var(--pvh-gold-bright); }
.pvh-about summary { cursor: pointer; font-size: 12px; color: var(--pvh-gold); }
.pvh-about details p:first-of-type { margin-top: 8px; }
.pvh-sky { display: flex; justify-content: center; }

/* ---- Phones ---------------------------------------------------------- */
@media (max-width: 760px) {
  #pv-home #site-wrapper,
  #pv-home #top-wrapper,
  #pv-home #middle-wrapper,
  #pv-home #left-col,
  #pv-home #right-col,
  #pv-home #bottom-wrapper,
  #pv-home #bottom-menu {
    width: auto;
    float: none;
  }
  #pv-home #site-wrapper { padding: 0 12px; }
  #pv-home #top-wrapper { height: auto; overflow: hidden; }
  #pv-home #top-wrapper #logo { float: none; }
  #pv-home #logo img { max-width: 70%; height: auto; }
  #pv-home #top-wrapper #top-menu { float: none; }
  #pv-home #bottom-wrapper { height: auto; }
  #pv-home #right-col { padding: 0; margin-top: 14px; }

  .pvh-panel { padding: 18px 16px; }
  .pvh-poem, .pvh-poem--featured { padding: 18px 16px; }
  .pvh-poem--featured .pvh-avatar { width: 150px; height: 150px; font-size: 60px; }
  .pvh-poem--featured h3 { font-size: 26px; }
  .pvh-poem--featured .pvh-poem__text { font-size: 17px; }
  .pvh-hero__actions, .pvh-hero__actions .pvh-btn { flex: 1 1 auto; }
}
