/* Offers carousel - styled like app campaign cards */

/* Container */
.offers-carousel-container {
  overflow: hidden;
  background-color: transparent;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 20px 0;
}

/* Inner container - animated marquee */
.offers-carousel-inner {
  display: flex;
  white-space: nowrap;
  animation: offers-scroll var(--offers-marquee-speed) linear infinite;
  width: fit-content;
}

/* Track wrapper */
.offers-carousel-track {
  display: flex;
  flex-shrink: 0;
}

/* Individual card - styled like app campaign cards */
.offers-card {
  flex-shrink: 0;
  margin-right: 16px;
  margin-left: 16px;
  background: #fff;
  box-shadow: 1px 1px 10px 0px #00000040;
  border-radius: 16px;
  width: 220px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.offers-card:hover {
  transform: scale(1.03);
}

/* Card image */
.offers-card-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  max-height: 170px;
}

.offers-card-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}

/* Card title (partner name) */
.offers-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  padding: 10px 12px 0 12px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Work Sans", sans-serif;
}

/* Card description (offer name) */
.offers-card-desc {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  padding: 4px 12px 12px 12px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Work Sans", sans-serif;
}

/* Pause on hover */
.offers-carousel-container:hover .offers-carousel-inner {
  animation-play-state: paused;
}

/* Reversed animation */
.offers-carousel-inner.reversed {
  animation: offers-scroll-reversed var(--offers-marquee-speed) linear infinite;
}

/* Keyframes */
@keyframes offers-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .offers-card {
    width: 160px;
    margin-right: 10px;
    margin-left: 10px;
  }

  .offers-card-img img {
    height: 100px;
  }

  .offers-card-title {
    font-size: 12px;
    padding: 8px 10px 0 10px;
  }

  .offers-card-desc {
    font-size: 11px;
    padding: 2px 10px 10px 10px;
  }
}
