/* ================================================
   PREMIUM IMAGE SLIDER STYLES
   Add this to your style.css file
================================================ */

.premium-image-slider {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #1e3c72 0%, #2a5298 100%);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ===============================
   LOADING STATE
=============================== */
.slider-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(30, 60, 114, 0.9);
  color: white;
  z-index: 100;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.slider-loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.slider-loading p {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===============================
   SLIDER TRACK & SLIDES
=============================== */
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.slide-item.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.slide-item.prev {
  transform: translateX(-100px) scale(0.95);
}

.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.slide-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.slide-content:hover img {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* ===============================
   SLIDE OVERLAY & INFO
=============================== */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  padding: 40px 30px 25px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.slide-item.active .slide-overlay {
  transform: translateY(0);
}

.slide-info {
  color: white;
  text-align: center;
}

.slide-info h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.slide-info p {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
  font-weight: 400;
}

/* ===============================
   NAVIGATION CONTROLS
=============================== */
.slider-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.progress-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #007bff);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
}

.nav-arrow,
.play-pause-btn {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-arrow:hover,
.play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav-arrow svg,
.play-pause-btn svg {
  width: 18px;
  height: 18px;
  color: white;
  stroke-width: 2.5;
}

.play-pause-btn .pause-icon {
  display: none;
}

.play-pause-btn.playing .play-icon {
  display: none;
}

.play-pause-btn.playing .pause-icon {
  display: block;
}

/* ===============================
   MODERN INDICATORS
=============================== */
.modern-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.indicator-track {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.indicator {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.indicator:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.indicator.active {
  border-color: #00d4ff;
  background: linear-gradient(135deg, #00d4ff, #007bff);
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.indicator-label {
  font-size: 12px;
  font-weight: 600;
  color: white;
  transition: transform 0.3s ease;
}

.indicator.active .indicator-label {
  transform: scale(1.1);
}

/* ===============================
   SLIDE COUNTER
=============================== */
.slide-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.current-slide {
  color: #00d4ff;
}

.counter-divider {
  margin: 0 6px;
  opacity: 0.6;
}

.total-slides {
  opacity: 0.8;
}

/* ===============================
   RESPONSIVE DESIGN
=============================== */
@media (max-width: 1024px) {
  .premium-image-slider {
    height: 400px;
  }

  .slide-content {
    padding: 20px;
  }

  .slider-controls {
    top: 15px;
    right: 15px;
    gap: 8px;
  }

  .nav-arrow,
  .play-pause-btn {
    width: 40px;
    height: 40px;
  }

  .progress-bar {
    width: 60px;
  }
}

@media (max-width: 768px) {
  .premium-image-slider {
    height: 350px;
    border-radius: 16px;
  }

  .slide-content {
    padding: 15px;
  }

  .slide-info h4 {
    font-size: 18px;
  }

  .slide-info p {
    font-size: 13px;
  }

  .modern-indicators {
    bottom: 20px;
  }

  .indicator-track {
    padding: 8px 12px;
    gap: 6px;
  }

  .indicator {
    width: 32px;
    height: 32px;
  }

  .indicator-label {
    font-size: 11px;
  }

  .slider-controls {
    top: 12px;
    right: 12px;
  }

  .nav-arrow,
  .play-pause-btn {
    width: 36px;
    height: 36px;
  }

  .nav-arrow svg,
  .play-pause-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .premium-image-slider {
    height: 280px;
    margin: 0 -10px;
  }

  .slide-content {
    padding: 10px;
  }

  .slide-overlay {
    padding: 20px 15px 15px;
  }

  .slide-info h4 {
    font-size: 16px;
  }

  .slide-info p {
    font-size: 12px;
  }

  .modern-indicators {
    bottom: 15px;
  }

  .indicator-track {
    padding: 6px 10px;
    gap: 4px;
  }

  .indicator {
    width: 28px;
    height: 28px;
  }

  .indicator-label {
    font-size: 10px;
  }

  .slide-counter {
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .progress-bar {
    display: none;
  }

  .nav-tooltip {
    display: none;
  }
}

/* ===============================
   ACCESSIBILITY & ANIMATIONS
=============================== */
@media (prefers-reduced-motion: reduce) {
  .slide-item,
  .slide-content img,
  .nav-arrow,
  .play-pause-btn,
  .indicator {
    transition: none;
  }

  .loading-spinner {
    animation: none;
  }
}

/* Focus states for accessibility */
.nav-arrow:focus,
.play-pause-btn:focus,
.indicator:focus {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .premium-image-slider {
    border: 2px solid #ffffff;
  }

  .nav-arrow,
  .play-pause-btn {
    background: #000000;
    border-color: #ffffff;
  }

  .indicator {
    background: #000000;
    border-color: #ffffff;
  }
}
