/* ---------------------------------------------------------------------
 * ShefaCarousel - lightweight responsive slider for homepage spotlights
 * (Tasks 6 & 7). Smooth slide animation, 1/2/3 cards per view.
 * ------------------------------------------------------------------- */

.shefa-carousel {
  position: relative;
  padding: 0 8px;
}

.shefa-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.shefa-carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.shefa-carousel__slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .shefa-carousel__slide { flex-basis: 50%; max-width: 50%; }
}

@media (min-width: 992px) {
  .shefa-carousel__slide { flex-basis: 33.3333%; max-width: 33.3333%; }
}

.shefa-carousel__btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  color: #2e7d32;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.shefa-carousel__btn:hover { background: #eaf6ea; }
.shefa-carousel__btn--prev { left: -6px; }
.shefa-carousel__btn--next { right: -6px; }
.shefa-carousel__btn:disabled { opacity: 0.3; cursor: default; }

.shefa-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}

.shefa-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c5d6c0;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}

.shefa-carousel__dot.is-active {
  background: #2e7d32;
  width: 26px;
  border-radius: 6px;
}

.shefa-spotlight-empty {
  text-align: center;
  color: #6b7280;
  padding: 1.5rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .shefa-carousel__track { transition: none; }
}
