/* Service Product Gallery Carousel Styles */
/* Based on TW Elements carousel structure */

/* Gallery section - margins handled by layout/section padding */
.service-image-section {
  min-height: 100%;
  box-sizing: border-box;
}

.service-gallery-carousel {
  position: relative;
  overflow: hidden;
}

.service-gallery-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.service-gallery-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.service-gallery-carousel-item.active {
  opacity: 1;
  z-index: 2;
  position: relative;
}

.service-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Indicators */
.service-gallery-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.75) !important; /* Stronger dark backdrop for white images */
  backdrop-filter: blur(10px) saturate(180%); /* Enhanced blur and saturation */
  border-radius: 24px; /* Rounded container */
  border: 1px solid rgba(255, 255, 255, 0.2); /* More visible border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.3) !important; /* Strong shadow for visibility */
}

.service-gallery-carousel-indicator {
  width: 30px;
  height: 3px;
  background: rgba(255, 255, 255, 1) !important; /* Bright neon white */
  border: none !important; /* No border - container provides contrast */
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.5) !important; /* Neon white glow */
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  border-radius: 2px;
  opacity: 0.6;
}

.service-gallery-carousel-indicator.active {
  background: linear-gradient(to bottom, #10b981 0%, rgba(34, 211, 238, 1) 100%) !important; /* Green to cyan gradient when active */
  border: none !important; /* No border */
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8), 0 0 12px rgba(34, 211, 238, 0.8), 0 0 18px rgba(34, 211, 238, 0.6) !important; /* Strong neon glow when active */
  opacity: 1 !important;
  width: 40px;
}

.service-gallery-carousel-indicator:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 1) !important; /* Bright neon white on hover */
  border: none !important; /* No border */
  box-shadow: 0 0 6px rgba(255, 255, 255, 1), 0 0 12px rgba(255, 255, 255, 0.7) !important; /* Stronger neon glow on hover */
}

/* Service Details Section - Modern Design */
.service-details-section {
  position: relative;
  min-height: 100%;
}

.service-details-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
  opacity: 0.5;
}

/* Title improvements */
.service-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-rendering: optimizeLegibility;
}

/* Description improvements */
.service-description {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-description p {
  margin: 0;
}

/* Price section enhancements */
.service-price-section {
  padding: 1rem 0;
}

.service-discount-badge {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Button enhancements */
.service-actions {
  min-width: 0; /* Allow flex items to shrink */
}

.service-primary-button,
.service-secondary-button,
.service-add-to-cart-button {
  position: relative;
  overflow: hidden;
  min-height: 48px; /* Consistent button height */
  height: 48px; /* Fixed height for alignment */
}

.service-primary-button::before,
.service-secondary-button::before,
.service-add-to-cart-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.service-primary-button:hover::before,
.service-secondary-button:hover::before,
.service-add-to-cart-button:hover::before {
  left: 100%;
}

/* Ensure buttons stay in line on larger screens */
@media (min-width: 640px) {
  .service-actions {
    flex-wrap: nowrap;
  }
}

/* Feature items */
.service-features {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .service-details-section {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .service-details-section {
    padding: 1.25rem;
  }
  
  .service-features {
    grid-template-columns: 1fr;
  }
}
