/**
 * Internal Linking Strategy - Post-Specific Styles
 *
 * Custom styles for the internal linking thought leadership post.
 * Builds on shared-post-components.css and single-post.css.
 *
 * Components included:
 * - Stat callout
 * - Problem grid (reused pattern)
 * - Checklist block
 * - Benefits grid (two-column)
 * - Metrics block
 * - Predictions table
 * - Action block
 *
 * @package AgenticWP
 */

/* ==========================================================================
   Stat Callout
   ========================================================================== */

.stat-callout {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 40px 0;
	padding: 32px;
	background: linear-gradient(135deg, var(--accent) 0%, #1a2d6d 100%);
	border-radius: 16px;
}

.stat-callout-number {
	font-size: 48px;
	font-weight: 700;
	color: var(--bg);
	line-height: 1;
	flex-shrink: 0;
}

.stat-callout-text {
	font-size: 18px;
	line-height: 1.5;
	color: var(--bg);
	opacity: 0.9;
}

/* ==========================================================================
   Problem Grid (Reused Pattern)
   ========================================================================== */

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

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

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

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

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

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

/* ==========================================================================
   Insight Block
   ========================================================================== */

.insight-block {
	display: flex;
	gap: 20px;
	margin: 40px 0;
	padding: 28px;
	background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
	border: 1px solid #c7d2fe;
	border-radius: 16px;
}

.insight-block-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);
}

.insight-block-icon svg {
	width: 24px;
	height: 24px;
}

.insight-block-content {
	flex: 1;
}

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

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

/* ==========================================================================
   Identity Comparison
   ========================================================================== */

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

.identity-column {
	padding: 28px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: #f8fafc;
}

.identity-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--accent);
	margin: 0 0 20px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

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

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

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

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

/* ==========================================================================
   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;
	border-bottom: 1px solid var(--line);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
}

.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: 24px;
	height: 24px;
	color: var(--accent);
}

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

/* ==========================================================================
   Benefits Grid (Two-Column)
   ========================================================================== */

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

.benefits-column {
	padding: 28px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 16px;
}

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

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

.benefits-column-icon svg {
	width: 24px;
	height: 24px;
}

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

.benefits-list li {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

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

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

.benefits-list li strong {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 4px;
}

.benefits-list li span {
	font-size: 15px;
	line-height: 1.5;
	color: var(--muted);
}

/* ==========================================================================
   Metrics Block
   ========================================================================== */

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

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

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.metric-item {
	text-align: center;
}

.metric-value {
	display: block;
	font-size: 36px;
	font-weight: 700;
	color: var(--accent);
	line-height: 1;
	margin-bottom: 8px;
}

.metric-label {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink);
}

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

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

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

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

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

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

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

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

.predictions-cell--timeframe {
	font-weight: 600;
	color: var(--accent);
	background: #f8fafc;
}

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

.action-block {
	margin: 40px 0;
	padding: 32px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 16px;
}

.action-block-title {
	font-size: 18px;
	font-weight: 600;
	color: #166534;
	margin: 0 0 24px;
}

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

.action-list li {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #bbf7d0;
}

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

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

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

.action-content {
	flex: 1;
}

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

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

/* ==========================================================================
   Key Takeaways (Reused from other posts)
   ========================================================================== */

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

.key-takeaways li {
	position: relative;
	padding: 20px 24px 20px 56px;
	margin-bottom: 16px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
}

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

.key-takeaways li::before {
	content: '';
	position: absolute;
	left: 20px;
	top: 22px;
	width: 24px;
	height: 24px;
	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/14px no-repeat;
	border-radius: 50%;
}

.key-takeaways li strong {
	display: block;
	font-size: 17px;
	color: var(--accent);
	margin-bottom: 4px;
}

/* ==========================================================================
   Post Closing (Override for left-aligned version)
   ========================================================================== */

.post-section--summary .post-closing {
	text-align: left;
}

.post-section--summary .post-closing p {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.post-section--summary .post-closing-signature {
	margin-top: 32px;
	font-size: 18px;
	font-style: italic;
	color: var(--muted);
}

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

@media (max-width: 900px) {
	.stat-callout {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}

	.stat-callout-number {
		font-size: 40px;
	}

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

	.benefits-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.metrics-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

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

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

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

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

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

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

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

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

	.stat-callout-number {
		font-size: 32px;
	}

	.stat-callout-text {
		font-size: 16px;
	}

	.problem-card {
		padding: 20px;
	}

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

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

	.checklist-block {
		padding: 24px;
	}

	.benefits-column {
		padding: 24px;
	}

	.metrics-block {
		padding: 24px;
	}

	.metric-value {
		font-size: 28px;
	}

	.insight-block {
		flex-direction: column;
		gap: 16px;
		padding: 24px;
	}

	.insight-block-icon {
		width: 40px;
		height: 40px;
	}

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

	.identity-column {
		padding: 24px;
	}

	.action-block {
		padding: 24px;
	}

	.action-list li {
		flex-direction: column;
		gap: 12px;
	}

	.key-takeaways li {
		padding: 20px 20px 20px 52px;
	}

	.key-takeaways li::before {
		left: 16px;
		width: 20px;
		height: 20px;
		background-size: 12px;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.stat-callout,
	.problem-card,
	.checklist-block,
	.benefits-column,
	.metrics-block,
	.predictions-table,
	.action-block,
	.insight-block,
	.identity-column,
	.key-takeaways li {
		transition: none;
	}
}
