/* =========================================================
   EPHARO AWS PLATFORM
   Module: Strips / Live Market
   File: live-market.css
   Source of truth: /ai/commodities.json
   Purpose: Homepage live agro market ticker
   ========================================================= */

#epharo-live-strip {
  max-width: 1120px;
  margin: -18px auto 22px;
  padding: 0 18px;
  box-sizing: border-box;
}

.epharo-strip {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.92),
    rgba(242,248,241,.96),
    rgba(255,255,255,.92)
  );
  border: 1px solid rgba(23,59,42,.10);
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

.epharo-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(47,107,61,.10),
    transparent 22%,
    rgba(212,175,55,.10) 50%,
    transparent 78%,
    rgba(47,107,61,.10)
  );
  opacity: .7;
  pointer-events: none;
}

.epharo-strip__track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  white-space: nowrap;
  padding: 12px 0;
  animation: epharo-strip-scroll 34s linear infinite;
}

.epharo-strip:hover .epharo-strip__track {
  animation-play-state: paused;
}

.epharo-strip__item {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
  font-weight: 650;
  color: #173b2a;
}

.epharo-strip__item strong {
  font-weight: 850;
  color: #173b2a;
}

.epharo-strip__trend-up {
  color: #2f6b3d;
  font-weight: 800;
}

.epharo-strip__trend-down {
  color: #b94a48;
  font-weight: 800;
}

.epharo-strip__trend-flat {
  color: #7b857d;
  font-weight: 800;
}

.epharo-strip__source {
  color: #6b756f;
  font-weight: 650;
}

@keyframes epharo-strip-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  #epharo-live-strip {
    margin: -8px auto 30px;
    padding: 0 12px;
  }

  .epharo-strip__track {
    gap: 28px;
    padding: 10px 0;
    animation-duration: 26s;
  }

  .epharo-strip__item {
    font-size: 13px;
  }
}