/**
 * From SEO to GEO - Post-Specific Styles
 *
 * Custom styles for the GEO optimization SEO Master blog post.
 * Builds on shared-post-components.css and single-post.css.
 *
 * Components included:
 * - TL;DR block
 * - Experience card
 * - Definition block
 * - Paradigm shift comparison
 * - Sourcing pipeline
 * - Platform comparison table
 * - Comparison table (SEO vs GEO)
 * - Key insight block
 * - Strategy grid
 * - Platform cards
 * - Platform matrix
 * - Measurement framework
 * - Tracking template
 * - FAQ list
 *
 * @package AgenticWP
 */

/* ==========================================================================
   TL;DR Block
   ========================================================================== */

.tldr-block {
	margin: 32px 0;
	padding: 32px;
	background: linear-gradient(135deg, var(--accent) 0%, #1a2d6d 100%);
	border-radius: 16px;
}

.tldr-block .tldr-definition {
	font-size: 18px;
	line-height: 1.65;
	color: #ffffff;
	margin: 0 0 24px;
}

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

.tldr-facts li {
	padding: 16px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tldr-facts li:first-child {
	padding-top: 0;
	border-top: none;
}

.tldr-facts li:last-child {
	padding-bottom: 0;
}

.tldr-facts li strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent-weak);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 4px;
}

.tldr-block .tldr-facts li span {
	font-size: 16px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   Experience Card
   ========================================================================== */

.experience-card {
	display: flex;
	gap: 20px;
	margin: 40px 0;
	padding: 28px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 16px;
}

.experience-card-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	border-radius: 12px;
	color: var(--accent);
}

.experience-card-icon svg {
	width: 24px;
	height: 24px;
}

.experience-card-content {
	flex: 1;
}

.experience-card-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--accent);
	margin: 0 0 8px;
}

.experience-card-text {
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	margin: 0;
}

/* ==========================================================================
   Definition Block
   ========================================================================== */

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

.definition-label {
	display: inline-block;
	padding: 4px 12px;
	background: var(--accent);
	color: var(--bg);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 4px;
	margin-bottom: 16px;
}

.definition-text {
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink);
	margin: 0;
}

/* ==========================================================================
   Paradigm Shift
   ========================================================================== */

.paradigm-shift {
	display: flex;
	align-items: stretch;
	gap: 24px;
	margin: 40px 0;
}

.paradigm-column {
	flex: 1;
	padding: 28px;
	border-radius: 16px;
}

.paradigm-column--old {
	background: #f8fafc;
	border: 1px solid var(--line);
}

.paradigm-column--new {
	background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
	border: 1px solid #c7d2fe;
}

.paradigm-column-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 17px;
	font-weight: 600;
	color: var(--accent);
	margin: 0 0 12px;
}

.paradigm-icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.paradigm-icon svg {
	width: 20px;
	height: 20px;
}

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

.paradigm-arrow {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	color: var(--accent);
}

.paradigm-arrow svg {
	width: 24px;
	height: 24px;
}

/* ==========================================================================
   Sourcing Pipeline
   ========================================================================== */

.sourcing-pipeline {
	margin: 40px 0;
	padding: 32px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 16px;
}

.sourcing-pipeline-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 24px;
	text-align: center;
}

.pipeline-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.pipeline-step {
	text-align: center;
	position: relative;
}

.pipeline-step::after {
	content: '';
	position: absolute;
	top: 18px;
	right: -12px;
	width: 24px;
	height: 2px;
	background: var(--line);
}

.pipeline-step:last-child::after {
	display: none;
}

.pipeline-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 auto 12px;
	background: var(--accent);
	color: var(--bg);
	font-size: 15px;
	font-weight: 600;
	border-radius: 50%;
}

.pipeline-step-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 6px;
}

.pipeline-step-text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
	margin: 0;
}

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

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

.platform-comparison-row {
	display: grid;
	grid-template-columns: 180px 1fr 1fr;
	border-bottom: 1px solid var(--line);
}

.platform-comparison-row:last-child {
	border-bottom: none;
}

.platform-comparison-row--header {
	background: #f8fafc;
}

.platform-comparison-row--header .platform-comparison-cell {
	font-weight: 600;
	color: var(--ink);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.platform-comparison-cell {
	padding: 16px 20px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	border-right: 1px solid var(--line);
}

.platform-comparison-cell:last-child {
	border-right: none;
}

.platform-comparison-cell--platform {
	background: #f8fafc;
}

/* ==========================================================================
   Comparison Table (SEO vs GEO)
   ========================================================================== */

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

.comparison-row {
	display: grid;
	grid-template-columns: 140px 1fr 1fr;
	border-bottom: 1px solid var(--line);
}

.comparison-row:last-child {
	border-bottom: none;
}

.comparison-row--header {
	background: #f8fafc;
}

.comparison-row--header .comparison-cell {
	font-weight: 600;
	color: var(--ink);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.comparison-cell {
	padding: 16px 20px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	border-right: 1px solid var(--line);
}

.comparison-cell:last-child {
	border-right: none;
}

.comparison-cell--dimension {
	font-weight: 600;
	background: #f8fafc;
}

.comparison-cell--highlight {
	background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
	color: var(--accent);
	font-weight: 500;
}

/* ==========================================================================
   Key Insight
   ========================================================================== */

.key-insight {
	margin: 40px 0;
	padding: 28px;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1px solid #bbf7d0;
	border-radius: 16px;
}

.key-insight-title {
	font-size: 17px;
	font-weight: 600;
	color: #166534;
	margin: 0 0 12px;
}

.key-insight-text {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	margin: 0;
}

/* ==========================================================================
   Strategy Grid
   ========================================================================== */

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

.strategy-card {
	padding: 28px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 16px;
	position: relative;
}

.strategy-number {
	position: absolute;
	top: -12px;
	left: 20px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: var(--bg);
	font-size: 14px;
	font-weight: 600;
	border-radius: 50%;
}

.strategy-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 12px;
	padding-top: 8px;
}

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

.strategy-example {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.strategy-example-bad,
.strategy-example-good {
	padding: 16px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.strategy-example-bad {
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.strategy-example-good {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

.strategy-example-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}

.strategy-example-bad .strategy-example-label {
	color: #dc2626;
}

.strategy-example-good .strategy-example-label {
	color: #16a34a;
}

.strategy-example p {
	margin: 0;
	color: var(--ink);
	font-style: italic;
}

/* ==========================================================================
   Checklist Block
   ========================================================================== */

.checklist-block {
	margin: 40px 0;
	padding: 32px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 16px;
}

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

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

.checklist-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}

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

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

.checklist-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
}

.checklist-icon svg {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   Platform Cards
   ========================================================================== */

.platform-cards {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 40px 0;
}

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

.platform-card--google {
	background: linear-gradient(135deg, #f8fafc 0%, #fef9c3 10%, #f8fafc 100%);
	border-color: #fde68a;
}

.platform-card--perplexity {
	background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 10%, #f8fafc 100%);
	border-color: #bfdbfe;
}

.platform-card--chatgpt {
	background: linear-gradient(135deg, #f8fafc 0%, #d1fae5 10%, #f8fafc 100%);
	border-color: #a7f3d0;
}

.platform-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.platform-card-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	border-radius: 10px;
	color: var(--accent);
}

.platform-card-icon svg {
	width: 20px;
	height: 20px;
}

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

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

.platform-card-content h4 {
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 12px;
}

.platform-card-content ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.platform-card-content li {
	position: relative;
	padding-left: 20px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	margin-bottom: 8px;
}

.platform-card-content li:last-child {
	margin-bottom: 0;
}

.platform-card-content li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	background: var(--accent);
	border-radius: 50%;
}

/* ==========================================================================
   Platform Matrix
   ========================================================================== */

.platform-matrix {
	margin: 40px 0;
}

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

.platform-matrix-table {
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}

.platform-matrix-row {
	display: grid;
	grid-template-columns: 160px repeat(3, 1fr);
	border-bottom: 1px solid var(--line);
}

.platform-matrix-row:last-child {
	border-bottom: none;
}

.platform-matrix-row--header {
	background: #f8fafc;
}

.platform-matrix-row--header .platform-matrix-cell {
	font-weight: 600;
	color: var(--ink);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.platform-matrix-cell {
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ink);
	border-right: 1px solid var(--line);
	text-align: center;
}

.platform-matrix-cell:last-child {
	border-right: none;
}

.platform-matrix-cell--factor {
	text-align: left;
	font-weight: 500;
	background: #f8fafc;
}

.platform-matrix-cell--high {
	background: #f0fdf4;
	color: #166534;
	font-weight: 600;
}

.platform-matrix-cell--medium {
	background: #fefce8;
	color: #854d0e;
	font-weight: 500;
}

.platform-matrix-cell--low {
	background: #fef2f2;
	color: #991b1b;
}

/* ==========================================================================
   Measurement Framework
   ========================================================================== */

.measurement-framework {
	margin: 40px 0;
}

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

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

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

.measurement-card-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	border-radius: 10px;
	color: var(--accent);
	margin-bottom: 16px;
}

.measurement-card-icon svg {
	width: 20px;
	height: 20px;
}

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

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

.measurement-card-reliability {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	color: var(--accent);
	padding: 4px 10px;
	background: var(--accent-weak);
	border-radius: 4px;
}

/* ==========================================================================
   Tracking Template
   ========================================================================== */

.tracking-template {
	margin: 40px 0;
}

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

.tracking-template-table {
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}

.tracking-template-row {
	display: grid;
	grid-template-columns: 100px 1fr 100px 80px 1fr;
	border-bottom: 1px solid var(--line);
}

.tracking-template-row:last-child {
	border-bottom: none;
}

.tracking-template-row--header {
	background: #f8fafc;
}

.tracking-template-row--header .tracking-template-cell {
	font-weight: 600;
	color: var(--ink);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.tracking-template-cell {
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ink);
	border-right: 1px solid var(--line);
}

.tracking-template-cell:last-child {
	border-right: none;
}

/* ==========================================================================
   Key Takeaways
   ========================================================================== */

.key-takeaways {
	margin: 32px 0;
	padding: 0;
	list-style: none;
}

.key-takeaways li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.key-takeaways li:first-child {
	padding-top: 0;
}

.key-takeaways li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.key-takeaways li strong {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
}

.key-takeaways li:not(:has(strong)) {
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
}

/* ==========================================================================
   Action Block
   ========================================================================== */

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

.action-block-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 24px;
}

.action-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.action-list li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

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

.action-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 4px;
}

.action-content strong {
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
}

.action-content span {
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
}

/* ==========================================================================
   FAQ List
   ========================================================================== */

.faq-list {
	margin: 32px 0;
}

.faq-item {
	margin-bottom: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.faq-question {
	font-size: 19px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 16px;
}

.faq-answer p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	margin: 0 0 16px;
}

.faq-answer p:last-child {
	margin-bottom: 0;
}

.faq-answer ul {
	margin: 0;
	padding-left: 24px;
}

.faq-answer li {
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	margin-bottom: 8px;
}

.faq-answer li:last-child {
	margin-bottom: 0;
}

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

@media (max-width: 900px) {
	.paradigm-shift {
		flex-direction: column;
		gap: 16px;
	}

	.paradigm-arrow {
		transform: rotate(90deg);
		height: 40px;
		width: 100%;
	}

	.pipeline-steps {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.pipeline-step::after {
		display: none;
	}

	.platform-comparison-row {
		grid-template-columns: 1fr;
	}

	.platform-comparison-row--header {
		display: none;
	}

	.platform-comparison-cell {
		border-right: none;
		border-bottom: 1px solid var(--line);
		padding: 12px 20px;
	}

	.platform-comparison-cell:last-child {
		border-bottom: none;
	}

	.platform-comparison-cell--platform {
		font-size: 14px;
		text-transform: uppercase;
		letter-spacing: 0.05em;
	}

	.comparison-row {
		grid-template-columns: 1fr;
	}

	.comparison-row--header {
		display: none;
	}

	.comparison-cell {
		border-right: none;
		border-bottom: 1px solid var(--line);
		padding: 12px 20px;
	}

	.comparison-cell:last-child {
		border-bottom: none;
	}

	.comparison-cell--dimension {
		font-size: 13px;
		text-transform: uppercase;
		letter-spacing: 0.05em;
	}

	.strategy-grid {
		grid-template-columns: 1fr;
	}

	.platform-matrix-row {
		grid-template-columns: 1fr;
	}

	.platform-matrix-row--header {
		display: none;
	}

	.platform-matrix-cell {
		border-right: none;
		border-bottom: 1px solid var(--line);
		text-align: left;
		padding: 12px 16px;
	}

	.platform-matrix-cell:last-child {
		border-bottom: none;
	}

	.platform-matrix-cell--factor {
		font-size: 13px;
		text-transform: uppercase;
		letter-spacing: 0.05em;
	}

	.measurement-grid {
		grid-template-columns: 1fr;
	}

	.tracking-template-row {
		grid-template-columns: 1fr;
	}

	.tracking-template-row--header {
		display: none;
	}

	.tracking-template-cell {
		border-right: none;
		border-bottom: 1px solid var(--line);
		padding: 10px 16px;
	}

	.tracking-template-cell:last-child {
		border-bottom: none;
	}
}

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

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

	.tldr-definition {
		font-size: 16px;
	}

	.experience-card {
		flex-direction: column;
		gap: 16px;
		padding: 24px;
	}

	.experience-card-icon {
		width: 40px;
		height: 40px;
	}

	.experience-card-icon svg {
		width: 20px;
		height: 20px;
	}

	.definition-block {
		padding: 24px;
	}

	.definition-text {
		font-size: 16px;
	}

	.paradigm-column {
		padding: 24px;
	}

	.sourcing-pipeline {
		padding: 24px;
	}

	.pipeline-steps {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.key-insight {
		padding: 24px;
	}

	.key-insight-text {
		font-size: 16px;
	}

	.strategy-card {
		padding: 24px;
	}

	.platform-card {
		padding: 24px;
	}

	.measurement-card {
		padding: 20px;
	}

	.faq-question {
		font-size: 17px;
	}

	.faq-answer p,
	.faq-answer li {
		font-size: 15px;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.tldr-block,
	.experience-card,
	.definition-block,
	.paradigm-column,
	.sourcing-pipeline,
	.key-insight,
	.strategy-card,
	.platform-card,
	.measurement-card,
	.faq-item {
		transition: none;
	}
}
