/**
 * How to Talk to AI Like a Pro - Post-Specific Styles
 *
 * Custom styles for this technical tutorial about prompt engineering.
 * Shared styles (hero, sections, CTA) are in shared-post-components.css.
 *
 * Components included:
 * - TL;DR takeaways
 * - Problem grid (reused pattern)
 * - Post quote
 * - Framework highlight and breakdown
 * - Prompt comparison cards
 * - Follow-up prompts list
 * - Conversation examples
 * - Prompt templates (code-style blocks)
 * - Iteration cycle and examples
 * - Pitfall grid
 * - Next step action box
 *
 * @package AgenticWP
 */

/* ==========================================================================
   TL;DR Takeaways
   ========================================================================== */

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

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

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

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

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

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

.problem-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 32px 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;
}

/* ==========================================================================
   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;
	color: var(--bg);
}

/* ==========================================================================
   Framework Highlight (CRISP Acronym)
   ========================================================================== */

.framework-highlight {
	margin: 40px 0;
	background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
	border: 1px solid #c7d2fe;
	border-radius: 20px;
	overflow: hidden;
}

.framework-highlight-header {
	padding: 16px 24px;
	background: var(--accent);
}

.framework-highlight-label {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bg);
}

.framework-highlight-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
	background: #c7d2fe;
}

.framework-letter {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	background: var(--bg);
	text-align: center;
}

.framework-letter-char {
	font-size: 48px;
	font-weight: 700;
	color: var(--accent);
	line-height: 1;
	margin-bottom: 8px;
}

.framework-letter-word {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* ==========================================================================
   Framework Breakdown
   ========================================================================== */

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

.framework-component {
	margin-bottom: 32px;
	padding: 28px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 16px;
	border-left: 4px solid var(--accent);
}

.framework-component:last-child {
	margin-bottom: 0;
}

.framework-component-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 12px;
}

.framework-component-letter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--accent);
	color: var(--bg);
	font-size: 18px;
	font-weight: 700;
	border-radius: 8px;
}

.framework-component-definition {
	font-size: 17px;
	font-weight: 500;
	color: var(--ink);
	margin: 0 0 16px;
}

.framework-component-example,
.framework-component-why {
	font-size: 15px;
	line-height: 1.65;
	color: var(--muted);
	margin: 0 0 12px;
}

.framework-component-example:last-child,
.framework-component-why:last-child {
	margin-bottom: 0;
}

.framework-component-example strong,
.framework-component-why strong {
	color: var(--ink);
}

/* ==========================================================================
   Prompt Comparison (Good vs Bad)
   ========================================================================== */

.prompt-comparison {
	margin: 48px 0;
}

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

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

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

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

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

.prompt-card-header {
	padding: 12px 20px;
}

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

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

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

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

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

.prompt-card-content {
	padding: 20px;
	background: var(--bg);
}

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

.prompt-card-analysis {
	padding: 16px 20px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
}

.prompt-card-analysis strong {
	color: var(--ink);
}

/* ==========================================================================
   Follow-up Prompts List
   ========================================================================== */

.followup-prompts {
	margin: 32px 0;
}

.followup-prompt {
	margin-bottom: 20px;
	padding: 20px 24px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.followup-prompt:last-child {
	margin-bottom: 0;
}

.followup-prompt-text {
	font-size: 16px;
	font-style: italic;
	color: var(--ink);
	margin-bottom: 8px;
}

.followup-prompt-when {
	font-size: 14px;
	color: var(--muted);
}

/* ==========================================================================
   Conversation Example
   ========================================================================== */

.conversation-example {
	margin: 32px 0;
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
}

.conversation-turn {
	padding: 20px 24px;
	border-bottom: 1px solid var(--line);
}

.conversation-turn:last-child {
	border-bottom: none;
}

.conversation-turn--ai {
	background: #f8fafc;
}

.conversation-role {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent);
	margin-bottom: 8px;
}

.conversation-turn--ai .conversation-role {
	color: var(--muted);
}

.conversation-message {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
}

.conversation-turn--ai .conversation-message {
	font-style: italic;
	color: var(--muted);
}

/* ==========================================================================
   Prompt Templates (Code Blocks)
   ========================================================================== */

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

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

.prompt-template-code {
	margin: 0 0 16px;
	border-radius: 12px;
	overflow: hidden;
}

.prompt-template-code pre {
	margin: 0;
	padding: 24px;
	background: #1e293b;
	color: #e2e8f0;
	font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
	font-size: 14px;
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.prompt-template-tip {
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
	padding: 16px 20px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
}

.prompt-template-tip strong {
	color: #92400e;
}

/* ==========================================================================
   Iteration Cycle
   ========================================================================== */

.iteration-cycle {
	margin: 32px 0;
	display: grid;
	gap: 16px;
}

.iteration-step {
	display: flex;
	gap: 20px;
	padding: 24px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 12px;
}

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

.iteration-step-content {
	flex: 1;
}

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

.iteration-step-content p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
	margin: 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;
}

/* ==========================================================================
   Iteration Example
   ========================================================================== */

.iteration-example {
	margin: 32px 0;
	padding: 28px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 16px;
}

.iteration-round {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
}

.iteration-round:last-of-type {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.iteration-round-label {
	display: inline-block;
	padding: 4px 12px;
	background: var(--accent);
	color: var(--bg);
	font-size: 13px;
	font-weight: 600;
	border-radius: 20px;
	margin-bottom: 12px;
}

.iteration-round-result {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	margin: 0 0 8px;
}

.iteration-round-fix {
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
	font-style: italic;
}

.iteration-round-fix strong {
	color: var(--ink);
	font-style: normal;
}

.iteration-outcome {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	font-weight: 500;
}

/* ==========================================================================
   Pitfall Grid
   ========================================================================== */

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

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

.pitfall-card-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #fee2e2;
	color: #dc2626;
	font-size: 16px;
	font-weight: 700;
	border-radius: 50%;
	margin-bottom: 16px;
}

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

.pitfall-card-problem,
.pitfall-card-fix {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 12px;
}

.pitfall-card-problem {
	color: var(--muted);
}

.pitfall-card-fix {
	color: var(--ink);
}

.pitfall-card-problem:last-child,
.pitfall-card-fix:last-child {
	margin-bottom: 0;
}

.pitfall-card-problem strong,
.pitfall-card-fix strong {
	color: var(--ink);
}

/* ==========================================================================
   Next Step Action Box
   ========================================================================== */

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

.next-step-action-title {
	font-size: 20px;
	font-weight: 600;
	color: #166534;
	margin: 0 0 16px;
}

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

.next-step-action-text:last-child {
	margin-bottom: 0;
}

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

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

	.framework-highlight-grid {
		grid-template-columns: repeat(5, 1fr);
	}

	.framework-letter {
		padding: 24px 12px;
	}

	.framework-letter-char {
		font-size: 36px;
	}

	.framework-letter-word {
		font-size: 12px;
	}

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

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

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

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

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

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

	.framework-highlight-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.framework-letter:nth-child(4),
	.framework-letter:nth-child(5) {
		grid-column: span 1;
	}

	.framework-letter {
		padding: 20px 12px;
	}

	.framework-letter-char {
		font-size: 28px;
	}

	.framework-component {
		padding: 20px;
	}

	.framework-component-title {
		font-size: 18px;
	}

	.prompt-card-content {
		padding: 16px;
	}

	.prompt-card-analysis {
		padding: 12px 16px;
	}

	.followup-prompt {
		padding: 16px 20px;
	}

	.conversation-turn {
		padding: 16px 20px;
	}

	.prompt-template-code pre {
		padding: 16px;
		font-size: 13px;
	}

	.iteration-step {
		flex-direction: column;
		gap: 16px;
		padding: 20px;
	}

	.iteration-step-number {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.callout-block {
		padding: 20px;
	}

	.iteration-example {
		padding: 20px;
	}

	.pitfall-card {
		padding: 20px;
	}

	.next-step-action {
		padding: 24px;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.problem-card,
	.framework-component,
	.prompt-card,
	.followup-prompt,
	.iteration-step,
	.pitfall-card {
		transition: none;
	}
}
