/* Product Preview — labeled wireframes (not live screenshots) */

.preview-frame {
  margin: 0;
  border-radius: 0.85rem;
  border: 1px solid #262626;
  background: #080808;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
}

.preview-frame__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #1f1f1f;
  background: #0a0a0a;
}

.preview-badge {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fca5a5;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.preview-badge--sub {
  color: #a1a1aa;
  border-color: #333;
  background: #111;
}

.preview-frame__caption {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #52525b;
  border-top: 1px solid #1a1a1a;
  background: #050505;
}

/* Wireframe shell */
.preview-wireframe {
  position: relative;
  min-height: 14rem;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255, 255, 255, 0.02) 19px, rgba(255, 255, 255, 0.02) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255, 255, 255, 0.02) 19px, rgba(255, 255, 255, 0.02) 20px),
    #060608;
}

.preview-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(0.625rem, 2vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

.pw-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px dashed #2a2a2a;
  background: rgba(10, 10, 12, 0.9);
}

.pw-dots {
  display: flex;
  gap: 0.25rem;
}

.pw-dots span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #333;
  border: 1px dashed #444;
}

.pw-chrome__title {
  flex: 1;
  height: 0.45rem;
  max-width: 6rem;
  border-radius: 999px;
  background: #222;
  border: 1px dashed #333;
}

.pw-chrome__tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #52525b;
}

.pw-body {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  min-height: 11rem;
}

.pw-sidebar {
  padding: 0.5rem 0.35rem;
  border-right: 1px dashed #2a2a2a;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pw-sidebar__item {
  height: 0.55rem;
  border-radius: 0.25rem;
  background: #151518;
  border: 1px dashed #2a2a2a;
}

.pw-sidebar__item--active {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.pw-main {
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pw-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.pw-kpi {
  height: 2.25rem;
  border-radius: 0.35rem;
  border: 1px dashed #2a2a2a;
  background: #0c0c0f;
}

.pw-chart {
  flex: 1;
  min-height: 5rem;
  border-radius: 0.35rem;
  border: 1px dashed #2a2a2a;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, transparent 70%), #0a0a0d;
  position: relative;
  overflow: hidden;
}

.pw-chart::after {
  content: "";
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 40%;
  border-top: 1px dashed rgba(59, 130, 246, 0.25);
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent);
}

.pw-table {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pw-table__row {
  height: 0.55rem;
  border-radius: 0.2rem;
  background: #111;
  border: 1px dashed #262626;
}

.pw-table__row--short { width: 70%; }
.pw-table__row--med { width: 85%; }

/* Compact variant */
.preview-wireframe--compact .pw-body {
  grid-template-columns: 1fr;
  min-height: 9rem;
}

.preview-wireframe--compact .pw-sidebar {
  display: none;
}

/* Session wireframe */
.preview-wireframe--session .pw-body {
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
}

.pw-panel {
  border-radius: 0.35rem;
  border: 1px dashed #2a2a2a;
  background: #0a0a0d;
  min-height: 6rem;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pw-panel__label {
  height: 0.4rem;
  width: 40%;
  border-radius: 999px;
  background: #222;
  border: 1px dashed #333;
}

.pw-panel__block {
  flex: 1;
  border-radius: 0.25rem;
  border: 1px dashed #262626;
  background: #08080a;
}

/* Product preview gallery */
.preview-gallery {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .preview-gallery--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.preview-gallery__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-gallery__item h3 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d4d4d8;
}

.preview-gallery__item p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #52525b;
}

.preview-disclaimer {
  margin: 2rem auto 0;
  max-width: 42rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #262626;
  background: #0a0a0a;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #71717a;
  text-align: center;
}

.preview-disclaimer strong {
  color: #a1a1aa;
  font-weight: 600;
}
