/**
 * Carousel Library - Custom Style Examples
 * Examples of style customization for different contexts
 */

/* ==========================================================================
   1. HERO/BANNER CAROUSEL
   ========================================================================== */

.hero-carousel .carousel-item {
  height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-item > * {
  position: relative;
  z-index: 1;
}

.hero-carousel .carousel-nav-button {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 32px;
}

.hero-carousel .carousel-nav-button:hover {
  background-color: white;
  transform: scale(1.15);
}

.hero-carousel .carousel-pagination {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-carousel .carousel-pagination-item {
  min-width: 40px;
  min-height: 40px;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-carousel .carousel-pagination-item:hover {
  background-color: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-carousel .carousel-pagination-active {
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  border-color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
  .hero-carousel .carousel-item {
    height: 350px;
  }
}

/* ==========================================================================
   2. PRODUCT CAROUSEL
   ========================================================================== */

.products-carousel .carousel-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: all 0.3s ease;
}

.products-carousel .carousel-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.products-carousel .carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.products-carousel .carousel-item h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #333;
}

.products-carousel .carousel-item .price {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  margin: 12px 0;
}

.products-carousel .carousel-nav-button {
  background-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.products-carousel .carousel-nav-button:hover {
  background-color: #0056b3;
}

.products-carousel .carousel-pagination-item span {
  width: 10px;
  height: 10px;
}

.products-carousel .carousel-pagination-active span {
  width: 24px;
  border-radius: 5px;
}

/* ==========================================================================
   3. TESTIMONIALS CAROUSEL
   ========================================================================== */

.testimonials-carousel {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.testimonials-carousel.carousel-container {
  overflow: hidden;
}

.testimonials-carousel .carousel-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.testimonials-carousel .carousel-item blockquote {
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 30px;
  font-style: italic;
  position: relative;
}

.testimonials-carousel .carousel-item blockquote::before {
  content: '"';
  font-size: 60px;
  position: absolute;
  top: -20px;
  left: -30px;
  opacity: 0.3;
}

.testimonials-carousel .carousel-item .author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.testimonials-carousel .carousel-item .author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid white;
}

.testimonials-carousel .carousel-item .author-info {
  text-align: left;
}

.testimonials-carousel .carousel-item .author-name {
  font-weight: bold;
  font-size: 18px;
  margin: 0;
}

.testimonials-carousel .carousel-item .author-role {
  font-size: 14px;
  opacity: 0.9;
  margin: 4px 0 0;
}

.testimonials-carousel .carousel-navigation {
  margin-top: 40px;
  position: relative;
  z-index: 5;
}

.testimonials-carousel .carousel-nav-button {
  width: 50px;
  height: 50px;
  background-color: white;
  color: #667eea;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonials-carousel .carousel-nav-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.testimonials-carousel .carousel-pagination {
  margin-top: 24px;
  position: relative;
  z-index: 5;
}

.testimonials-carousel .carousel-pagination-item {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.testimonials-carousel .carousel-pagination-item:hover {
  background-color: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.testimonials-carousel .carousel-pagination-active {
  background-color: rgba(255, 255, 255, 0.95);
  color: #667eea;
  border-color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   4. CARDS CAROUSEL
   ========================================================================== */

.cards-carousel .carousel-item {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cards-carousel .carousel-item:hover {
  background: #e9ecef;
}

.cards-carousel .carousel-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cards-carousel .carousel-item .content {
  padding: 20px;
}

.cards-carousel .carousel-item h4 {
  font-size: 16px;
  margin: 0 0 12px;
  color: #333;
}

.cards-carousel .carousel-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.cards-carousel .carousel-item .cta {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s;
}

.cards-carousel .carousel-item .cta:hover {
  background: #0056b3;
}

.cards-carousel .carousel-nav-button {
  background-color: #212529;
}

.cards-carousel .carousel-nav-button:hover {
  background-color: #007bff;
}

/* ==========================================================================
   5. MINIMALIST CAROUSEL
   ========================================================================== */

.minimal-carousel .carousel-track {
  cursor: grab;
  scroll-behavior: smooth;
}

.minimal-carousel .carousel-item {
  background: black;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

.minimal-carousel .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.minimal-carousel .carousel-item:hover img {
  transform: scale(1.05);
}

.minimal-carousel .carousel-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.minimal-carousel .carousel-item:hover .overlay {
  transform: translateY(0);
}

/* ==========================================================================
   6. LOGOS/PARTNERS CAROUSEL
   ========================================================================== */

.logos-carousel .carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.logos-carousel .carousel-item:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.logos-carousel .carousel-item img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.logos-carousel .carousel-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================================
   7. VERTICAL CAROUSEL (Additional customization)
   ========================================================================== */

.vertical-carousel .carousel-track {
  flex-direction: column;
  height: 600px;
}

.vertical-carousel .carousel-item {
  width: 100% !important;
  flex: 0 0 auto !important;
}

.vertical-carousel .carousel-navigation--sides {
  flex-direction: column;
  top: auto;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  justify-content: space-between;
}

/* ==========================================================================
   8. CUSTOM ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animated-carousel .carousel-item-active {
  animation: fadeIn 0.5s ease-out;
}

/* Zoom effect on active item */
.zoom-carousel .carousel-item {
  transition: transform 0.3s ease;
}

.zoom-carousel .carousel-item-active {
  transform: scale(1.1);
  z-index: 2;
}

/* ==========================================================================
   9. COLOR THEMES
   ========================================================================== */

/* Dark Theme */
.dark-theme.carousel-container {
  background: #1a1a1a;
}

.dark-theme .carousel-item {
  background: #2d2d2d;
  color: white;
}

.dark-theme .carousel-nav-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.dark-theme .carousel-nav-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .carousel-pagination-item {
  background-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .carousel-pagination-active {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Colorful Theme */
.colorful-theme .carousel-nav-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.colorful-theme .carousel-pagination-active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ==========================================================================
   10. RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 768px) {
  /* Larger navigation on mobile for easier touch */
  .carousel-nav-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Larger pagination on mobile */
  .carousel-pagination-item {
    min-width: 36px;
    min-height: 36px;
  }

  /* Items with more padding on mobile */
  .carousel-item {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  /* Reduce peek on very small screens */
  .carousel-container[style*="padding-left"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
