/* ===================================
   Fanli OEM Partnership Homepage
   Mobile Swiper CSS Styles
   =================================== */

/* ===== MOBILE SWIPER STYLES ===== */

/* Mobile Swiper Navigation - Only visible on mobile */
.fanli-mobile-swiper-nav {
  display: none;
  text-align: center;
  margin-bottom: 20px;
  padding: 0 20px;
}

.fanli-swiper-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.fanli-swiper-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.fanli-swiper-dot--active {
  background: linear-gradient(135deg, #2772fa 0%, #660abd 100%);
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(39, 114, 250, 0.3);
}

/* Hide title and description */
.fanli-swiper-title,
.fanli-swiper-description {
  display: none;
}

/* Mobile Swiper Container */
.fanli-mobile-swiper {
  display: none;
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  background: transparent;
}

.fanli-swiper-wrapper {
  display: flex;
  width: 600%; /* 6 slides * 100% for Stream */
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Aura has 7 slides */
#aura-swiper .fanli-swiper-wrapper {
  width: 700%; /* 7 slides * 100% for Aura */
}

/* AI Assistant has 3 slides */
#ai-assistant-swiper .fanli-swiper-wrapper {
  width: 300%; /* 3 slides * 100% for AI Assistant */
}

/* SmartFlow has 6 slides */
#smartflow-swiper .fanli-swiper-wrapper {
  width: 600%; /* 6 slides * 100% for SmartFlow */
}

.fanli-swiper-slide {
  width: 16.666%; /* 100% / 6 slides for Stream */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

/* Aura slides */
#aura-swiper .fanli-swiper-slide {
  width: 14.286%; /* 100% / 7 slides for Aura */
}

/* AI Assistant slides */
#ai-assistant-swiper .fanli-swiper-slide {
  width: 33.333%; /* 100% / 3 slides for AI Assistant */
}

/* SmartFlow slides */
#smartflow-swiper .fanli-swiper-slide {
  width: 16.666%; /* 100% / 6 slides for SmartFlow */
}

.fanli-swiper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

/* Video styles for mobile swiper */
.fanli-swiper-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  border: none;
  background: #000;
}

/* Video overlay for mobile swiper */
.fanli-swiper-slide .fanli-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.fanli-swiper-slide .fanli-video-overlay .fanli-video-play-btn {
  pointer-events: all;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.fanli-swiper-slide .fanli-video-overlay .fanli-video-play-btn:hover {
  transform: scale(1.1);
}

/* Hide overlay when video is playing */
.fanli-swiper-slide .fanli-swiper-video:not([paused]) + .fanli-video-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Desktop Only - Hide mobile swiper on desktop */
.fanli-desktop-only {
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Show mobile swiper navigation */
  .fanli-mobile-swiper-nav {
    display: block;
  }
  
  /* Show mobile swiper */
  .fanli-mobile-swiper {
    display: block;
    height: 50vh;
    min-height: 350px;
    max-height: 500px;
  }
  
  /* Hide desktop elements */
  .fanli-desktop-only {
    display: none !important;
  }
  
  /* Hide desktop feature buttons */
  .fanli-platform-features {
    display: none !important;
  }
  
  /* Adjust platform content layout for mobile */
  .fanli-platform-content--standard {
    display: block !important;
  }
  
  /* Full width display on mobile */
  .fanli-platform-display {
    width: 100% !important;
    margin-top: 0 !important;
  }
  
  .fanli-swiper-indicators {
    gap: 8px;
  }
  
  .fanli-swiper-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .fanli-mobile-swiper {
    height: 45vh;
    min-height: 300px;
    max-height: 400px;
    margin: 0;
  }
  
  .fanli-swiper-slide {
    padding: 0;
  }
  
  .fanli-mobile-swiper-nav {
    padding: 0 16px;
    margin-bottom: 16px;
  }
}

/* Touch/Swipe Styles */
.fanli-mobile-swiper.fanli-swiping {
  cursor: grabbing;
}

.fanli-mobile-swiper:not(.fanli-swiping) {
  cursor: grab;
}

/* Animation for slide transitions */
.fanli-swiper-slide {
  opacity: 0.7;
  transform: scale(0.95);
  transition: all 0.4s ease;
}

.fanli-swiper-slide--active {
  opacity: 1;
  transform: scale(1);
}

/* Smooth scrolling for better UX */
.fanli-swiper-wrapper {
  scroll-behavior: smooth;
}
