/* ==========================================================================
   CV Launch Intelligence — Enrichment Status Cards
   Used in: onboarding wizard, launch dashboard, admin project table
   ========================================================================== */

/* ── Status cards grid ─────────────────────────────────────────────────── */
.cv-li-cards {
	margin: 0 0 24px;
}

.cv-li-cards-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 12px;
}

@media ( max-width: 600px ) {
	.cv-li-cards-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Single card base ──────────────────────────────────────────────────── */
.cv-li-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid transparent;
	background: #f9fafb;
	transition: box-shadow .15s ease;
	position: relative;
}

.cv-li-card-icon {
	font-size: 22px;
	flex-shrink: 0;
	line-height: 1;
}

.cv-li-card-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.cv-li-card-label {
	font-size: 13px;
	font-weight: 600;
	color: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cv-li-card-status {
	font-size: 11px;
	opacity: .75;
}

/* ── Status dot ────────────────────────────────────────────────────────── */
.cv-li-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* ── State: pending ────────────────────────────────────────────────────── */
.cv-li-card--pending {
	background: #f3f4f6;
	border-color: #d1d5db;
	color: #6b7280;
}
.cv-li-dot--pending {
	background: #9ca3af;
}

/* ── State: running (animated) ─────────────────────────────────────────── */
.cv-li-card--running {
	background: #fffbeb;
	border-color: #fcd34d;
	color: #92400e;
}
.cv-li-dot--running {
	background: #f59e0b;
	animation: cv-li-pulse 1.2s infinite ease-in-out;
}

@keyframes cv-li-pulse {
	0%,100% { opacity: 1; transform: scale(1); }
	50%      { opacity: .4; transform: scale(.7); }
}

/* ── State: complete ───────────────────────────────────────────────────── */
.cv-li-card--complete {
	background: #f0fdf4;
	border-color: #86efac;
	color: #166534;
}
.cv-li-dot--complete {
	background: #22c55e;
}

/* ── State: failed ─────────────────────────────────────────────────────── */
.cv-li-card--failed {
	background: #fef2f2;
	border-color: #fca5a5;
	color: #991b1b;
}
.cv-li-dot--failed {
	background: #ef4444;
}

/* ── State: skipped ────────────────────────────────────────────────────── */
.cv-li-card--skipped {
	background: #f9fafb;
	border-color: #e5e7eb;
	color: #6b7280;
	opacity: .75;
}
.cv-li-dot--skipped {
	background: #d1d5db;
}

/* ── AI summary text ───────────────────────────────────────────────────── */
.cv-li-ai-summary {
	margin: 12px 0 6px;
	padding: 10px 14px;
	background: #f8fafc;
	border-left: 3px solid #818cf8;
	border-radius: 0 6px 6px 0;
	font-size: 13px;
	line-height: 1.55;
	color: #374151;
}

/* ── SEO score pill ────────────────────────────────────────────────────── */
.cv-li-seo-score {
	margin: 6px 0 0;
	font-size: 13px;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cv-li-seo-grade {
	display: inline-block;
	padding: 1px 8px;
	background: #e0e7ff;
	color: #3730a3;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
}

/* ── Launch flow: analyzing notice banner ──────────────────────────────── */
.cv-lf-enrich-notice {
	margin: 20px 0;
	padding: 14px 18px;
	background: #eff6ff;
	border: 1px solid #93c5fd;
	border-radius: 8px;
	font-size: 14px;
	color: #1e40af;
	line-height: 1.5;
}

.cv-lf-enrich-notice::before {
	content: "🔍 ";
}

/* ── Profile match notice ──────────────────────────────────────────────────── */
.cv-li-match-notice {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.5;
}

.cv-li-match-notice--review {
	background: #fffbeb;
	border: 1px solid #fcd34d;
	color: #92400e;
}

.cv-li-match-notice--matched {
	background: #f0fdf4;
	border: 1px solid #86efac;
	color: #166534;
}

.cv-li-section {
	margin-top: 28px;
}

.cv-li-section-title {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e7eb;
}

/* Rerun button */
.cv-li-rerun-btn {
	margin-top: 16px;
	padding: 8px 18px;
	background: #4f46e5;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}

.cv-li-rerun-btn:hover {
	background: #4338ca;
}

.cv-li-rerun-btn:disabled {
	background: #9ca3af;
	cursor: default;
}

/* Suggested services list */
.cv-li-services-list,
.cv-li-keywords-list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cv-li-services-list li,
.cv-li-keywords-list li {
	padding: 3px 10px;
	background: #f3f4f6;
	border-radius: 999px;
	font-size: 12px;
	color: #374151;
}
