/* ═══════════════════════════════════════════════════════════════════
   THE COMPASS PRO — extensions for Studio + Foundry
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Studio pieces ─── */
.pieces-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.piece-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--sapphire);
  transition: border-color 0.15s ease;
}
.piece-card.posted { border-left-color: var(--success); background: rgba(5, 150, 105, 0.03); }
.piece-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.piece-platform {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(30, 58, 138, 0.08);
  color: var(--sapphire);
}
.piece-platform.pl-linkedin { background: rgba(30, 58, 138, 0.10); color: var(--sapphire); }
.piece-platform.pl-instagram_post, .piece-platform.pl-instagram_carousel, .piece-platform.pl-reel { background: rgba(201, 169, 97, 0.15); color: var(--gold); }
.piece-platform.pl-twitter { background: rgba(31, 41, 51, 0.08); color: var(--charcoal); }
.piece-platform.pl-facebook { background: rgba(10, 31, 68, 0.08); color: var(--midnight); }
.piece-platform.pl-video_script { background: rgba(201, 169, 97, 0.10); color: var(--gold); }
.piece-posted-badge {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--success);
  font-weight: 700;
}
.piece-title {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--midnight);
  font-weight: 600;
  margin-bottom: 12px;
}
.piece-body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.piece-visual {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.piece-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ─── Foundry templates ─── */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.template-card {
  background: var(--pearl-2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--charcoal);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: block;
}
.template-card:hover { border-color: var(--gold); transform: translateY(-2px); border-bottom: 1px solid var(--gold); }
.template-category {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.template-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--midnight);
  font-size: 16px;
  margin-bottom: 6px;
}
.template-oneliner {
  font-size: 13px;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.5;
}
.template-meta {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ─── Foundry blueprint ─── */
.build-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.build-steps li {
  counter-increment: step;
  padding: 14px 0 14px 48px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.build-steps li:last-child { border-bottom: none; }
.build-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sapphire);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.step-action {
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 4px;
  font-size: 15px;
}
.step-detail {
  font-size: 14px;
  color: var(--charcoal);
}

.prompt-block {
  background: var(--pearl-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.prompt-name {
  font-weight: 600;
  color: var(--midnight);
  font-size: 14px;
}
/* ─── Voice samples ─── */
.samples-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sample-row {
  background: var(--pearl-2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
}
.sample-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.sample-type {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.sample-note {
  font-style: italic;
  color: var(--charcoal);
  font-size: 12px;
}
.sample-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.sample-preview {
  font-size: 13px;
  color: var(--charcoal);
  white-space: pre-wrap;
  line-height: 1.55;
}

.prompt-content {
  background: var(--white);
  padding: 12px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--charcoal);
  overflow-x: auto;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  margin: 0;
}
