/* Prompt mini-examples — Desktop Commander–style stacked mockups */

.prompt-ex-section {
  margin-bottom: 4rem;
}

.prompt-ex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.prompt-ex-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prompt-ex-card--featured {
  margin-top: -0.5rem;
}

.prompt-ex-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prompt-ex-card__tag {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ps-accent-bright);
}

.prompt-ex-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ps-heading);
}

.prompt-ex-card__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ps-muted-ref);
}

.prompt-ex-stack {
  position: relative;
  min-height: 18.5rem;
  padding-top: 2.25rem;
}

.prompt-ex-float {
  position: absolute;
  top: 0;
  right: 0.5rem;
  z-index: 2;
  width: min(11.5rem, 72%);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #cbd5e1;
  transform: rotate(1.5deg);
}

.prompt-ex-float__path {
  display: block;
  margin-bottom: 0.45rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.625rem;
  color: #94a3b8;
}

.prompt-ex-float__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-ex-float__list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prompt-ex-float__list li:last-child {
  border-bottom: none;
}

.prompt-ex-float__dot {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ps-accent-bright);
  opacity: 0.85;
}

.prompt-ex-float__dot--amber {
  background: #f59e0b;
}

.prompt-ex-float__dot--rose {
  background: #f43f5e;
}

.prompt-ex-window {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #1a2234 0%, #111827 100%);
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.prompt-ex-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.prompt-ex-chrome__dots {
  display: flex;
  gap: 0.3rem;
}

.prompt-ex-chrome__dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.prompt-ex-chrome__dots span:nth-child(1) {
  background: #ef4444;
}

.prompt-ex-chrome__dots span:nth-child(2) {
  background: #eab308;
}

.prompt-ex-chrome__dots span:nth-child(3) {
  background: #22c55e;
}

.prompt-ex-chrome__path {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.6875rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-ex-prompt-wrap {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prompt-ex-prompt-wrap .prompt-ex-prompt {
  border-bottom: none;
  max-height: none;
  overflow: visible;
}

.prompt-ex-prompt--full {
  margin-top: 0.35rem;
  padding-top: 0;
  max-height: 11rem;
  overflow-y: auto;
}

.prompt-ex-prompt-toggle {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.9rem 0.65rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.12);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #5eead4;
  text-align: left;
  cursor: pointer;
}

.prompt-ex-prompt-toggle:hover {
  background: rgba(13, 148, 136, 0.18);
}

.prompt-ex-card--launch {
  cursor: pointer;
}

.prompt-ex-card--launch:focus-visible {
  outline: 2px solid var(--ps-accent-bright);
  outline-offset: 4px;
  border-radius: 12px;
}

.prompt-ex-card--launch .prompt-ex-card__cta {
  position: relative;
  z-index: 1;
}

.prompt-ex-prompt {
  margin: 0;
  padding: 0.85rem 0.9rem;
  max-height: 7.5rem;
  overflow-y: auto;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.prompt-ex-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem 0;
}

.prompt-ex-pill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-ex-pill--accent {
  color: #5eead4;
  background: rgba(13, 148, 136, 0.22);
  border-color: rgba(13, 148, 136, 0.35);
}

.prompt-ex-log-wrap {
  padding: 0.65rem 0.75rem 0.85rem;
}

.prompt-ex-log-label {
  margin: 0 0 0.45rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.prompt-ex-log {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.6875rem;
  line-height: 1.55;
  color: #94a3b8;
}

.prompt-ex-log li {
  padding: 0.12rem 0;
}

.prompt-ex-log li::before {
  content: "› ";
  color: var(--ps-accent-bright);
}

.prompt-ex-log li strong {
  color: #cbd5e1;
  font-weight: 600;
}

.prompt-ex-card__cta {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ps-accent-bright-dark);
  text-decoration: none;
}

.prompt-ex-card__cta:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .prompt-ex-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .prompt-ex-card--featured {
    margin-top: 0;
  }

  .prompt-ex-stack {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-ex-float {
    transform: none;
  }
}
