/* Smart Links Reward 1.1.0 — minimal opt-in rewarded popup, related-link cards, GAM units. */

:root {
  --slr-purple: #4f46e5;
  --slr-purple-dark: #4338ca;
  --slr-accent: #4f46e5;
  --slr-text: #111827;
  --slr-muted: #6b7280;
}

.slr-root,
.slr-root * {
  box-sizing: border-box;
}

.slr-root {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--slr-text);
}

.slr-shortcode-mount {
  display: none !important;
}

.slr-root-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem max(1rem, var(--slr-anchor-clearance, 0px));
  pointer-events: none;
  box-sizing: border-box;
}

.slr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 30, 0.55);
  pointer-events: auto;
}

.slr-backdrop-blur {
  --slr-backdrop-blur: 38px;
  -webkit-backdrop-filter: blur(var(--slr-backdrop-blur, 38px));
  backdrop-filter: blur(var(--slr-backdrop-blur, 38px));
}

.slr-root-modal.slr-reward-visible .slr-card {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html.slr-modal-open,
body.slr-modal-open {
  overflow: hidden;
}

.slr-card {
  background: #fff;
  color: var(--slr-text);
  width: 100%;
  max-width: 24.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.22);
  padding: 0 1.35rem 1.25rem;
  position: relative;
  overflow: auto;
}

.slr-root-modal .slr-card {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: min(24.5rem, 100%);
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  z-index: 1;
  pointer-events: auto;
}

.slr-root-inline .slr-card {
  margin: 1.25rem auto;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.12);
  border: 1px solid #e5e7eb;
}

.slr-progress {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 6px;
  margin: 0 -1.35rem 0.85rem;
  background: #e5e7eb;
  border-radius: 1.25rem 1.25rem 0 0;
  overflow: hidden;
}

.slr-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--slr-purple);
  border-radius: 0 4px 4px 0;
  transition: width 0.25s ease;
}

.slr-close {
  position: absolute;
  top: 0.85rem;
  right: 0.7rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.slr-close:hover,
.slr-close:focus-visible {
  background: #e5e7eb;
  outline: 2px solid var(--slr-purple);
  outline-offset: 2px;
}

.slr-body {
  padding: 0.15rem 0.15rem 0;
  text-align: center;
}

.slr-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slr-muted);
  font-weight: 600;
}

.slr-title {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 2.6rem;
}

.slr-intro,
.slr-subtitle,
.slr-status,
.slr-count {
  margin: 0 0 1rem;
  color: var(--slr-muted);
  text-align: center;
}

.slr-prompt {
  margin: 0 0 1.1rem;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 0.5rem;
}

.slr-answers {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.slr-answer {
  appearance: none;
  border: 0;
  background: var(--slr-purple);
  color: #fff;
  border-radius: 999px;
  min-height: 3.15rem;
  padding: 0.85rem 1.1rem;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}

.slr-answer:hover,
.slr-answer:focus-visible,
.slr-answer.is-selected {
  background: var(--slr-purple-dark);
  outline: 2px solid var(--slr-purple-dark);
  outline-offset: 2px;
}

.slr-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  min-height: 3.15rem;
  padding: 0.85rem 1.1rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.slr-btn-primary,
.slr-reward-watch {
  background: var(--slr-accent, var(--slr-purple));
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--slr-accent, var(--slr-purple)) 30%, transparent);
}

.slr-btn-primary:hover,
.slr-btn-primary:focus-visible,
.slr-reward-watch:hover,
.slr-reward-watch:focus-visible {
  background: var(--slr-purple-dark);
  color: #fff;
  outline: 2px solid var(--slr-purple-dark);
  outline-offset: 2px;
}

.slr-btn-no,
.slr-btn-secondary-fill {
  background: #fff;
  color: var(--slr-purple);
  border: 2px solid var(--slr-purple);
  margin-top: 0.65rem;
  min-height: 3.15rem;
  font-weight: 700;
}

.slr-btn-no:hover,
.slr-btn-no:focus-visible,
.slr-btn-secondary-fill:hover,
.slr-btn-secondary-fill:focus-visible {
  background: #eef2ff;
  outline: 2px solid var(--slr-purple);
  outline-offset: 2px;
}

.slr-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.slr-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.slr-skip,
.slr-btn-secondary {
  background: none;
  border: 0;
  color: var(--slr-purple);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: underline;
  cursor: pointer;
  min-height: 2.4rem;
  padding: 0.25rem 0.4rem;
}

.slr-skip:hover,
.slr-skip:focus-visible,
.slr-btn-secondary:hover,
.slr-btn-secondary:focus-visible {
  outline: 2px solid var(--slr-purple);
  outline-offset: 2px;
  border-radius: 0.3rem;
}

.slr-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin: 1.4rem 0 1.1rem;
  min-height: 1.5rem;
}

.slr-dots span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--slr-purple);
  animation: slr-dot 1s ease-in-out infinite;
}

.slr-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.slr-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slr-dot {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-6px);
  }
}

.slr-preview {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  gap: 0.8rem;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #f9fafb;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.slr-preview:hover,
.slr-preview:focus-visible {
  border-color: var(--slr-purple);
  outline: 2px solid var(--slr-purple);
  outline-offset: 1px;
}

.slr-thumb {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.65rem;
  flex: 0 0 auto;
  background: #e5e7eb;
}

.slr-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.3rem;
}

.slr-preview-body,
.slr-result-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  justify-content: center;
}

.slr-preview-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slr-purple);
  font-weight: 700;
}

.slr-preview-title,
.slr-result-title {
  font-weight: 700;
  text-align: left;
}

.slr-result-excerpt {
  font-size: 0.9rem;
  color: #4b5563;
  text-align: left;
}

.slr-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.slr-reward-notice {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #374151;
  text-align: center;
}

.slr-optional {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slr-muted);
  font-weight: 700;
  text-align: center;
}

.slr-see-all {
  margin: 0.85rem 0 0;
  background: none;
  border: 0;
  color: var(--slr-purple);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
  min-height: 2.4rem;
}

.slr-see-all:hover,
.slr-see-all:focus-visible {
  outline: 2px solid var(--slr-purple);
  outline-offset: 2px;
  border-radius: 0.3rem;
}

.slr-results {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
  text-align: left;
}

.slr-results.is-open {
  display: flex;
}

.slr-result {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  background: #f9fafb;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.slr-result:hover,
.slr-result:focus-visible {
  border-color: var(--slr-purple);
  outline: 2px solid var(--slr-purple);
  outline-offset: 1px;
}

.slr-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .slr-root * {
    transition: none !important;
    animation: none !important;
  }
}


/* In-article results block (after the quiz). */
.slr-inline-results {
  margin: 1.75rem 0;
  width: 100%;
  max-width: 100%;
}

.slr-inline-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

@media (min-width: 768px) {
  .slr-inline-kicker {
    margin: 32px 0;
  }
}

.slr-inline-kicker-line {
  flex: 1 1 auto;
  height: 1px;
  background: #e4e4e7;
}

.slr-inline-kicker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #9a9a9a;
  white-space: nowrap;
}

.slr-inline-kicker-label svg,
.slr-inline-disclaimer svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.slr-inline-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #767676;
}

@media (min-width: 640px) {
  .slr-inline-disclaimer {
    margin-top: 24px;
    font-size: 14px;
    line-height: 20px;
  }
}

/* Legacy class kept so older markup still has a heading style. */
.slr-inline-heading {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 0 0 12px;
  line-height: 1.5;
}

.slr-display-slot {
  margin: 12px 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .slr-display-slot {
    margin: 24px 0;
  }
}

.slr-display-label {
  margin: 0 0 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
  line-height: 1.4;
}

.slr-display-unit {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: visible;
}

.slr-inline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slr-inline-card {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  box-sizing: border-box;
  border: none;
  border-radius: 12px;
  background: #1a56e8;
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  min-height: 72px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: background 0.15s ease;
}

.slr-inline-card:hover,
.slr-inline-card:focus {
  background: #1546c4;
  color: #fff;
  text-decoration: none !important;
}

.slr-inline-card:focus-visible {
  outline: 3px solid #d4e50e;
  outline-offset: 2px;
}

.slr-inline-badge {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #d4e50e;
  color: #111;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.slr-inline-card-title {
  flex: 1 1 auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.slr-inline-arrow {
  flex: 0 0 auto;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  padding-left: 4px;
}

@media (max-width: 600px) {
  .slr-inline-card {
    padding: 14px;
    min-height: 68px;
    gap: 12px;
  }

  .slr-inline-card-title {
    font-size: 0.98rem;
  }

  .slr-inline-badge {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 1rem;
  }
}

.slr-inline-card.is-slr-loading {
  pointer-events: none;
  cursor: wait;
}

.slr-inline-loading {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 1.5em;
}

.slr-inline-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: slr-spin 0.7s linear infinite;
  flex: 0 0 18px;
}

.slr-inline-loading-label {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

@keyframes slr-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .slr-inline-spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.35);
    background: #fff;
  }
}

.slr-result-reward .slr-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slr-result-reward .slr-btn-no {
  width: 100%;
  text-align: center;
}


/* --- 1.1.0 minimal rewarded offer --------------------------------------- */

.slr-result-reward {
  --slr-accent: #4f46e5;
}

.slr-popup-minimal .slr-backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.slr-popup-minimal .slr-card,
.slr-card-minimal {
  max-width: 360px;
  width: min(360px, 100%);
  border-radius: 20px;
  padding: 28px 22px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.06);
  overflow: visible;
}

.slr-popup-minimal .slr-close {
  top: 10px;
  right: 10px;
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1.35rem;
  background: #f3f4f6;
  color: #1f2937;
}

.slr-popup-minimal .slr-body {
  padding: 0;
  text-align: center;
}

.slr-offer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 14px;
  color: var(--slr-accent, var(--slr-purple));
}

.slr-offer-icon-svg {
  display: block;
}

.slr-popup-minimal .slr-title {
  margin: 0 0 6px;
  padding: 0 1.8rem;
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.slr-popup-minimal .slr-subtitle {
  margin: 0 0 14px;
  padding: 0 0.4rem;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 400;
  color: #4b5563;
}

.slr-article-preview {
  margin: -6px 0 16px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.slr-popup-minimal .slr-actions {
  gap: 6px;
}

.slr-popup-minimal .slr-reward-watch {
  position: relative;
  overflow: hidden;
  gap: 8px;
  min-height: 3.25rem;
  border-radius: 999px;
  background: var(--slr-accent, var(--slr-purple));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--slr-accent, var(--slr-purple)) 38%, transparent);
  animation: slr-watch-pulse 2.4s ease-in-out infinite;
}

.slr-popup-minimal .slr-reward-watch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 64%);
  transform: translateX(-120%);
  animation: slr-watch-shine 2.8s ease-in-out 0.6s infinite;
  pointer-events: none;
}

.slr-popup-minimal .slr-reward-watch:hover,
.slr-popup-minimal .slr-reward-watch:focus-visible {
  background: color-mix(in srgb, var(--slr-accent, var(--slr-purple)) 84%, #000);
  color: #fff;
  outline: 2px solid color-mix(in srgb, var(--slr-accent, var(--slr-purple)) 84%, #000);
  outline-offset: 2px;
}

.slr-watch-play {
  flex: 0 0 auto;
  display: block;
}

.slr-watch-label {
  position: relative;
  z-index: 1;
}

.slr-watch-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  flex: 0 0 auto;
  animation: slr-spin 0.7s linear infinite;
}

.slr-reward-watch.is-slr-loading .slr-watch-spinner {
  display: inline-block;
}

.slr-reward-watch.is-slr-loading .slr-watch-play {
  display: none;
}

.slr-reward-watch.is-slr-loading {
  animation: none;
  cursor: wait;
}

.slr-reward-watch.is-slr-loading::after {
  display: none;
}

/* Secondary text button: always visible, min 14px, contrast ≥ 4.5:1 on white. */
.slr-popup-minimal .slr-btn-no {
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 2px 0 0;
  padding: 10px 8px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
  color: #374151; /* ~10:1 on #fff */
  text-decoration: underline;
  text-underline-offset: 2px;
}

.slr-popup-minimal .slr-btn-no:hover,
.slr-popup-minimal .slr-btn-no:focus-visible {
  background: #f3f4f6;
  color: #111827;
  outline: 2px solid #111827;
  outline-offset: 2px;
}

@keyframes slr-watch-pulse {
  0%, 100% {
    box-shadow: 0 10px 22px color-mix(in srgb, var(--slr-accent, var(--slr-purple)) 38%, transparent);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 12px 28px color-mix(in srgb, var(--slr-accent, var(--slr-purple)) 52%, transparent);
    transform: scale(1.015);
  }
}

@keyframes slr-watch-shine {
  0%, 35% { transform: translateX(-120%); }
  65%, 100% { transform: translateX(120%); }
}

@keyframes slr-pop-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.slr-pop-enter {
  animation: slr-pop-in 0.28s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .slr-pop-enter,
  .slr-popup-minimal .slr-reward-watch,
  .slr-popup-minimal .slr-reward-watch::after,
  .slr-watch-spinner {
    animation: none !important;
  }

  .slr-popup-minimal .slr-reward-watch {
    transform: none;
  }
}
