/* EZ-114 | 2026-11-19 | Shared responsive plugin showcase.
   Keep this file byte-identical to alpha/public/assets/plugin-showcase-layout.css.
   Public catalogue and signed-in workspace must have the same slide geometry. */
.plugin-showcase {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  margin: 18px 0;
  padding: 0;
}
.plugin-showcase-track {
  display: flex;
  gap: 0;
  min-width: 0;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
}
.plugin-showcase-slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 clamp(12px, 3vw, 56px);
  scroll-snap-align: start;
}
.plugin-showcase-screen {
  /* Wrapper holds the visual AND the caption, so it must grow with both. */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(100%, 700px);
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  margin: 0 auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.plugin-concept-art {
  box-sizing: border-box;
  display: grid;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-height: 390px;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  padding: clamp(16px, 3vw, 30px);
  align-content: center;
  justify-items: center;
  gap: 8px;
  background: linear-gradient(145deg, #dcecf5, #aecddd);
  box-shadow: 0 7px 18px rgba(13, 45, 67, .14);
}
.plugin-showcase-screen > img {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: block;
  width: 100%;
  height: auto;
  max-height: 390px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 18px;
  background: #e7edf1;
  box-shadow: 0 7px 18px rgba(13, 45, 67, .14);
}
.plugin-concept-art > span {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.1;
}
.plugin-concept-art > strong {
  max-width: 26ch;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.plugin-concept-art > small {
  font-size: .77rem;
  letter-spacing: .07em;
}
.plugin-slide-caption {
  /* Captions belong in normal flow, not over the concept title or screenshot. */
  box-sizing: border-box;
  position: static;
  inset: auto;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  width: min(100%, 700px);
  min-width: 0;
  margin: 12px auto 0;
  padding: 14px 18px;
  gap: 6px;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(10, 35, 54, .13);
  pointer-events: auto;
  overflow-wrap: anywhere;
}
.plugin-slide-caption > strong {
  font-size: 1.05rem;
  line-height: 1.3;
}
.plugin-slide-caption > span { display: block; max-height: 11em; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.showcase-arrow { top: 35%; }
.showcase-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin: 2px 0 8px;
}
.showcase-dots button,
.showcase-dots button.active {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  transform: none;
}
.showcase-dots button::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aebbc5;
}
.showcase-dots button.active::before {
  background: #f58232;
  transform: scale(1.25);
}
.showcase-dots button:focus-visible {
  outline: 2px solid #174d78;
  outline-offset: -2px;
}
.plugin-detail-head > div { min-width: 0; }
.plugin-detail-head h2 { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .plugin-showcase { margin: 15px 0 10px; padding: 0; }
  .plugin-showcase-track { gap: 0; padding: 2px 0 10px; }
  .plugin-showcase-slide { flex: 0 0 100%; padding: 0; }
  .plugin-showcase-screen {
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
  }
  .plugin-concept-art,
  .plugin-showcase-screen > img {
    max-height: 280px;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }
  .plugin-concept-art { padding: 16px; gap: 6px; }
  .plugin-concept-art > span { font-size: 3rem; }
  .plugin-concept-art > strong {
    max-width: 23ch;
    font-size: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.2;
  }
  .plugin-concept-art > small { font-size: .7rem; }
  .plugin-slide-caption {
    width: 100%;
    left: auto;
    right: auto;
    top: auto;
    margin: 9px auto 0;
    padding: 12px 14px;
    font-size: .96rem;
    line-height: 1.4;
  }
  .plugin-detail-head { align-items: start; }
  .plugin-detail-head h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .showcase-arrow { display: none; }
}
