/* =========================================================
   WPCarSync Theme-Showcase  ([theme_showcase])
   Laptop-Mockup mit Scroll-im-Rahmen + Bereichs-Menü
   ========================================================= */

.wpcs-showcase {
  --wpcs-grad: linear-gradient(135deg, #78E9FB 0%, #9B51E0 55%, #E32E76 100%);
  --wpcs-ink: #14161c;
  --wpcs-line: #e6e8ee;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  box-sizing: border-box;
}

/* Volle Browser-Breite – bricht aus einer schmalen Elementor-Spalte aus */
.wpcs-showcase.wpcs-showcase--breakout {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: clamp(16px, 4vw, 72px);
  padding-right: clamp(16px, 4vw, 72px);
}

.wpcs-showcase__title {
  text-align: center;
  margin: 0 0 28px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wpcs-showcase__stage {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* ---------- Laptop (links, ~2/3) ---------- */
.wpcs-laptop {
  flex: 2 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wpcs-laptop__frame {
  position: relative;
  width: 100%;
  background: #0d0f14;
  border-radius: 16px 16px 5px 5px;
  padding: 0 12px 0;
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .5);
}

/* Browser-Chrome im Screen */
.wpcs-laptop__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 4px;
}
.wpcs-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3f4b;
  flex: 0 0 auto;
}
.wpcs-dot--r { background: #ff5f57; }
.wpcs-dot--y { background: #febc2e; }
.wpcs-dot--g { background: #28c840; }
.wpcs-laptop__url {
  margin-left: 12px;
  flex: 1 1 auto;
  min-width: 0;
  background: #1b1f27;
  color: #8b93a3;
  font-size: 13px;
  line-height: 1;
  border-radius: 7px;
  padding: 7px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bildschirm / Viewport */
.wpcs-laptop__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  cursor: ns-resize;
}
/* Scroll-Hinweis unten */
.wpcs-laptop__viewport::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: linear-gradient(to top, rgba(0,0,0,.10), transparent);
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s ease;
}
.wpcs-laptop__viewport:hover::after { opacity: 0; }

.wpcs-laptop__shot {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: transform var(--pan, .45s) ease, opacity .3s ease, visibility .3s ease;
  will-change: transform;
  user-select: none;
}
.wpcs-laptop__shot.is-active {
  opacity: 1;
  visibility: visible;
}

/* Laptop-Sockel / Scharnier */
.wpcs-laptop__base {
  position: relative;
  width: 114%;
  height: 16px;
  background: linear-gradient(180deg, #e7eaef 0%, #c3c9d3 55%, #9097a3 100%);
  border-radius: 3px 3px 13px 13px;
  box-shadow: 0 24px 34px -14px rgba(0, 0, 0, .45);
}
.wpcs-laptop__base::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 13%;
  height: 7px;
  background: #aeb4c0;
  border-radius: 0 0 8px 8px;
}

/* ---------- Menü (rechts, ~1/3) ---------- */
.wpcs-showcase__nav {
  flex: 1 1 0;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 6px;
}

.wpcs-showcase__navbtn {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--wpcs-line);
  background: #fff;
  border-radius: 13px;
  padding: 14px 16px;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: var(--wpcs-ink);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.wpcs-showcase__navbtn:hover {
  border-color: #cdd2dd;
  transform: translateX(3px);
}
.wpcs-showcase__navbtn.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--wpcs-grad);
  box-shadow: 0 14px 28px -12px rgba(155, 81, 224, .65);
}

.wpcs-showcase__navnum {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f0f1f5;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}
.wpcs-showcase__navbtn.is-active .wpcs-showcase__navnum {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}
.wpcs-showcase__navlabel {
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Menü als 2-spaltiges Grid (menu="grid") ---------- */
.wpcs-showcase--gridmenu .wpcs-laptop {
  flex: 0 0 65%;
  max-width: 65%;
}
.wpcs-showcase--gridmenu .wpcs-showcase__nav {
  flex: 0 0 35%;
  max-width: 35%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}
.wpcs-showcase--gridmenu .wpcs-showcase__navbtn {
  padding: 11px 12px;
  gap: 10px;
  border-radius: 11px;
}
.wpcs-showcase--gridmenu .wpcs-showcase__navbtn:hover {
  transform: none;
}
.wpcs-showcase--gridmenu .wpcs-showcase__navnum {
  width: 22px;
  height: 22px;
  font-size: 12px;
}
.wpcs-showcase--gridmenu .wpcs-showcase__navlabel {
  font-size: 13px;
}

/* ---------- Leerzustand ---------- */
.wpcs-showcase--empty {
  border: 1px dashed #cdd2dd;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  color: #6b7280;
}
.wpcs-showcase--empty code {
  background: #f0f1f5;
  padding: 2px 7px;
  border-radius: 6px;
  color: #14161c;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .wpcs-showcase__stage { flex-direction: column; gap: 24px; align-items: stretch; }
  .wpcs-laptop { width: 100%; }
  .wpcs-showcase--gridmenu .wpcs-laptop,
  .wpcs-showcase--gridmenu .wpcs-showcase__nav { flex: 1 1 auto; max-width: 100%; width: 100%; }
  .wpcs-showcase__nav {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
  }
  .wpcs-showcase__navbtn { flex: 1 1 auto; }
  .wpcs-showcase__navbtn:hover { transform: none; }
}
