/*
 * Write a poem (poetry_entry.php).
 *
 * Builds on home.css (panels, buttons, chips): this file adds the quote,
 * the form fields, the category pills, the error and "posted" panels, the
 * contest rules box and the phone rules for #pv-entry. main.css still styles
 * the header, the login box and the side bar.
 */

/* ---- Intro ------------------------------------------------------------ */
.pve-intro { display: flex; flex-direction: column; gap: 12px; }
.pve-intro__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pve h1 { margin: 0; font-size: 26px; line-height: 1.15; color: #fff; }
.pve-quote { margin: 0; font-size: 15px; font-style: italic; color: #dcdcdc; }
.pve-quote cite { display: block; margin-top: 4px; font-size: 12px; font-style: normal; color: var(--pvh-muted); }
.pvh a.pve-speak { align-self: flex-start; gap: 8px; min-height: 44px; height: auto; text-transform: none; }
.pve-speak svg { color: var(--pvh-gold); flex: none; }

/* ---- Form ------------------------------------------------------------- */
.pve-form { display: flex; flex-direction: column; gap: 18px; }
.pve-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pve-label { padding: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--pvh-gold-button); }
.pve-cats .pve-label { margin-bottom: 4px; }
.pve-form input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #474747;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
}
.pve-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 360px;
  padding: 16px;
  border: 1px solid #474747;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
}
.pve-form input[type="text"]:focus-visible,
.pve-form textarea:focus-visible { outline: 2px solid var(--pvh-gold-bright); outline-offset: 1px; }
.pve-form .cke { border-color: #474747; border-radius: 6px; overflow: hidden; }
.pve-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font-size: 12px; color: var(--pvh-muted); }

/* Category pills: a real radio inside each label, drawn as a pill. */
.pve-cats__list { display: flex; flex-wrap: wrap; gap: 8px; }
.pve-cat { position: relative; display: inline-flex; cursor: pointer; }
.pve-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pve-cat span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #3a3a3a;
  border-radius: 20px;
  color: #e6e6e6;
  font-size: 13px;
}
.pve-cat:hover span { border-color: var(--pvh-gold); }
.pve-cat input:checked + span { border-color: var(--pvh-gold-button); background: var(--pvh-gold-button); color: #000; font-weight: 700; }
.pve-cat input:focus-visible + span { outline: 2px solid var(--pvh-gold-bright); outline-offset: 2px; }

.pve-fb {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--pvh-line);
  border-radius: 6px;
  background: #111;
  font-size: 13px;
  color: #e6e6e6;
  cursor: pointer;
}
.pve-fb input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--pvh-gold-button); }
.pve-fb strong { color: #fff; }

.pve-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid #262626; }
.pve-submit .pvh-btn { height: 48px; padding: 0 28px; border: 0; font-family: inherit; font-size: 14px; cursor: pointer; }
.pve-submit p { flex: 1 1 260px; }

/* ---- Errors ----------------------------------------------------------- */
.pve-alert { padding: 14px 16px; border: 1px solid #8a2a2a; border-radius: 6px; background: #2a0f0f; color: #ffd0d0; font-size: 13px; }
.pve-alert:focus { outline: 2px solid #ff9b9b; outline-offset: 2px; }
.pve-alert__head { margin-bottom: 4px !important; font-size: 14px; font-weight: 700; }
.pve .pve-alert ul { list-style: disc; padding-left: 18px; }
.pve .pve-alert a { color: #ffd0d0; }
.pve-field--bad input[type="text"],
.pve-field--bad textarea,
.pve-field--bad .cke { border: 2px solid #e05a5a !important; }
.pve-err { font-size: 12px; font-weight: 700; color: #ff9b9b; }

/* ---- Posted ----------------------------------------------------------- */
.pve-done {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--pvh-gold-deep);
  background: linear-gradient(160deg, #1d1606, #0e0e0e 60%);
}
.pve-done__head { display: flex; align-items: center; gap: 12px; }
.pve-done__tick { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--pvh-gold-button); }
.pve-done__tick::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 9px;
  width: 9px;
  height: 17px;
  border: solid #000;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.pve .pve-done h2 { margin: 0; font-size: 20px; text-transform: none; color: #fff; }
.pvh a.pve-done__title { color: #fff; font-size: 15px; font-weight: 700; }
.pve-done__fans { padding: 10px 14px !important; border-radius: 6px; background: #111; font-size: 13px; color: #e6e6e6; }
.pve-done__fans strong { color: var(--pvh-gold-bright); }

/* ---- Contest rules (side bar) ----------------------------------------- */
.pve-rules { text-align: left; font-size: 13px; color: #dcdcdc; }
.pve-rules h2 { margin-bottom: 8px; }
.pve-rules p { margin-bottom: 12px !important; }
.pve-rules h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--pvh-gold-bright); }
.pvh .pve-rules ol { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pve-rules strong { color: #fff; }
.pve-rules .pve-rules__end { font-weight: 700; color: var(--pvh-gold-bright); }

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

  .pve h1 { font-size: 24px; }
  .pvh a.pve-speak { align-self: stretch; justify-content: center; }
  .pve-cat span { min-height: 44px; padding: 0 12px; }
  .pve-form textarea { min-height: 300px; }
  .pve-submit .pvh-btn { width: 100%; height: 52px; }
  .pve-submit p { text-align: center; }
}
