/* DFT Reviews Ticker — v1.0.0 */

/* ── Reset & Container ── */
.dft-ticker * { margin: 0; padding: 0; box-sizing: border-box; }
.dft-ticker {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  max-width: 100%;
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

/* ── Header ── */
.dft-ticker-header {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 40px;
}
.dft-ticker-title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #0a2540;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.dft-ticker-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #6b7a8d;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Viewport with fade edges ── */
.dft-ticker-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.dft-ticker-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}
.dft-ticker-fade--left {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 100%);
}
.dft-ticker-fade--right {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0) 100%);
}

/* ── Track (the scrolling strip) ── */
.dft-ticker-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  animation: dft-ticker-scroll var(--ticker-duration, 60s) linear infinite;
}
.dft-ticker-track:hover {
  animation-play-state: paused;
}

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

/* ── Loading state ── */
.dft-ticker-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 180px;
}

/* ── Individual card ── */
.dft-ticker-card {
  flex-shrink: 0;
  width: 360px;
  background: #ffffff;
  border: 1.5px solid #eef2f7;
  border-radius: 16px;
  padding: 24px 26px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dft-ticker-card:hover {
  border-color: #d6e4f0;
  box-shadow: 0 6px 28px rgba(10,37,64,0.07);
}

/* Card header: avatar + name + stars */
.dft-ticker-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dft-ticker-card-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dft-ticker-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d6dce6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #8a94a6;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.dft-ticker-name {
  font-weight: 500;
  font-size: 14px;
  color: #0a2540;
}
.dft-ticker-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #22a56b;
  background: #e8f8f0;
  padding: 2px 7px;
  border-radius: 100px;
  margin-left: 6px;
}
.dft-ticker-verified svg { width: 10px; height: 10px; }
.dft-ticker-lang {
  font-size: 12px;
  color: #8a94a6;
  margin-top: 1px;
  font-weight: 400;
}
.dft-ticker-stars {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
}
.dft-ticker-stars svg { width: 16px; height: 16px; }

/* Card body */
.dft-ticker-text {
  font-size: 13.5px;
  font-weight: 400;
  color: #3a4a5c;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

/* Card footer */
.dft-ticker-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dft-ticker-date {
  font-size: 11px;
  color: #a0aab6;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
}
.dft-ticker-date svg { width: 12px; height: 12px; }
.dft-ticker-source {
  font-size: 10px;
  font-weight: 600;
  color: #5b9bd5;
  background: #eef4fb;
  padding: 2px 9px;
  border-radius: 100px;
}

/* ── Footer / Button ── */
.dft-ticker-footer {
  text-align: center;
  margin-top: 40px;
  padding: 0 24px;
}
#dft-ticker-root .dft-ticker-footer a[class].dft-ticker-btn,
#dft-ticker-root .dft-ticker-footer a[class].dft-ticker-btn:link,
#dft-ticker-root .dft-ticker-footer a[class].dft-ticker-btn:visited,
#dft-ticker-root .dft-ticker-footer a[class].dft-ticker-btn:any-link,
#dft-ticker-root a.dft-ticker-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 14px 36px !important;
  border-radius: 12px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #0a2540 !important;
  background-color: #0a2540 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
#dft-ticker-root .dft-ticker-footer a[class].dft-ticker-btn *,
#dft-ticker-root a.dft-ticker-btn * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
#dft-ticker-root .dft-ticker-footer a[class].dft-ticker-btn:hover,
#dft-ticker-root .dft-ticker-footer a[class].dft-ticker-btn:focus,
#dft-ticker-root .dft-ticker-footer a[class].dft-ticker-btn:active,
#dft-ticker-root a.dft-ticker-btn:hover {
  background: #5b9bd5 !important;
  background-color: #5b9bd5 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(91,155,213,0.3) !important;
  text-decoration: none !important;
}
#dft-ticker-root a.dft-ticker-btn svg {
  transition: transform 0.3s ease;
  stroke: #ffffff !important;
}
#dft-ticker-root a.dft-ticker-btn:hover svg {
  transform: translateX(3px);
  stroke: #ffffff !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .dft-ticker { padding: 40px 0; }
  .dft-ticker-title { font-size: 24px; }
  .dft-ticker-subtitle { font-size: 14px; }
  .dft-ticker-card { width: 300px; padding: 20px; }
  .dft-ticker-fade { width: 60px; }
  .dft-ticker-header { margin-bottom: 28px; }
  .dft-ticker-footer { margin-top: 28px; }
}
