/* Pipeline page — same design language as theme.css */

.pipeline-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 28px 80px;
}

.pipeline-header {
  margin-bottom: 48px;
}
.pipeline-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(204,255,0,0.25);
  border-radius: 4px;
}
.pipeline-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}
.pipeline-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Step blocks */
.step-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
}
.step-block.hidden { display: none; }

.step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--lime);
  color: #09090E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Topic input */
.topic-form-wrap { display: flex; flex-direction: column; gap: 16px; }
.topic-textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  padding: 14px 16px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.topic-textarea:focus { border-color: rgba(204,255,0,0.4); }
.topic-textarea::placeholder { color: var(--text-muted); }

/* Buttons */
.btn-lime {
  background: var(--lime);
  color: #09090E;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-lime:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-lime:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-rec {
  background: var(--surface2);
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-rec:hover { background: var(--surface); }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lime);
  color: #09090E;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-download:hover { opacity: 0.88; transform: translateY(-1px); }

.step-actions { margin-top: 20px; }

/* Script display */
.script-display {
  background: var(--surface2);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}
.script-hook {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--lime);
  margin-bottom: 14px;
  line-height: 1.35;
}
.script-body {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.script-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Clip preview */
.clip-preview {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-height: 280px;
}
.clip-placeholder {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.clip-video {
  width: 100%;
  display: block;
}

/* Recording */
.record-panel { display: flex; flex-direction: column; gap: 16px; }
#rec-instructions {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  line-height: 1.55;
}
.record-controls { display: flex; gap: 12px; }
.record-status { font-size: 0.85rem; color: var(--text-muted); min-height: 20px; }
.audio-playback { width: 100%; border-radius: 8px; }

/* Compose log */
.compose-log {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.log-entry {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}
.log-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.log-entry.done { color: var(--lime); }
.log-entry.done::before { background: var(--lime); }

/* Download section */
.download-section { margin-top: 24px; }

/* Captions burned-in badge */
.captions-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(204,255,0,0.12);
  border: 1px solid rgba(204,255,0,0.3);
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.captions-badge.hidden { display: none; }

/* Post to X button */
.btn-post-x {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-post-x:hover { background: #1a1a1a; border-color: rgba(255,255,255,0.3); }
.btn-post-x.hidden { display: none; }

/* Posted to X confirmation link */
.btn-posted-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29,155,240,0.1);
  color: #1d9bf0;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(29,155,240,0.3);
  text-decoration: none;
  transition: background 0.15s;
}
.btn-posted-x:hover { background: rgba(29,155,240,0.18); }
.btn-posted-x.hidden { display: none; }

/* Error */
.error-msg {
  background: rgba(255,80,80,0.12);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff6b6b;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.88rem;
  margin-top: 16px;
}
.error-msg.hidden { display: none; }

@media (max-width: 480px) {
  .pipeline-wrap { padding: 120px 16px 60px; }
  .step-block { padding: 20px; }
}