/*
 * YouTube Feed Pro — Carousel Stylesheet
 */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.sbypro-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* ── Track outer (viewport) ───────────────────────────────────────────────── */
.sbypro-carousel-track-outer {
  overflow: hidden;
  width: 100%;
}

/* ── Track (slides container) ────────────────────────────────────────────── */
.sbypro-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: stretch;
}

.sbypro-carousel-track.sbypro-no-transition {
  transition: none;
}

/* ── Individual slide ─────────────────────────────────────────────────────── */
.sbypro-carousel-slide {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 0 calc(var(--sbypro-gap, 5px) / 2);
}

/* ── Navigation arrows ────────────────────────────────────────────────────── */
.sbypro-carousel-prev,
.sbypro-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  padding: 0;
  color: #fff;
}

.sbypro-carousel-prev:hover,
.sbypro-carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.sbypro-carousel-prev:disabled,
.sbypro-carousel-next:disabled {
  opacity: 0.3;
  cursor: default;
}

.sbypro-carousel-prev {
  left: 6px;
}

.sbypro-carousel-next {
  right: 6px;
}

.sbypro-carousel-prev svg,
.sbypro-carousel-next svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  pointer-events: none;
}

/* ── Pagination dots ──────────────────────────────────────────────────────── */
.sbypro-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
}

.sbypro-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.sbypro-carousel-dot:hover {
  background: rgba(0, 0, 0, 0.5);
}

.sbypro-carousel-dot--active {
  background: #ff0000;
  transform: scale(1.3);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sbypro-carousel-prev,
  .sbypro-carousel-next {
    width: 30px;
    height: 30px;
  }
}
