/**
 * Full Site Editing in 2025: Why I Ditched Elementor - Post-Specific Styles
 *
 * Custom styles for this thought leadership piece about FSE vs page builders.
 * Shared styles (hero, sections, CTA) are in shared-post-components.css.
 *
 * Components included:
 * - Thesis takeaways
 * - Evolution timeline
 * - Cost grid
 * - Portability comparison
 * - Metrics tables
 * - Data callout
 * - Methodology callout
 * - Predictions table
 * - Key predictions list
 * - Author credibility
 *
 * @package AgenticWP
 */

/* ==========================================================================
   Thesis Takeaways
   ========================================================================== */

.thesis-takeaways {
	margin: 40px 0 0;
	padding: 28px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 16px;
}

.thesis-takeaways-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 20px;
}

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

.thesis-takeaways-list li {
	position: relative;
	padding: 16px 16px 16px 48px;
	margin-bottom: 12px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
}

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

.thesis-takeaways-list li::before {
	content: '';
	position: absolute;
	left: 16px;
	top: 18px;
	width: 20px;
	height: 20px;
	background: var(--accent-weak) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050E39' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
	border-radius: 50%;
}

.thesis-takeaways-list li strong {
	display: block;
	font-size: 16px;
	color: var(--accent);
	margin-bottom: 2px;
}

/* ==========================================================================
   Evolution Timeline
   ========================================================================== */

.evolution-timeline {
	margin: 40px 0;
	padding: 28px;
	background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
	border: 1px solid #c7d2fe;
	border-radius: 16px;
}

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

.timeline-items {
	position: relative;
}

.timeline-items::before {
	content: '';
	position: absolute;
	left: 35px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #c7d2fe;
}

.timeline-item {
	display: flex;
	gap: 20px;
	margin-bottom: 24px;
	position: relative;
}

.timeline-item:last-child {
	margin-bottom: 0;
}

.timeline-year {
	flex-shrink: 0;
	width: 52px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: var(--bg);
	font-size: 13px;
	font-weight: 700;
	border-radius: 6px;
	position: relative;
	z-index: 1;
}

.timeline-item--current .timeline-year {
	background: #16a34a;
}

.timeline-content {
	flex: 1;
	padding: 16px 20px;
	background: var(--bg);
	border-radius: 10px;
	border: 1px solid var(--line);
}

.timeline-item--current .timeline-content {
	border-color: #16a34a;
	background: #f0fdf4;
}

.timeline-content strong {
	display: block;
	font-size: 15px;
	color: var(--ink);
	margin-bottom: 4px;
}

.timeline-content p {
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
	margin: 0;
}

/* ==========================================================================
   Cost Grid
   ========================================================================== */

.cost-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 32px 0;
}

.cost-card {
	padding: 24px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.cost-card-icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fee2e2;
	border-radius: 10px;
	margin-bottom: 16px;
	color: #dc2626;
}

.cost-card-icon svg {
	width: 22px;
	height: 22px;
}

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

.cost-card-text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
}

/* ==========================================================================
   Portability Comparison
   ========================================================================== */

.portability-example {
	margin: 40px 0;
}

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

.portability-comparison {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

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

.portability-card--bad {
	background: #fef2f2;
	border-color: #fecaca;
}

.portability-card--good {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.portability-card-header {
	padding: 10px 16px;
}

.portability-card--bad .portability-card-header {
	background: #fee2e2;
}

.portability-card--good .portability-card-header {
	background: #dcfce7;
}

.portability-card-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.portability-card--bad .portability-card-label {
	color: #991b1b;
}

.portability-card--good .portability-card-label {
	color: #166534;
}

.portability-card-content {
	padding: 16px;
	background: var(--bg);
}

.portability-code {
	display: block;
	padding: 12px;
	background: #1e293b;
	color: #e2e8f0;
	font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
	font-size: 12px;
	border-radius: 6px;
	overflow-x: auto;
	white-space: pre-wrap;
	word-wrap: break-word;
	margin-bottom: 12px;
}

.portability-card-note {
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
	margin: 0;
}

/* ==========================================================================
   Metrics Tables
   ========================================================================== */

.metrics-table-wrapper {
	margin: 32px 0;
	overflow-x: auto;
}

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

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

.metrics-table th {
	font-weight: 600;
	background: #f8fafc;
	color: var(--ink);
}

.metrics-table-bad {
	color: #dc2626;
}

.metrics-table-good {
	color: #16a34a;
}

.metrics-table td {
	color: var(--ink);
}

.metrics-improvement {
	font-weight: 600;
	color: #16a34a;
}

/* ==========================================================================
   Data Callout
   ========================================================================== */

.data-callout {
	display: flex;
	gap: 20px;
	margin: 40px 0;
	padding: 28px;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1px solid #bbf7d0;
	border-radius: 14px;
}

.data-callout-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #bbf7d0;
	border-radius: 10px;
	color: #16a34a;
}

.data-callout-icon svg {
	width: 22px;
	height: 22px;
}

.data-callout-content {
	flex: 1;
}

.data-callout-title {
	font-size: 17px;
	font-weight: 600;
	color: #166534;
	margin: 0 0 8px;
}

.data-callout-text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	margin: 0;
}

/* ==========================================================================
   Methodology Callout
   ========================================================================== */

.methodology-callout {
	margin: 32px 0;
	padding: 20px 24px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: 0 10px 10px 0;
}

.methodology-callout-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 8px;
}

.methodology-callout-text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
}

/* ==========================================================================
   Predictions Table
   ========================================================================== */

.predictions-table-wrapper {
	margin: 40px 0;
}

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

.predictions-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}

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

.predictions-table th {
	font-weight: 600;
	background: var(--accent);
	color: var(--bg);
}

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

.predictions-table tbody tr:nth-child(even) {
	background: #f8fafc;
}

/* ==========================================================================
   Key Predictions List
   ========================================================================== */

.key-predictions {
	margin: 32px 0;
}

.prediction-item {
	display: flex;
	gap: 16px;
	padding: 20px;
	margin-bottom: 16px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.prediction-item:last-child {
	margin-bottom: 0;
}

.prediction-number {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--accent);
	color: var(--bg);
	font-size: 16px;
	font-weight: 700;
	border-radius: 50%;
}

.prediction-content {
	flex: 1;
	display: flex;
	align-items: center;
}

.prediction-content p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	margin: 0;
}

/* ==========================================================================
   Author Credibility
   ========================================================================== */

.author-credibility {
	margin: 48px 0;
	padding: 28px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid var(--line);
	border-radius: 16px;
}

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

.author-credibility p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
	margin: 0 0 12px;
}

.author-credibility p:last-child {
	margin-bottom: 0;
	color: var(--ink);
	font-style: italic;
}

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

@media (max-width: 900px) {
	.cost-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.portability-comparison {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.timeline-items::before {
		left: 30px;
	}

	.timeline-year {
		width: 48px;
		font-size: 12px;
	}

	.data-callout {
		flex-direction: column;
		gap: 16px;
	}
}

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

@media (max-width: 640px) {
	.thesis-takeaways {
		padding: 20px;
	}

	.thesis-takeaways-list li {
		padding: 14px 14px 14px 44px;
	}

	.thesis-takeaways-list li::before {
		left: 14px;
		width: 18px;
		height: 18px;
		background-size: 10px;
	}

	.evolution-timeline {
		padding: 20px;
	}

	.timeline-items::before {
		display: none;
	}

	.timeline-item {
		flex-direction: column;
		gap: 8px;
	}

	.timeline-year {
		width: auto;
		padding: 0 12px;
	}

	.timeline-content {
		padding: 14px 16px;
	}

	.cost-card {
		padding: 20px;
	}

	.portability-code {
		font-size: 11px;
		padding: 10px;
	}

	.metrics-table th,
	.metrics-table td {
		padding: 10px 12px;
		font-size: 13px;
	}

	.data-callout {
		padding: 20px;
	}

	.methodology-callout {
		padding: 16px 20px;
	}

	.predictions-table th,
	.predictions-table td {
		padding: 12px 14px;
		font-size: 14px;
	}

	.prediction-item {
		padding: 16px;
	}

	.prediction-number {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.author-credibility {
		padding: 20px;
	}
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.timeline-item,
	.cost-card,
	.portability-card,
	.prediction-item {
		transition: none;
	}
}
