/* ============================================================
   Slider.js — stylesheet
   ============================================================ */

/* ============================================================
   Variables (theming)
   ============================================================ */

:root {
  /* dots */
  --slider-dot-active: var(--primary, #111);
  --slider-dot-inactive: rgba(0, 0, 0, 0.25);

  /* bar */
  --slider-bar-bg: rgba(0, 0, 0, 0.1);

  /* arrows */
  --slider-arrow-bg: #ffffff;
  --slider-arrow-color: #111;
  --slider-arrow-border: rgba(0, 0, 0, 0.15);
}

/* ============================================================
   Root
   ============================================================ */

.slider-root {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================
   Wrapper
   ============================================================ */

.slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
  user-select: none;
  border-radius: 8px;
}

/* ============================================================
   Track
   ============================================================ */

.slider-track {
  display: flex;
  will-change: transform;
}

.slider-track--animating {
  transition: transform var(--slider-speed, 350ms) cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Slides
   ============================================================ */

.slider-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 0;
}

/* ============================================================
   Arrows
   ============================================================ */

.slider-btn {
  background: var(--slider-arrow-bg);
  border: 1px solid var(--slider-arrow-border);
  color: var(--slider-arrow-color);

  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.15s, opacity 0.2s;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.05);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* overlay */
.arrows-overlay .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.arrows-overlay .slider-btn.prev { left: 8px; }
.arrows-overlay .slider-btn.next { right: 8px; }

/* top / bottom */
.slider-arrows-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-arrows-spacer {
  flex: 1;
}

/* split */
.slider-split {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-split .slider-wrapper {
  flex: 1;
}

/* ============================================================
   Dots
   ============================================================ */

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.slider-dot {
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  background: none;
}

/* circles */
.slider-dots--circles .slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slider-dot-inactive);
  transition: background 0.2s, transform 0.2s;
}

.slider-dots--circles .slider-dot.slider-dot--active {
  background: var(--slider-dot-active);
  transform: scale(1.35);
}

/* dashes */
.slider-dots--dashes .slider-dot {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--slider-dot-inactive);
  transition: background 0.2s, width 0.25s;
}

.slider-dots--dashes .slider-dot.slider-dot--active {
  background: var(--slider-dot-active);
  width: 28px;
}

/* bar */
.slider-dots--bar {
  position: relative;
  height: 3px;
  padding: 0;
  gap: 0;
  background: var(--slider-bar-bg);
  border-radius: 2px;
  overflow: hidden;
}

.slider-dots--bar .slider-dot {
  position: absolute;
  top: 0;
  height: 100%;
  opacity: 0;
}

.slider-bar-indicator {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--slider-dot-active);
  border-radius: 2px;
  transition:
    transform var(--slider-speed, 350ms) cubic-bezier(0.4, 0, 0.2, 1),
    width 0.2s;
}
