/* WordPress Custom Responsive Slider - Frontend Styles */

.wpcs-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  margin: 0;
  padding: 0;
}

.wpcs-track {
  position: relative;
  width: 100%;
  height: 0;
  /* Updated aspect ratio for 1920x1080 resolution */
  padding-bottom: 56.25%; /* 1080/1920 = 16:9 aspect ratio for desktop */
}

.wpcs-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.wpcs-slide-item:first-child {
  display: block;
}

.wpcs-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation Arrows */
/* Updated to style image-based arrows instead of text */
.wpcs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpcs-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Changed arrow color to white using CSS filter */
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

.wpcs-arrow:hover img {
  /* Updated hover effect to maintain white color */
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
  transform: scale(1.2);
}

.wpcs-arrow:active img {
  transform: scale(1);
}

.wpcs-prev {
  left: 20px;
}

.wpcs-next {
  right: 20px;
}

/* Pagination Dots */
.wpcs-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

.wpcs-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.wpcs-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.wpcs-dot.active {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
  width: 32px;
  border-radius: 6px;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  /* Updated arrow sizing for tablets */
  .wpcs-arrow {
    width: 45px;
    height: 45px;
  }

  .wpcs-prev {
    left: 16px;
  }

  .wpcs-next {
    right: 16px;
  }

  .wpcs-dots {
    bottom: 20px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .wpcs-track {
    padding-bottom: 129.63%; /* 1080/1400 = portrait aspect ratio for mobile */
  }

  /* Updated arrow sizing for mobile */
  .wpcs-arrow {
    width: 40px;
    height: 40px;
  }

  .wpcs-prev {
    left: 12px;
  }

  .wpcs-next {
    right: 12px;
  }

  .wpcs-dots {
    bottom: 16px;
    gap: 8px;
    padding: 6px 12px;
  }

  .wpcs-dot {
    width: 10px;
    height: 10px;
  }

  .wpcs-dot.active {
    width: 24px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  /* Updated arrow sizing for small mobile */
  .wpcs-arrow {
    width: 35px;
    height: 35px;
  }

  .wpcs-prev {
    left: 8px;
  }

  .wpcs-next {
    right: 8px;
  }

  .wpcs-dots {
    bottom: 12px;
  }
}

/* Accessibility */
.wpcs-arrow:focus,
.wpcs-dot:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

/* Loading State */
.wpcs-slider.loading .wpcs-slide-item {
  opacity: 0;
}

/* Smooth Transitions */
.wpcs-slide-item {
  transition: opacity 0.6s ease-in-out;
}

/* Print Styles */
@media print {
  .wpcs-arrow,
  .wpcs-dots {
    display: none;
  }

  .wpcs-slide-item {
    display: block !important;
    page-break-inside: avoid;
  }
}
