/* Frontend styles for KD Swiper blocks - Compiled from SCSS */

/* Carousel Block */
.wp-block-kd-swiper-carousel {
  position: relative;
  margin: 20px 0;
}

.wp-block-kd-swiper-carousel .swiper {
  width: 100%;
  height: 100%;
}

.wp-block-kd-swiper-carousel .swiper-wrapper {
  display: flex;
}

/* Slide Block */
.wp-block-kd-swiper-slide {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Navigation Block */
.wp-block-kd-swiper-navigation {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  position: relative;
}

.wp-block-kd-swiper-navigation .navigation-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wp-block-kd-swiper-navigation .nav-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 14px;
}

.wp-block-kd-swiper-navigation .nav-button:hover {
  background: #f8f9fa;
  border-color: #007cba;
}

.wp-block-kd-swiper-navigation .nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wp-block-kd-swiper-navigation .nav-button.outline {
  background: transparent;
  border: 2px solid currentColor;
}

.wp-block-kd-swiper-navigation .nav-button.outline:hover {
  background: currentColor;
  color: white;
}

.wp-block-kd-swiper-navigation .nav-button.minimal {
  background: transparent;
  border: none;
  padding: 8px 12px;
}

.wp-block-kd-swiper-navigation .nav-button.minimal:hover {
  background: rgba(0, 124, 186, 0.1);
}

.wp-block-kd-swiper-navigation .nav-icon {
  font-size: 16px;
  line-height: 1;
}

/* Progress Bar Block */
.wp-block-kd-swiper-progress-bar {
  margin: 20px 0;
}

.wp-block-kd-swiper-progress-bar .progress-indicators {
  display: flex;
  gap: 10px;
}

.wp-block-kd-swiper-progress-bar.alignment-left .progress-indicators {
  justify-content: flex-start;
}

.wp-block-kd-swiper-progress-bar.alignment-center .progress-indicators {
  justify-content: center;
}

.wp-block-kd-swiper-progress-bar.alignment-right .progress-indicators {
  justify-content: flex-end;
}

.wp-block-kd-swiper-progress-bar .progress-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Number style */
.wp-block-kd-swiper-progress-bar.style-numbers .progress-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.wp-block-kd-swiper-progress-bar.style-numbers .progress-indicator:hover {
  border-color: #007cba;
  background: #e7f3ff;
}

.wp-block-kd-swiper-progress-bar.style-numbers .progress-indicator.active {
  background: #007cba;
  color: white;
  border-color: #007cba;
}

/* Dot style */
.wp-block-kd-swiper-progress-bar.style-dots .progress-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
}

.wp-block-kd-swiper-progress-bar.style-dots .progress-indicator:hover {
  background: #007cba;
}

.wp-block-kd-swiper-progress-bar.style-dots .progress-indicator.active {
  background: #007cba;
}

/* Bar style */
.wp-block-kd-swiper-progress-bar.style-bars .progress-indicator {
  width: 24px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

.wp-block-kd-swiper-progress-bar.style-bars .progress-indicator:hover {
  background: #007cba;
}

.wp-block-kd-swiper-progress-bar.style-bars .progress-indicator.active {
  background: #007cba;
}

/* Size variations */
.wp-block-kd-swiper-progress-bar.size-small .progress-indicator {
  transform: scale(0.85);
}

.wp-block-kd-swiper-progress-bar.size-large .progress-indicator {
  transform: scale(1.15);
}

.wp-block-kd-swiper-progress-bar .indicator-label {
  font-size: 12px;
  margin-top: 6px;
  color: #666;
  white-space: nowrap;
}

/* Swiper overrides */
.wp-block-kd-swiper-carousel .swiper-button-next,
.wp-block-kd-swiper-carousel .swiper-button-prev {
  color: #007cba;
}

.wp-block-kd-swiper-carousel .swiper-pagination-bullet-active {
  background: #007cba;
}

/* Responsive design */
@media (max-width: 768px) {
  .wp-block-kd-swiper-navigation .nav-button {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .wp-block-kd-swiper-progress-bar .progress-indicators {
    gap: 8px;
  }
  
  .wp-block-kd-swiper-progress-bar.style-numbers .progress-indicator {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}