/* Website Demo Library — premium showcase motion & layout */

/* Hero with human cutout (matches Websites / About feel) */
.showcase-hero {
  padding: 3rem 1.25rem 0;
  background: #050505;
}
@media (min-width: 768px) {
  .showcase-hero {
    padding: 4rem 3rem 0;
  }
}
@media (min-width: 1024px) {
  .showcase-hero {
    padding: 4.5rem 4rem 0;
  }
}
.showcase-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: end;
  width: min(72rem, 100%);
  margin-inline: auto;
}
.showcase-hero-copy {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding-bottom: 0.5rem;
}
.showcase-hero-copy a {
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .showcase-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem 3rem;
    min-height: min(62vh, 540px);
  }
  .showcase-hero-copy {
    text-align: left;
    max-width: 34rem;
    margin-inline: 0;
    align-self: center;
    padding-bottom: 2.5rem;
  }
  .showcase-hero-copy a {
    margin-inline: 0;
  }
}
.showcase-hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(92%, 360px);
  margin-inline: auto;
  min-height: 0;
}
.showcase-hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 70%;
  height: 42%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.28) 0%, rgba(8, 145, 178, 0.08) 45%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.showcase-hero-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: min(48svh, 450px);
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 28px rgba(34, 211, 238, 0.18));
}
@media (min-width: 1024px) {
  .showcase-hero-visual {
    width: min(100%, 480px);
    margin-inline: 0 0;
    margin-left: auto;
    min-height: min(58vh, 500px);
  }
  .showcase-hero-visual img {
    max-height: min(68vh, 580px);
  }
}

.showcase-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.showcase-filter-btn {
  font-family: Orbitron, sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.showcase-filter-btn:hover,
.showcase-filter-btn:focus-visible {
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.45);
  outline: none;
}

.showcase-filter-btn.is-active {
  color: #041016;
  background: #22d3ee;
  border-color: #22d3ee;
}

.showcase-empty {
  display: none;
  text-align: center;
  color: #a3a3a3;
  padding: 2.5rem 1rem;
}

.showcase-empty.is-visible {
  display: block;
}

.showcase-empty p {
  margin: 0 0 1rem;
}

.showcase-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Orbitron, sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #041016;
  background: #22d3ee;
  border: 1px solid #22d3ee;
  padding: 0.65rem 1.1rem;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.showcase-empty-cta:hover,
.showcase-empty-cta:focus-visible {
  background: #67e8f9;
  border-color: #67e8f9;
  outline: none;
}

#showcase-featured[hidden] {
  display: none !important;
  margin: 0;
  padding: 0;
  border: 0;
}

/*
 * Showcase-only: below ~480px, shrink the help launcher to an icon circle
 * so it cannot overlap sticky filter chips. Other pages keep the pill label.
 */
@media (max-width: 480px) {
  body[data-page="showcase"] .wwh-assistant-launcher {
    right: 1rem;
    bottom: 11.25rem;
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    padding: 0;
    justify-content: center;
    gap: 0;
    max-width: none;
    border-radius: 9999px;
  }

  body[data-page="showcase"] .wwh-assistant-launcher-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}


/* Featured browser cards */
.showcase-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .showcase-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.showcase-featured-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.showcase-featured-card:hover,
.showcase-featured-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.1);
}

.showcase-browser {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}

.showcase-browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-browser-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #525252;
}

.showcase-browser-dot:nth-child(1) { background: #ef4444; }
.showcase-browser-dot:nth-child(2) { background: #eab308; }
.showcase-browser-dot:nth-child(3) { background: #22c55e; }

.showcase-browser-url {
  margin-left: 0.5rem;
  flex: 1;
  font-size: 0.65rem;
  color: #737373;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-featured-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #171717;
}

.showcase-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.showcase-featured-card:hover .showcase-featured-thumb img,
.showcase-featured-card:focus-within .showcase-featured-thumb img {
  transform: scale(1.04) translateY(-1.5%);
}

.showcase-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.showcase-chip {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(8, 145, 178, 0.1);
  padding: 0.28rem 0.55rem;
}

/* Standard cards */
.showcase-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.showcase-card.is-hidden {
  display: none !important;
}

.showcase-card:hover,
.showcase-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.09);
}

.showcase-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #171717;
}

.showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.showcase-card:hover .showcase-thumb img,
.showcase-card:focus-within .showcase-thumb img {
  transform: scale(1.04) translateY(-1.5%);
}

.showcase-card-arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.showcase-card:hover .showcase-card-arrow,
.showcase-card:focus-within .showcase-card-arrow {
  transform: translate(2px, -2px);
}

.showcase-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.showcase-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .showcase-card,
  .showcase-featured-card,
  .showcase-thumb img,
  .showcase-featured-thumb img,
  .showcase-card-arrow,
  .showcase-reveal,
  .showcase-filter-btn {
    transition: none !important;
  }

  .showcase-card:hover,
  .showcase-card:focus-within,
  .showcase-featured-card:hover,
  .showcase-featured-card:focus-within {
    transform: none;
  }

  .showcase-card:hover .showcase-thumb img,
  .showcase-card:focus-within .showcase-thumb img,
  .showcase-featured-card:hover .showcase-featured-thumb img,
  .showcase-featured-card:focus-within .showcase-featured-thumb img {
    transform: none;
  }

  .showcase-reveal {
    opacity: 1;
    transform: none;
  }
}
