/* ================================================================
   slider-3-ticker.css
   Ticker Tape — infinite auto-scrolling horizontal marquee strip
   ================================================================ */


/* ── SECTION OVERRIDE (dark bg) ──────────────────────────────── */

.ticker-section {
  background: var(--ink);
  padding: 32px 0 0;
}

.ticker-section .sec-title { color: #fff; }
.ticker-section .sec-sub   { color: #888; }
.ticker-section .sec-label { color: var(--primary); }


/* ── TICKER STRIP ────────────────────────────────────────────── */

.ticker-outer {
  background: var(--ink);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}

/* fade-out masks on both edges */
.ticker-outer::before,
.ticker-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ticker-outer::before {
  right: 0;
  background: linear-gradient(to left, var(--ink), transparent);
}

.ticker-outer::after {
  left: 0;
  background: linear-gradient(to right, var(--ink), transparent);
}


/* ── SCROLLING TRACK ─────────────────────────────────────────── */

.ticker-track {
  display: flex;
  gap: 16px;
  animation: ticker-scroll 28s linear infinite;
  width: max-content;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ── INDIVIDUAL CARD ─────────────────────────────────────────── */

.tick-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  min-width: 230px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}

.tick-card:hover {
  background: rgba(0,186,186,.15);
  border-color: var(--primary);
}

.tick-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  padding: 4px;
}

.tick-card .tc-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
}

.tick-card .tc-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.tick-card .tc-off {
  font-size: 11px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  display: inline-block;
  margin-right: 5px;
}
