/* ============================================
   Dashboard Showcase / "See What You'll Create"
   Shown at top of dashboard for new users.
   Two-column layout: image carousel + video.
   ============================================ */

.showcase-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  animation: showcaseFadeIn 0.5s ease;
}

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

/* Accent gradient top edge */
.showcase-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-accent));
}

/* ---- Header ---- */
.showcase-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.showcase-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.375rem;
}

.showcase-header p {
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Process Steps (horizontal) ---- */
.showcase-process {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0 1rem;
}

.showcase-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 200px;
  position: relative;
}

.showcase-process-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
}

.showcase-process-step.highlight .showcase-process-num {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(196, 117, 74, 0.15);
}

.showcase-process-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.1875rem;
  line-height: 1.3;
}

.showcase-process-step.highlight .showcase-process-title {
  color: var(--color-accent-dark);
}

.showcase-process-desc {
  font-size: 0.6875rem;
  color: var(--color-ink-muted);
  line-height: 1.4;
}

/* Arrow connector between steps */
.showcase-process-arrow {
  display: flex;
  align-items: center;
  padding-top: 0.25rem;
  color: var(--color-border-dark);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ---- Two-column preview grid ---- */
.showcase-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.showcase-card {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.showcase-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-medium);
}

.showcase-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-muted);
}

.showcase-card-label .step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
}

/* ============================================
   Before / After Carousel
   ============================================ */
.ba-carousel {
  position: relative;
  margin: 0 0.75rem 0.75rem;
}

.ba-carousel-slide {
  display: none;
}

.ba-carousel-slide.active {
  display: block;
}

/* Individual B/A container */
.ba-container {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: col-resize;
  aspect-ratio: 4 / 3;
  background: var(--color-cream-dark);
}

.ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-image.before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.ba-image.after {
  z-index: 0;
}

.ba-container picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.ba-slider-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.ba-slider-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a1a2e' stroke-width='2.5'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a1a2e' stroke-width='2.5'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 4px center, 14px center;
  background-size: 14px, 14px;
}

.ba-tags {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.ba-tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.ba-tag.before {
  background: rgba(0,0,0,0.55);
  color: #fff;
}

.ba-tag.after {
  background: rgba(45, 138, 95, 0.85);
  color: #fff;
}

/* Carousel navigation */
.ba-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.ba-carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-dark);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ba-carousel-btn:hover:not(:disabled) {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.ba-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ba-carousel-dots {
  display: flex;
  gap: 6px;
}

.ba-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-dark);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.ba-carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.25);
}

.ba-carousel-dot:hover:not(.active) {
  background: var(--color-accent-light);
}

.ba-carousel-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink);
  min-width: 80px;
  text-align: center;
}

/* ============================================
   Video Card
   ============================================ */
.showcase-video-wrapper {
  position: relative;
  margin: 0 0.75rem 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0a0a14;
}

.showcase-video-wrapper video {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* Poster state — shown before play */
.showcase-video-poster {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 380px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 50%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 0.75rem 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.showcase-video-poster picture,
.showcase-video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.showcase-video-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(196, 117, 74, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(196, 117, 74, 0.4);
  transition: var(--transition);
}

.showcase-video-poster:hover .showcase-video-play-circle {
  transform: scale(1.1);
  background: var(--color-accent);
}

.showcase-video-play-circle svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}

.showcase-video-tag {
  position: absolute;
  bottom: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.showcase-video-tag.format {
  left: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
}

.showcase-video-tag.duration {
  right: 8px;
  background: rgba(196, 117, 74, 0.85);
  color: #fff;
}

/* ---- Footer CTAs ---- */
.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Dismiss button ---- */
.showcase-dismiss {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  line-height: 1;
  z-index: 1;
}

.showcase-dismiss:hover {
  background: var(--color-cream-dark);
  color: var(--color-ink);
}

#showcaseVideo::-webkit-media-controls-volume-slider,
#showcaseVideo::-webkit-media-controls-mute-button {
  display: none;
}

.showcase-card.showcase-card-video {
  display: flex;
  flex-direction: column;
}

.showcase-card-video .showcase-video-poster {
  width: 70%;
  margin: auto;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-section {
    padding: 1.5rem 1rem;
  }

  .showcase-process {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
  }

  .showcase-process-step {
    flex-direction: row;
    text-align: left;
    max-width: 100%;
    gap: 0.75rem;
  }

  .showcase-process-arrow {
    transform: rotate(90deg);
    font-size: 1rem;
  }

  .showcase-footer {
    flex-direction: column;
  }

  .showcase-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .showcase-video-poster {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }
}