/* Special Scroll Ticker – matches the original SpecialWEB design */

.spw-ticker {
  --spw-font: "Assistant", system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: clip;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(2px, 0.6vw, 8px);
  padding-block: clamp(22px, 3vw, 40px);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

.spw-ticker-row {
  flex: none;
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  margin: 0;
  font: 800 clamp(42px, 7vw, 104px) / 1.08 var(--spw-font);
  letter-spacing: -0.035em;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.spw-ticker-row > * {
  margin-inline-end: 0.4em;
}

/* Solid row (row 1) */
.spw-ticker-row--solid {
  color: #0F1736;
  animation-name: spwTickerLeft;
}

/* Outline row (row 2) – stroke first, then fill with page background */
.spw-ticker-row--outline {
  color: #FFFFFF;
  -webkit-text-stroke: 3px #C3C6D1;
  paint-order: stroke fill;
  animation-name: spwTickerRight;
}

/* Direction modifiers */
.spw-ticker-dir-left {
  animation-name: spwTickerLeft;
}

.spw-ticker-dir-right {
  animation-name: spwTickerRight;
}

/* Separator dots */
.spw-ticker-dot {
  flex: none;
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF7AA6, #F03A76);
  vertical-align: middle;
}

.spw-ticker-row--outline .spw-ticker-dot {
  background: none;
  box-shadow: inset 0 0 0 2px rgb(240 58 118 / 0.55);
}

/* Keyframes – content is duplicated so 50% shift creates a seamless loop */
@keyframes spwTickerLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

@keyframes spwTickerRight {
  from { transform: translateX(50%); }
  to   { transform: translateX(0); }
}

/* Pause on hover (optional) */
.spw-ticker--pause-hover:hover .spw-ticker-row {
  animation-play-state: paused;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .spw-ticker-row {
    animation: none !important;
  }
}

/* Smaller screens – keep readable but not huge */
@media (max-width: 640px) {
  .spw-ticker-row {
    font-size: clamp(28px, 9vw, 56px);
  }
}
