/* JerryTrades v4 — Help Popover (reusable contextual explainer)
   Paired with help_popover_v4.js. Dark navy popover matching the player-group
   header bar; purple ⓘ trigger. Reusable app-wide, not Trade-Finder-specific. */

/* ⓘ trigger */
.jt-help-i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #6d28d9;
  color: #6d28d9;
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font: italic 700 14px/1 Georgia, "Times New Roman", serif;
  padding: 0;
  flex: 0 0 auto;
  vertical-align: middle;
  transition: background .12s, color .12s;
}
.jt-help-i:hover { background: #f3effd; }
.jt-help-i.jt-help-i--on { background: #6d28d9; color: #fff; }

/* popover shell */
.jt-help-pop {
  position: fixed;
  z-index: 100050;
  max-width: 430px;
  width: calc(100vw - 24px);
  background: #211b4e;
  color: #e9e6ff;
  border-radius: 14px;
  padding: 16px 16px 13px;
  box-shadow: 0 18px 48px rgba(15, 10, 45, .42);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
.jt-help-arrow {
  position: absolute;
  top: -7px;
  left: 20px;
  width: 15px;
  height: 15px;
  background: #211b4e;
  transform: rotate(45deg);
  border-radius: 3px;
}
.jt-help-arrow--bottom { top: auto; bottom: -7px; }
.jt-help-close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #9d95d6;
  cursor: pointer;
  font-size: 14px;
  border-radius: 6px;
}
.jt-help-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.jt-help-h { font-size: 15px; font-weight: 800; color: #fff; margin: 0 26px 4px 0; }
.jt-help-sub { font-size: 12px; color: #b7b0e6; margin: 0 0 13px; }

.jt-help-row { display: flex; gap: 11px; margin-bottom: 12px; }
.jt-help-concept {
  flex: 1;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 10px 11px;
}
.jt-help-concept-k {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.jt-help-concept-v { font-size: 11.5px; color: #cfc9f2; line-height: 1.45; }
.jt-help-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.jt-help-dot--win { background: #34d399; }
.jt-help-dot--fair { background: #a78bfa; }
.jt-help-dot--gold { background: #fbbf24; }
.jt-help-dot--blue { background: #60a5fa; }
.jt-help-dot--rose { background: #fb7185; }

.jt-help-mm { width: 100%; border-collapse: collapse; font-size: 11.5px; margin: 0 0 12px; }
.jt-help-mm td {
  padding: 6px 8px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  vertical-align: top;
  color: #d9d5f5;
}
.jt-help-mm td:first-child { color: #a79fe0; font-weight: 700; white-space: nowrap; width: 120px; }
.jt-help-mm tr:first-child td { border-top: 0; }

.jt-help-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.jt-help-foot-grow { flex: 1; }
.jt-help-chip {
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.jt-help-chip--jerry { background: #6d28d9; color: #fff; }
.jt-help-chip--jerry:hover { background: #7c3aed; }
.jt-help-chip--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .28); color: #d9d5f5; }
.jt-help-chip--ghost:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }

@media (max-width: 520px) {
  .jt-help-row { flex-direction: column; }
}
