/* "See my ad at work" — sponsor ad preview (Lee, 2026-11-08).
 * Companion to sponsor-ad-preview.js. The ticker itself is styled by
 * the portal bundle (.garage-ticker / .garage-ad-card); this file only
 * styles what the bolt-on adds: the sponsor-portal bar, the preview
 * caption, the blinking highlight on the injected card, and the
 * member's-eye preview sheet used for sponsor-only logins. */

/* --- the bar in the sponsor back office, under the submission form --- */
.rpm-adpreview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--gold, #c9a227);
  border-radius: 10px;
  background: var(--surface, #fff);
}
.rpm-adpreview-bar-text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 14px;
}
/* Showcase-only honesty line (register #36): a full-width quiet caption
 * under the bar's own row — the bar is flex-wrap, so it takes its own
 * line inside the bar and pushes nothing off it. */
.rpm-adpreview-bar-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12.5px;
  color: var(--dim, #666);
}
.rpm-adpreview-go {
  white-space: nowrap;
}
.rpm-adpreview-dismiss {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--dim, #666);
  font-size: 15px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}

/* --- caption above the ticker while previewing ------------------------ */
.rpm-adpreview-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px dashed var(--gold, #c9a227);
  border-radius: 10px;
  background: var(--surface, #fff);
}
.rpm-adpreview-note {
  flex: 1 1 280px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}
.rpm-adpreview-done {
  border: 1px solid var(--border, #ccc);
  border-radius: 8px;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* --- the blinking highlight on the sponsor's just-created ad ---------- */
.garage-ad-card.rpm-adpreview-card {
  position: relative;
  z-index: 1;
  animation: rpm-adpreview-blink 1.15s ease-in-out infinite;
}
@keyframes rpm-adpreview-blink {
  0%, 100% {
    box-shadow: 0 0 0 2px #f5b301, 0 0 0 0 rgba(245, 179, 1, 0);
  }
  50% {
    box-shadow: 0 0 0 3px #f5b301, 0 0 20px 6px rgba(245, 179, 1, 0.8);
  }
}
@media (prefers-reduced-motion: reduce) {
  .garage-ad-card.rpm-adpreview-card {
    animation: none;
    outline: 3px solid #f5b301;
    outline-offset: 2px;
  }
}

/* --- member's-eye preview sheet (sponsor-only logins) ----------------- */
.rpm-adpreview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow-y: auto;
  background: rgba(12, 12, 14, 0.62);
  padding: 28px 14px;
}
.rpm-adpreview-sheet {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 22px 26px;
  border-radius: 14px;
  background: var(--bg, #f6f4ef);
  color: var(--text, #1c1c1e);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.rpm-adpreview-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.rpm-adpreview-sheet-head h2 {
  margin: 2px 0 0;
}
.rpm-adpreview-back {
  border: 1px solid var(--border, #ccc);
  border-radius: 8px;
  background: var(--surface, #fff);
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
