/* ═══════════════════════════════════════════════════════════
   Ocuport Paywall — thumbnail badge + canvas overlay
   ═══════════════════════════════════════════════════════════ */

/* ── Thumbnail lock (small, on .sm-thumb-preview / .gen-studio-slide-thumb) ── */
.paywall-locked {
  position: relative;
}

.paywall-thumb-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.paywall-thumb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(61, 214, 163, 0.95), rgba(167, 139, 250, 0.95));
  color: #0a0f1c;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(61, 214, 163, 0.3);
}
.paywall-thumb-badge svg {
  width: 11px;
  height: 11px;
}

/* ── Canvas overlay (full-slide paywall) ── */
.paywall-canvas-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(8, 11, 18, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  animation: paywallFadeIn 0.35s ease-out;
}

@keyframes paywallFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.paywall-canvas-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paywall-particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paywall-canvas-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  padding: 32px;
  font-family: Inter, system-ui, sans-serif;
  color: #e8f0f8;
}

.paywall-canvas-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(61, 214, 163, 0.15);
  border: 1px solid rgba(61, 214, 163, 0.4);
  color: #3dd6a3;
  margin-bottom: 24px;
  box-shadow: 0 0 24px rgba(61, 214, 163, 0.25);
}
.paywall-canvas-icon svg {
  width: 24px;
  height: 24px;
}

.paywall-canvas-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.paywall-canvas-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(232, 240, 248, 0.78);
  margin-bottom: 28px;
}

.paywall-canvas-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #3dd6a3, #a78bfa);
  color: #0a0f1c;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 16px rgba(61, 214, 163, 0.35), 0 0 28px rgba(167, 139, 250, 0.25);
}
.paywall-canvas-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(61, 214, 163, 0.45), 0 0 36px rgba(167, 139, 250, 0.35);
}
.paywall-canvas-cta:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

/* Light mode adjustments — only apply when the parent slide is light-themed */
.slide[data-theme-mode="light"] .paywall-canvas-overlay {
  background: rgba(20, 28, 48, 0.7);
}
.slide[data-theme-mode="light"] .paywall-canvas-title {
  color: #ffffff;
}

/* When inside the editor's slide stage, ensure overlay covers the design area */
.paywall-canvas-overlay {
  border-radius: inherit;
}
