/* Hero image slider – main image + thumbnail strip */

.hero-slider {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-slider-main {
  margin-bottom: 1rem;
}

.hero-slider-main .hero-image-wrap {
  border-radius: 0.75rem;
}

.hero-slider-main img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s ease;
}

.hero-slider-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-slider-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.25rem 0;
  flex: 1;
  min-width: 0;
}

.hero-slider-thumbs::-webkit-scrollbar {
  height: 6px;
}

.hero-slider-thumbs::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 3px;
}

.hero-slider-thumb {
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: hsl(var(--card));
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-slider-thumb:hover {
  border-color: hsl(var(--primary) / 0.5);
}

.hero-slider-thumb.active {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary));
}

.hero-slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider-thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: center;
  padding: 0.35rem;
  line-height: 1.2;
}

.hero-slider-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.hero-slider-arrow:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  .hero-slider-thumb {
    width: 140px;
    height: 94px;
  }
  .hero-slider-thumb-label {
    font-size: 0.75rem;
  }
}

/* ----- Dashboard showcase slider: hero colors, full width, infinite auto-play ----- */

/* Section background: match hero gradient (blue → purple → green) */
.showcase-hero-bg {
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #10B981 100%);
}

.showcase-hero-bg .showcase-header h2 {
  color: #fff;
}

.showcase-hero-bg .showcase-header p {
  color: rgba(255, 255, 255, 0.9);
}

.showcase-slider-section .section-header.showcase-header {
  margin-bottom: 2.5rem;
}

/* Slider constrained to 2xl size (42rem) – screenshots not too large */
.showcase-slider-wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

@media (min-width: 640px) {
  .showcase-slider-wrap {
    padding-bottom: 2.5rem;
  }
}

.showcase-slider {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: hsl(var(--card));
  max-width: 100%;
}

.showcase-track-container {
  overflow: hidden;
  width: 100%;
}

.showcase-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.showcase-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

.showcase-slide img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  object-fit: contain;
  background: #fff;
}

/* Dots below the card – on gradient so they stay visible */
.showcase-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem 0.5rem;
  flex-wrap: wrap;
  min-height: 2.5rem;
}

.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.showcase-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: #fff;
}

.showcase-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .showcase-track {
    transition: none;
  }
}
