/* Profile Carousel Styles */

/* Carousel Header */
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.carousel-navigation {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  border-color: #2e2f90;
  color: #2e2f90;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 1rem;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
}

.carousel-card {
  display: block;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #2e2f90;
}

.carousel-card .ratio_1x1 {
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}

.carousel-card .image_cover {
  transition: transform 0.3s ease;
}

.carousel-card:hover .image_cover {
  transform: scale(1.05);
}

.carousel-card .heading_h4 {
  color: #1f2937;
  font-weight: 600;
  line-height: 1.3;
}

.carousel-card .text-color_secondary {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #2e2f90;
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background: #9ca3af;
}

.carousel-indicator.active:hover {
  background: #2563eb;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .carousel-slide {
    width: 260px;
  }
  
  .carousel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .carousel-navigation {
    align-self: flex-end;
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    width: 240px;
  }
  
  .carousel-card {
    padding: 1.25rem;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 640px) {
  .carousel-slide {
    width: 220px;
  }
  
  .carousel-card {
    padding: 1rem;
  }
  
  .carousel-header {
    margin-bottom: 1rem;
  }
  
  .carousel-header h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    width: calc(100vw - 3rem);
    max-width: 280px;
  }
  
  .carousel-track {
    gap: 0.75rem;
  }
  
  .carousel-navigation {
    gap: 0.25rem;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  
  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Touch and Scroll Enhancements */
.carousel-container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.carousel-track {
  scroll-snap-type: x mandatory;
}

/* Animation for slide transitions */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-slide {
  animation: slideIn 0.6s ease-out;
}

/* Focus states for accessibility */
.carousel-btn:focus,
.carousel-indicator:focus {
  outline: 2px solid #2e2f90;
  outline-offset: 2px;
}

.carousel-card:focus {
  outline: 2px solid #2e2f90;
  outline-offset: 2px;
}

/* Loading state */
.carousel-loading .carousel-card {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}