/**
 * AgenticWP vs AI Engine Comparison Post Styles
 *
 * Styles specific to the comparison blog post, including:
 * - Verdict card
 * - Audience grid
 * - Comparison table
 * - Pricing cards
 * - Choice cards
 * - Decision checklist
 *
 * @package AgenticWP
 */

/* ==========================================================================
   Verdict Card
   ========================================================================== */

.verdict-card {
	padding: 32px;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1px solid #86efac;
	border-radius: 16px;
	margin: 24px 0;
}

.verdict-summary {
	font-size: 18px;
	line-height: 1.7;
	color: var(--ink);
	margin: 0 0 16px;
}

.verdict-distinction {
	font-size: 16px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
	font-style: italic;
}

/* ==========================================================================
   Audience Grid
   ========================================================================== */

.audience-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 32px 0;
}

.audience-card {
	padding: 28px;
	border-radius: 12px;
	border: 1px solid var(--line);
}

.audience-card--yes {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.audience-card--no {
	background: #fefce8;
	border-color: #fef08a;
}

.audience-card-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 16px;
}

.audience-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.audience-list li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 10px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
}

.audience-list li:last-child {
	margin-bottom: 0;
}

.audience-card--yes .audience-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
}

.audience-card--no .audience-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab308' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */

.comparison-table-wrapper {
	overflow-x: auto;
	margin: 32px 0;
	border-radius: 12px;
	border: 1px solid var(--line);
}

.comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.comparison-table th,
.comparison-table td {
	padding: 16px 20px;
	text-align: left;
	border-bottom: 1px solid var(--line);
}

.comparison-table th {
	background: #f8fafc;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}

.comparison-table th:first-child {
	border-top-left-radius: 11px;
}

.comparison-table th:last-child {
	border-top-right-radius: 11px;
}

.comparison-table tbody tr:last-child td {
	border-bottom: none;
}

.comparison-table tbody tr:hover {
	background: #fafafa;
}

.comparison-table td:first-child {
	font-weight: 500;
	color: var(--ink);
}

.winner-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	white-space: nowrap;
}

.winner-badge--agenticwp {
	background: var(--accent-weak);
	color: var(--accent);
}

.winner-badge--aiengine {
	background: #dbeafe;
	color: #1d4ed8;
}

.winner-badge--tie {
	background: #f3f4f6;
	color: var(--muted);
}

/* ==========================================================================
   Section Subtitles
   ========================================================================== */

.post-section-subtitle {
	font-size: 22px;
	font-weight: 600;
	color: var(--ink);
	margin: 40px 0 16px;
	scroll-margin-top: 100px;
}

/* ==========================================================================
   Pricing Comparison
   ========================================================================== */

.pricing-comparison {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 32px 0;
}

.pricing-card {
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
}

.pricing-card-header {
	padding: 20px 24px;
	text-align: center;
}

.pricing-card-header--agenticwp {
	background: linear-gradient(135deg, var(--accent) 0%, #0a1a4d 100%);
}

.pricing-card-header--aiengine {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.pricing-card-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--bg);
	margin: 0;
}

.pricing-card-body {
	padding: 24px;
}

.pricing-features {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.pricing-features li {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	line-height: 1.5;
}

.pricing-features li:last-child {
	border-bottom: none;
}

.pricing-tier {
	font-weight: 600;
	color: var(--ink);
}

.pricing-note {
	font-size: 14px;
	color: var(--muted);
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

/* ==========================================================================
   Value Verdict
   ========================================================================== */

.value-verdict {
	padding: 28px;
	background: #f8fafc;
	border-radius: 12px;
	margin: 32px 0;
}

.value-verdict-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 16px;
}

.value-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.value-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	line-height: 1.6;
}

.value-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.value-list strong {
	color: var(--ink);
}

/* ==========================================================================
   Choice Grid
   ========================================================================== */

.choice-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 32px 0;
}

.choice-card {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--line);
}

.choice-card-header {
	padding: 20px 24px;
}

.choice-card--agenticwp .choice-card-header {
	background: linear-gradient(135deg, var(--accent-weak) 0%, #d8f5a0 100%);
	border-bottom: 1px solid #c3e87d;
}

.choice-card--aiengine .choice-card-header {
	background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
	border-bottom: 1px solid #93c5fd;
}

.choice-card-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
	margin: 0;
}

.choice-list {
	list-style: none;
	margin: 0;
	padding: 24px;
}

.choice-list li {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	line-height: 1.6;
}

.choice-list li:first-child {
	padding-top: 0;
}

.choice-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.choice-list strong {
	display: block;
	color: var(--ink);
	margin-bottom: 4px;
}

.choice-neither {
	padding: 28px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 12px;
	margin: 32px 0;
}

.choice-neither-title {
	font-size: 18px;
	font-weight: 600;
	color: #991b1b;
	margin: 0 0 16px;
}

.choice-neither p {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 12px;
}

.choice-neither p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Decision Checklist
   ========================================================================== */

.decision-checklist {
	list-style: none;
	counter-reset: decision-counter;
	margin: 32px 0;
	padding: 0;
}

.decision-checklist li {
	counter-increment: decision-counter;
	position: relative;
	padding: 24px 24px 24px 80px;
	background: #f8fafc;
	border-radius: 12px;
	margin-bottom: 16px;
}

.decision-checklist li:last-child {
	margin-bottom: 0;
}

.decision-checklist li::before {
	content: counter(decision-counter);
	position: absolute;
	left: 24px;
	top: 24px;
	width: 36px;
	height: 36px;
	background: var(--accent);
	color: var(--bg);
	font-size: 16px;
	font-weight: 700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.decision-question {
	display: block;
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 8px;
}

.decision-answer {
	display: block;
	font-size: 15px;
	color: var(--muted);
}

/* ==========================================================================
   Decision Summary
   ========================================================================== */

.decision-summary {
	padding: 32px;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
	border-radius: 16px;
	margin: 32px 0;
}

.decision-summary-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 16px;
}

.decision-summary p {
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 16px;
}

.decision-summary p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   CTA Dual Buttons
   ========================================================================== */

.post-cta-actions--dual {
	gap: 16px;
}

.post-cta-card--dual .post-cta-content {
	max-width: 600px;
}

/* ==========================================================================
   Responsive: Tablet (max-width: 900px)
   ========================================================================== */

@media (max-width: 900px) {
	.audience-grid,
	.pricing-comparison,
	.choice-grid {
		grid-template-columns: 1fr;
	}

	.comparison-table {
		font-size: 14px;
	}

	.comparison-table th,
	.comparison-table td {
		padding: 12px 16px;
	}
}

/* ==========================================================================
   Responsive: Mobile (max-width: 640px)
   ========================================================================== */

@media (max-width: 640px) {
	.verdict-card {
		padding: 24px;
	}

	.verdict-summary {
		font-size: 16px;
	}

	.audience-card {
		padding: 20px;
	}

	/* Stack comparison table for mobile */
	.comparison-table thead {
		display: none;
	}

	.comparison-table tbody tr {
		display: block;
		padding: 16px;
		border-bottom: 1px solid var(--line);
	}

	.comparison-table tbody tr:last-child {
		border-bottom: none;
	}

	.comparison-table td {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		padding: 8px 0;
		border-bottom: none;
	}

	.comparison-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--ink);
		flex-shrink: 0;
		margin-right: 16px;
	}

	.comparison-table td:first-child {
		font-size: 16px;
		font-weight: 600;
		padding-bottom: 12px;
		margin-bottom: 8px;
		border-bottom: 1px solid var(--line);
	}

	.comparison-table td:first-child::before {
		display: none;
	}

	.pricing-card-body {
		padding: 20px;
	}

	.choice-list {
		padding: 20px;
	}

	.decision-checklist li {
		padding: 20px 20px 20px 64px;
	}

	.decision-checklist li::before {
		left: 16px;
		top: 20px;
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.decision-question {
		font-size: 16px;
	}

	.decision-summary {
		padding: 24px;
	}

	.decision-summary-title {
		font-size: 20px;
	}

	.post-section-subtitle {
		font-size: 20px;
	}
}
