/* css/index.css — Landing page (guest ghostwriter preview) */

.hero { max-width: 760px; margin: 70px auto; text-align: center; padding: 0 20px; }
.hero h1 { font-size: 2.5rem; color: var(--primary-navy, #0f172a); margin-bottom: 12px; }
.hero p { font-size: 1.1rem; color: var(--text-muted, #64748b); line-height: 1.6; margin-bottom: 30px; }
textarea { width: 100%; height: 130px; padding: 16px; border-radius: 10px; border: 1px solid var(--border-color, #cbd5e1); font-size: 1rem; font-family: inherit; box-sizing: border-box; resize: vertical; }
.chat-box { padding: 24px; margin-top: 20px; text-align: left; }

/* Chapter Preview Output Card */
.preview-card {
  margin-top: 30px;
  padding: 30px;
  text-align: left;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #e2e8f0);
  display: none;
}
.preview-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; padding-bottom: 12px; }
.badge-rounds { background: #e0f2fe; color: #0369a1; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.preview-card h2 { color: var(--primary-navy, #1e293b); margin: 15px 0 0 0; font-family: serif; }
.preview-card .chapter-body { font-family: serif; font-size: 1.15rem; line-height: 1.8; color: #334155; white-space: pre-line; margin-top: 15px; }

/* Soft Conversion Banner */
.save-banner {
  margin-top: 25px;
  padding: 18px 22px;
  background: #f0f9ff;
  border: 1px dashed #0284c7;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

/* Refinement Box */
.refine-box { margin-top: 25px; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.refine-box label { font-size: 0.95rem; font-weight: 600; color: #1e293b; display: block; margin-bottom: 8px; }

/* Hard Lock Wall */
.lock-wall {
  margin-top: 25px;
  padding: 25px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 10px;
  text-align: center;
  border: 1px solid #bae6fd;
}
.lock-wall h3 { color: #0369a1; margin-top: 0; }

/* Inline styles migrated out of index.html */
.btn-block { margin-top: 15px; border: none; cursor: pointer; width: 100%; font-size: 1rem; }
.draft-label { font-weight: 600; color: var(--text-muted, #64748b); }
.banner-title { color: #0369a1; font-size: 1rem; display: block; margin-bottom: 4px; }
.banner-text { font-size: 0.9rem; color: #334155; }
.btn-small { padding: 10px 18px; font-size: 0.9rem; white-space: nowrap; text-decoration: none; display: inline-block; }
.refine-input { height: 80px; }
.lock-wall-description { color: #334155; line-height: 1.5; margin-bottom: 20px; }
.btn-large { display: inline-block; padding: 12px 28px; text-decoration: none; font-size: 1.05rem; }

/* Real-time Streaming State Styles (Approach A) */
.stream-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-top: 10px;
  animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.01); }
}
.typing-cursor {
  display: inline-block;
  color: #0284c7;
  font-weight: bold;
  animation: blink-cursor 0.8s infinite;
  margin-left: 2px;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
