/* =========================
   Lumeve Showcase Screens
========================= */

#lumeve-showcase {
  --gap: 12px;
  --px-per-sec: 96;
  --rail-pad: clamp(16px, 4vw, 40px);
  --ink-900: #1f1f1f;
  --ink-700: #333;
  --ink-600: #2b3147;
  --btn-blue: #398fba;

  position: relative;
  padding: clamp(40px, 6vw, 80px) var(--rail-pad);
  background: #fff;
  overflow: hidden;
}

/* Header */
#lumeve-showcase .sc-head {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
}
#lumeve-showcase .sc-title {
  font: 700 clamp(20px, 3vw, 32px) / 1.2 "Montserrat", system-ui, sans-serif;
  color: var(--ink-900);
  margin: 0 0 8px;
}
#lumeve-showcase .sc-sub {
  font: 400 16px/1.5 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink-600);
  margin: 0;
}

/* Viewport and strip */
#lumeve-showcase .sc-viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0), #000 6%, #000 94%, rgba(0,0,0,0));
  mask-image: linear-gradient(90deg, rgba(0,0,0,0), #000 6%, #000 94%, rgba(0,0,0,0));
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
#lumeve-showcase .sc-strip {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  will-change: transform;
  animation: sc-marquee linear infinite;
}

/* Slides */
#lumeve-showcase .sc-slide {
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
#lumeve-showcase .sc-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: inherit;
  max-height: clamp(380px, 62vh, 720px);
  object-fit: contain;
  -webkit-user-drag: none;
  user-drag: none;
}

/* Marquee animation */
@keyframes sc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--loop-distance, 1000px))); }
}
@media (prefers-reduced-motion: reduce) {
  #lumeve-showcase .sc-strip { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .force-anim #lumeve-showcase .sc-strip {
    animation: sc-marquee linear infinite !important;
  }
}

/* Controls */
#lumeve-showcase .sc-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}
#lumeve-showcase .sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 16px/1 "Montserrat";
  padding: 12px 20px;
  background: #ff6c63;
  color: var(--ink-700);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#lumeve-showcase .sc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
#lumeve-showcase .sc-btn:active { transform: translateY(0); }
#lumeve-showcase .sc-btn[aria-pressed="true"] { border-color: rgba(46,139,185,0.6); }

#lumeve-showcase .ico {
  fill: currentColor;
  display: none;
  width: 20px;
  height: 20px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#lumeve-showcase .ico--play { display: inline; }
#lumeve-showcase .sc-btn[aria-pressed="true"] .ico--play { display: none; }
#lumeve-showcase .sc-btn[aria-pressed="true"] .ico--pause { display: inline; }
#lumeve-showcase .sc-btn[aria-pressed="true"] .ico--pause { opacity: 1; transform: scale(1.06); }
#lumeve-showcase .sc-btn[aria-pressed="false"] .ico--play { opacity: 1; transform: scale(1.06); }

#lumeve-showcase .sc-btn__label { user-select: none; color: #fff; }
#lumeve-showcase .sc-controls-hint {
  margin: 8px 0 0;
  text-align: center;
  font: 700 16px/1.5 "Montserrat";
  color: var(--ink-600);
}

/* Force control icons to white */
#lumeve-showcase .sc-btn .ico { fill: #fff !important; color: #fff !important; }

/* Scroll mode when paused */
#lumeve-showcase .sc-viewport.is-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
#lumeve-showcase .sc-viewport.is-scroll::-webkit-scrollbar { display: none; }
#lumeve-showcase .sc-viewport.is-scroll .sc-strip {
  animation: none !important;
  gap: var(--gap);
}
#lumeve-showcase .sc-viewport.is-scroll .sc-slide { scroll-snap-align: center; }
#lumeve-showcase .sc-viewport.is-scroll .sc-slide img { max-height: clamp(320px, 56vh, 640px); }

/* Pause arrows */
#lumeve-showcase .sc-arrow {
  position: absolute;
  top: calc(50% + 4px);
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(0,0,0,0.42);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#lumeve-showcase .sc-arrow.left { left: 12px; }
#lumeve-showcase .sc-arrow.right { right: 12px; }
#lumeve-showcase .sc-viewport.is-scroll ~ .sc-arrow {
  opacity: 1; pointer-events: auto;
}

/* CTA band */
.sc-cta.sc-cta--full {
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
  background: #f4ae2c;
  color: #1f1f1f;
  border-radius: 0;
  padding: 32px 0;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sc-cta.sc-cta--full .cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.sc-cta.sc-cta--full .view-prototype a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 16px/1.4 "Montserrat";
  background: var(--btn-blue, #398fba);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background 0.2s ease, transform 0.15s ease;
}
.sc-cta.sc-cta--full .view-prototype a:hover { background: #2a6d90; transform: translateY(-1px); }
.sc-cta.sc-cta--full .view-prototype a:active { transform: translateY(0); }
.sc-cta.sc-cta--full .view-prototype img { width: 20px; height: 20px; }
.sc-cta.sc-cta--full .cta-note { font: 400 16px/1.4 "Montserrat"; color: #000; opacity: 0.9; }

/* Mobile and tablet tweaks */
@media (max-width: 1024px) {
  #lumeve-showcase .sc-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
@media (max-width: 640px) {
  #lumeve-showcase { --gap: 4px; }
  #lumeve-showcase .sc-btn { font-size: 15px; padding: 12px 16px; }
  #lumeve-showcase .sc-arrow {
    display: flex !important;
    width: 56px; height: 56px; font-size: 26px;
  }
  #lumeve-showcase .sc-arrow.left { left: 8px; }
  #lumeve-showcase .sc-arrow.right { right: 8px; }
}
@media (max-width: 480px) {
  #lumeve-showcase .sc-slide img { max-height: 64vh; }
  #lumeve-showcase .sc-controls-hint { font-size: 12.5px; }
}

/* When JS marquee is active (mobile/iPad), disable CSS animation */
.js-marquee-on #lumeve-showcase .sc-strip {
  animation: none !important;
}

/* Stop animation when paused */
.sc-viewport.is-scroll .sc-strip { animation: none; }

/* Show arrows only when paused */
#lumeve-showcase .sc-viewport.is-scroll ~ .sc-arrow {
  opacity: 1;
  pointer-events: auto;
}

/* On phones, make arrows visible and larger */
@media (max-width: 640px) {
  #lumeve-showcase .sc-arrow {
    display: flex !important;
    width: 56px; height: 56px; font-size: 26px;
  }
}
