/* =============================================================
   quiz-boost.css — engagement layer (Increment 1)
   Added 2026-06-25. Purely additive; pairs with quiz-boost.js.
   Enhances completion + virality without touching quiz-engine.js.
   ============================================================= */

/* --- Start-screen trust chips --- */
.ps-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.25rem;
}
.ps-trust-chips .ps-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}
.ps-trust-chips .ps-chip svg,
.ps-trust-chips .ps-chip .ps-chip-tick {
  color: #fff;
  font-weight: 700;
}

/* --- Milestone encouragement toast --- */
.ps-toast {
  position: relative;
  margin: 0 auto 1rem;
  max-width: 560px;
  background: var(--card-color, #0D9488);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.ps-toast.ps-toast-show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Confetti canvas overlay --- */
.ps-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* --- Animated score count-up emphasis --- */
.score-number.ps-counting {
  font-variant-numeric: tabular-nums;
}

/* --- Honest social-proof line on results --- */
.ps-social-proof {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--card-color-dark, #475467);
  background: rgba(var(--card-color-rgb, 108,99,255), 0.08);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin: 0.75rem auto 0;
  max-width: max-content;
}

/* --- Social share row on results --- */
.ps-share-row {
  margin: 1.25rem auto 0;
  max-width: 560px;
  text-align: center;
}
.ps-share-row .ps-share-label {
  font-size: 0.85rem;
  color: #667085;
  margin-bottom: 0.6rem;
}
.ps-share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.ps-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.ps-share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.ps-share-btn:active {
  transform: translateY(0);
}
.ps-share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.ps-share-x { background: #000; }
.ps-share-wa { background: #25D366; }
.ps-share-fb { background: #1877F2; }
.ps-share-copy { background: #475467; }
.ps-share-copy.ps-copied { background: #12B76A; }

/* --- Email capture card (results page) --- */
.ps-email-capture {
  margin: 1.5rem auto 0;
  max-width: 560px;
  background: linear-gradient(135deg, rgba(var(--card-color-rgb, 108,99,255), 0.10), rgba(var(--card-color-rgb, 108,99,255), 0.04));
  border: 1px solid rgba(var(--card-color-rgb, 108,99,255), 0.25);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.35rem;
  text-align: center;
}
.ps-email-head {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d2939;
}
.ps-email-sub {
  font-size: 0.85rem;
  color: #667085;
  margin: 0.35rem 0 0.9rem;
  line-height: 1.45;
}
.ps-email-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ps-email-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 0.95rem;
}
.ps-email-input:focus {
  outline: none;
  border-color: var(--card-color, #6C63FF);
  box-shadow: 0 0 0 3px rgba(var(--card-color-rgb, 108,99,255), 0.18);
}
.ps-email-submit { flex: 0 0 auto; }
/* Honeypot — visually hidden, off-screen, not display:none (bots skip those) */
.ps-email-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.ps-email-msg { font-size: 0.82rem; margin-top: 0.55rem; min-height: 1em; }
.ps-email-err { color: #D92D20; }
.ps-email-success {
  font-size: 1rem;
  font-weight: 700;
  color: #12B76A;
  padding: 0.4rem 0;
}

@media (max-width: 480px) {
  .ps-email-form { flex-direction: column; }
  .ps-email-submit { width: 100%; }
}

/* --- Save & resume banner (start screen) --- */
.ps-resume-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1d2939;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  max-width: 560px;
}
.ps-resume-banner .ps-resume-text {
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1 1 220px;
}
.ps-resume-banner .ps-resume-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.ps-resume-banner .btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}
.ps-resume-banner .ps-resume-restart {
  background: transparent;
  border: 1px solid #d0d5dd;
  color: #475467;
}

/* --- Related tests block when shown under results --- */
.related-tests.ps-under-results {
  margin-top: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .ps-toast { transition: opacity 0.2s linear; transform: none; }
  .ps-share-btn { transition: none; }
}

@media (max-width: 600px) {
  .ps-share-buttons { gap: 0.45rem; }
  .ps-share-btn { padding: 0.55rem 0.8rem; font-size: 0.8rem; }
}
