/* CarouselComponent Styles - Mobile First Approach */

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--rounded-lg);
  margin: 0 auto;
  background-color: var(--color-bg-secondary);
  aspect-ratio: 3 / 4;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-dark);
  color: var(--color-bg-secondary);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav--prev {
  left: 1rem;
}

.carousel-nav--next {
  right: 1rem;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator:hover {
  background: var(--color-bg-secondary);
}

.carousel-indicator--active {
  background: var(--color-bg-secondary);
  transform: scale(1.2);
}

/* Tablet - Improve aspect ratio */
@media (min-width: 768px) {
  .carousel-container {
    aspect-ratio: 3 / 3;
    max-width: 100%;
  }
  
  .carousel-image {
    object-position: center 25%;
  }
}

/* Desktop - Better aspect ratio for portrait photos */
@media (min-width: 1024px) {
  .carousel-container {
    aspect-ratio: 3 / 3;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .carousel-image {
    object-fit: cover;
    object-position: center 25%;
  }
}

/* Large Desktop - Maintain proportions */
@media (min-width: 1280px) {
  .carousel-container {
    max-width: 1600px;
    aspect-ratio: 3 / 2;
  }
}

/* Extra Large Desktop - Maximum size cap */
@media (min-width: 1536px) {
  .carousel-container {
    max-width: 1800px;
  }
}

/* Accessibility */
.carousel-nav:focus,
.carousel-indicator:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
  
  .carousel-nav:hover {
    transform: translateY(-50%);
  }
} 