/* Vyrl Content Pipeline — Dashboard Styles */

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface2: #27272a;
  --border: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #10b981;
  --accent-dim: #065f46;
  --amber: #f59e0b;
  --danger: #ef4444;
  --finance: #10b981;
  --productivity: #3b82f6;
  --storytelling: #a855f7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.dashboard-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.pipeline-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.pipeline-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pipeline-header p { color: var(--text-muted); margin-top: 0.25rem; }

.pipeline-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.pipeline-section:last-child { border-bottom: none; }

.pipeline-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; }

/* Niche grid */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.niche-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.niche-btn:hover { border-color: var(--accent); }
.niche-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.niche-icon { font-size: 1.25rem; }

.selected-niche {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.selected-niche strong { color: var(--accent); }

/* Pipeline trigger button */
.pipeline-btn {
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pipeline-btn:hover:not(:disabled) { opacity: 0.9; }
.pipeline-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.pipeline-status {
  margin-top: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}
.pipeline-status.info { background: #1e3a5f; border: 1px solid #2563eb; }
.pipeline-status.success { background: var(--accent-dim); border: 1px solid var(--accent); }
.pipeline-status.error { background: #450a0a; border: 1px solid var(--danger); color: var(--danger); }

.pipeline-output { margin-top: 1rem; }

/* Result cards */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.result-card h4 { margin-bottom: 0.75rem; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.result-card .script-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.result-card p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.4rem; }
.result-card strong { color: var(--text); }

/* Status badges */
.badge {
  background: var(--surface2);
  color: var(--text-muted);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-badge {
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.draft { background: #27272a; color: #a1a1aa; }
.approved { background: #1e3a5f; color: #60a5fa; }
.video_ready { background: #065f46; color: #10b981; }
.posted { background: #065f46; color: #10b981; }
.planned { background: #27272a; color: #a1a1aa; }
.scripted { background: #1e3a5f; color: #60a5fa; }
.voiced { background: #2d1b69; color: #a855f7; }
.edited { background: #065f46; color: #10b981; }
.ready { background: #065f46; color: #10b981; }
.pending { background: #27272a; color: #a1a1aa; }
.missed { background: #450a0a; color: #ef4444; }

/* CapCut export box */
.capcut-export {
  margin-top: 1rem;
  padding: 1rem;
  background: #0c0c0e;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.capcut-export h5 { font-size: 0.875rem; margin-bottom: 0.5rem; color: var(--accent); }
.capcut-export ul { list-style: none; }
.capcut-export li { font-size: 0.8rem; color: var(--text-muted); padding: 0.25rem 0; }

/* CapCut notes */
.capcut-note { color: #10b981; font-size: 0.8rem; }

/* Items grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.item-card h4 { font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.item-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.item-meta { color: var(--text-muted); font-size: 0.8rem; }

/* Schedule */
.schedule-list { display: flex; flex-direction: column; gap: 0.5rem; }
.schedule-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
}
.slot-date { font-weight: 600; min-width: 160px; }
.slot-label { color: var(--text-muted); text-transform: capitalize; min-width: 80px; }
.video-link { color: var(--accent); font-size: 0.8rem; }
.unassigned { color: var(--text-muted); font-size: 0.8rem; }

/* Affiliate form */
.affiliate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}
.affiliate-form select, .affiliate-form input {
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.875rem;
}
.affiliate-form select { min-width: 120px; }
.affiliate-form input { flex: 1; min-width: 180px; }
.affiliate-card { border-left: 3px solid var(--accent); }
.affiliate-card a { color: #60a5fa; font-size: 0.8rem; word-break: break-all; }

/* Buttons */
.mini-btn {
  padding: 0.3rem 0.75rem;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Empty state */
.empty-state { color: var(--text-muted); font-size: 0.875rem; font-style: italic; }

/* Responsive */
@media (max-width: 640px) {
  .niche-grid { grid-template-columns: 1fr; }
  .items-grid { grid-template-columns: 1fr; }
  .dashboard-container { padding: 0 1rem 4rem; }
}