/* ── Campaign-specific styles ────────────────────────────────── */

/* ── Campaign Cards ──────────────────────────────────────────── */

.campaign-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.campaign-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.campaign-card .camp-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.campaign-card .camp-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.campaign-card .camp-latest {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 6px;
}

.quick-recap-card {
  border: 1px dashed var(--border-strong);
  background: var(--surface-alt);
  transition: background 0.15s, border-color 0.15s;
}

.quick-recap-card:hover {
  background: var(--surface);
  border-color: var(--accent);
}

.no-campaigns {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-faint);
}

.no-campaigns p {
  font-size: 0.95rem;
}

/* ── Timeline ────────────────────────────────────────────────── */

.timeline-entry {
  position: relative;
  padding-left: 32px;
  padding-bottom: 24px;
  border-left: 2px solid var(--border);
  margin-left: 8px;
}

.timeline-entry:last-child {
  border-left-color: transparent;
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-border);
}

.timeline-entry .tl-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.timeline-entry .tl-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.timeline-entry .tl-session {
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-weight: 500;
}

.timeline-entry .tl-date {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.timeline-entry .tl-preview {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-entry .tl-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tl-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

/* ── Thread Tracker ──────────────────────────────────────────── */

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thread-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
}

.thread-item.thread-open {
  background: rgba(184, 110, 44, 0.06);
  border: 1px solid var(--accent-border);
  color: var(--ink);
}

.thread-item.thread-resolved {
  background: var(--success-bg);
  border: 1px solid rgba(74, 140, 92, 0.15);
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: var(--ink-faint);
}

.thread-item .thread-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.thread-item .thread-meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

.threads-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

/* ── Expandable Recap in Timeline ────────────────────────────── */

.tl-expand-btn {
  font: inherit;
  font-size: 0.82rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 6px;
}

.tl-expand-btn:hover {
  text-decoration: underline;
}

.tl-full-recap {
  display: none;
  margin-top: 12px;
  padding: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.tl-full-recap.visible {
  display: block;
  animation: fadeSlideIn 0.3s ease;
}

.tl-full-recap .recap-narrative {
  font-size: 0.9rem;
}

/* ── Continuity Banner ───────────────────────────────────────── */

#continuity-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
