/**
 * Your First Draft Is Not Precious - Post-Specific Styles
 *
 * Custom styles unique to this thought leadership blog post.
 * Shared styles (hero, sections, CTA) are in shared-post-components.css.
 *
 * Components included:
 * - Problem grid (reused from introducing-agenticwp.css pattern)
 * - Post quote
 * - Comparison blocks
 * - Insight blocks
 * - Identity comparison
 * - Callout blocks
 * - Key takeaways
 *
 * @package AgenticWP
 */

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

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

.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;
}

/* ==========================================================================
   Post Quote
   ========================================================================== */

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

.post-quote p {
	font-size: 20px;
	font-style: italic;
	line-height: 1.6;
	margin: 0 0 16px;
	color: var(--bg);
}

.post-quote p:last-child {
	margin-bottom: 0;
}

.post-quote cite {
	display: block;
	font-size: 15px;
	font-style: normal;
	opacity: 0.85;
}

/* ==========================================================================
   Comparison Block (Before/After Workflows)
   ========================================================================== */

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

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

.comparison-column--before {
	background: #fef2f2;
	border-color: #fecaca;
}

.comparison-column--after {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.comparison-title {
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 20px;
}

.comparison-column--before .comparison-title {
	color: #991b1b;
}

.comparison-column--after .comparison-title {
	color: #166534;
}

.comparison-list {
	margin: 0;
	padding-left: 24px;
}

.comparison-list li {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 12px;
	color: var(--ink);
}

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

.comparison-column--before .comparison-list li::marker {
	color: #dc2626;
}

.comparison-column--after .comparison-list li::marker {
	color: #16a34a;
}

/* ==========================================================================
   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 (Old vs New Identity)
   ========================================================================== */

.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;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
}

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

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

/* ==========================================================================
   Callout Block
   ========================================================================== */

.callout-block {
	margin: 40px 0;
	padding: 28px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-left: 4px solid #f59e0b;
	border-radius: 0 12px 12px 0;
}

.callout-block-title {
	font-size: 17px;
	font-weight: 600;
	color: #92400e;
	margin: 0 0 12px;
}

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

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

.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) {
	.problem-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

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

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

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

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

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

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

	.post-quote {
		padding: 24px;
	}

	.post-quote p {
		font-size: 18px;
	}

	.comparison-column {
		padding: 24px;
	}

	.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;
	}

	.callout-block {
		padding: 24px;
	}

	.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) {
	.problem-card,
	.comparison-column,
	.insight-block,
	.identity-column,
	.callout-block,
	.key-takeaways li {
		transition: none;
	}
}
