/* ═══════════════════════════════════════════════════════════════
   ShowcaseCarousel — Hirono Bamhaus Phase 1.2
   Image-only banner carousel. Independent plug-in module.
   BEM scope: .showcase__*
   ═══════════════════════════════════════════════════════════════ */

.showcase {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-start);
  touch-action: pan-y;
  outline: none;
}

.showcase:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: -4px;
}

/* ─── Slide ────────────────────────────────────────────────────── */

.showcase__slide {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: none;
}

.showcase__slide--active {
  display: block;
  animation: showcaseFadeIn 500ms var(--ease-out) both;
}

@keyframes showcaseFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.showcase__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

/* Dark gradient overlay for text — lighter than hero to let banner shine */
.showcase__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 15, 0.05) 0%,
      rgba(10, 10, 15, 0.0) 30%,
      rgba(10, 10, 15, 0.25) 65%,
      rgba(10, 10, 15, 0.75) 100%);
  pointer-events: none;
}

/* ─── Slide content overlay ────────────────────────────────────── */

.showcase__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-5);
  padding-bottom: calc(var(--space-8) + 40px); /* room for dots */
  z-index: 2;
  text-align: center;
  color: var(--text-primary);
}

.showcase__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-3);
  opacity: 0.9;
}

.showcase__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.showcase__divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  margin: 0 auto var(--space-4);
}

.showcase__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  background: var(--accent-primary);
  color: var(--bg-start);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  text-decoration: none;
  min-height: 44px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.showcase__cta:hover {
  color: var(--bg-start);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-primary-glow), var(--shadow-md);
}

/* ─── Dots (horizontal row, bottom-center) ─────────────────────── */

.showcase__dots {
  position: absolute;
  z-index: 5;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: var(--space-3);
  padding: var(--space-2);
}

.showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  position: relative;
}

/* Larger touch target */
.showcase__dot::before {
  content: '';
  position: absolute;
  inset: -12px;
}

.showcase__dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.showcase__dot--active {
  background: var(--accent-primary);
  transform: scale(1.4);
}

/* ─── Arrows (desktop only) ────────────────────────────────────── */

.showcase__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition);
}

.showcase__arrow:hover {
  background: var(--surface-glass);
}

.showcase__arrow--prev { left: var(--space-4); }
.showcase__arrow--next { right: var(--space-4); }

@media (min-width: 768px) {
  .showcase__arrow { display: flex; }
  .showcase__slide { min-height: 50vh; }
  .showcase__content { max-width: 640px; margin: 0 auto; }
}

/* ─── Reduced motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .showcase__slide--active { animation: none; }
}
