/* Sprint 10.2 — Draft share preview banner + share modal */
:root {
  --uv-draft-banner-bg: linear-gradient(90deg, #c89a4a 0%, #e0b870 50%, #c89a4a 100%);
  --uv-draft-banner-fg: #1d2438;
  --uv-draft-banner-h: 44px;
}

/* DRAFT banner shown on /d/:token render */
.uv-draft-banner {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--uv-draft-banner-h);
  background: var(--uv-draft-banner-bg);
  color: var(--uv-draft-banner-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  z-index: 2147483600;
  pointer-events: none;
  user-select: none;
}
.uv-draft-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d2438;
  animation: uvDraftBannerPulse 2.4s ease-in-out infinite;
}
@keyframes uvDraftBannerPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .uv-draft-banner__dot { animation: none; }
}

/* Reserve top padding so the banner doesn't overlap content */
body.uv-mode-draft-share { padding-top: var(--uv-draft-banner-h) !important; }

/* Disable all editor affordances on draft-share view */
body.uv-mode-draft-share .uv-toolbar,
body.uv-mode-draft-share .uv-drawer,
body.uv-mode-draft-share .uv-pencil,
body.uv-mode-draft-share .uv-hero-photo__edit,
body.uv-mode-draft-share .uv-poly-menu { display: none !important; }
body.uv-mode-draft-share [contenteditable] { pointer-events: none !important; -webkit-user-modify: read-only !important; }

/* Disable RSVP submission */
body.uv-mode-draft-share .uv-rsvp-form button[type="submit"],
body.uv-mode-draft-share form.uv-rsvp button[type="submit"] { display: none !important; }
body.uv-mode-draft-share .uv-rsvp-form::after,
body.uv-mode-draft-share form.uv-rsvp::after {
  content: "RSVP disabled in draft preview";
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #888;
  font-style: italic;
  text-align: center;
}

/* Share Draft modal */
.uv-share-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 28, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483640;
  padding: 16px;
  opacity: 0;
  transition: opacity 200ms var(--uv-ease-out, ease-out);
}
.uv-share-modal[data-open="true"] { opacity: 1; }

.uv-share-modal__panel {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1d2438;
  transform: translateY(8px) scale(0.98);
  transition: transform 220ms var(--uv-ease-spring, ease-out);
}
.uv-share-modal[data-open="true"] .uv-share-modal__panel { transform: translateY(0) scale(1); }

.uv-share-modal__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.uv-share-modal__sub {
  font-size: 14px;
  color: #5a6172;
  line-height: 1.45;
  margin: 0 0 18px;
}

.uv-share-modal__field {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.uv-share-modal__input {
  flex: 1;
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid #d4d8e0;
  border-radius: 8px;
  background: #f6f8fb;
  color: #1d2438;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.uv-share-modal__input:focus { outline: 2px solid #c89a4a; outline-offset: 1px; }
.uv-share-modal__copy {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #1d2438;
  color: #fff;
  cursor: pointer;
  transition: background 160ms var(--uv-ease-out, ease-out), transform 100ms var(--uv-ease-out, ease-out);
}
.uv-share-modal__copy:hover { background: #2a3450; }
.uv-share-modal__copy:active { transform: scale(0.97); }
.uv-share-modal__copy[data-copied="true"] { background: #2f7d4e; }

.uv-share-modal__meta {
  font-size: 12px;
  color: #6a7280;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.uv-share-modal__meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c89a4a;
}

.uv-share-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #eef0f4;
}
.uv-share-modal__btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: #5a6172;
  transition: background 140ms var(--uv-ease-out, ease-out);
}
.uv-share-modal__btn:hover { background: #f0f2f6; }
.uv-share-modal__btn--danger { color: #b73a3a; }
.uv-share-modal__btn--danger:hover { background: #fbeaea; }

/* Toolbar share button (gold accent) */
.uv-toolbar-btn--share .uv-toolbar-btn__icon { color: #c89a4a; }

@media (max-width: 520px) {
  .uv-share-modal__panel { padding: 22px 18px 18px; border-radius: 14px; }
  .uv-share-modal__field { flex-direction: column; }
  .uv-share-modal__copy { width: 100%; }
}
