/**
 * AI Image Generation for WordPress - Post-Specific Styles
 *
 * Custom styles unique to the AI image generation feature post.
 * Shared styles (hero, sections, CTA) are in shared-post-components.css.
 *
 * @package AgenticWP
 */

/* ==========================================================================
   TL;DR List
   ========================================================================== */

.tldr-list {
	margin: 24px 0 0;
	padding-left: 0;
	list-style: none;
}

.tldr-list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 16px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
}

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

.tldr-list li strong {
	color: var(--accent);
}

/* ==========================================================================
   Problem Grid (reusing pattern from introducing-agenticwp)
   ========================================================================== */

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

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

/* ==========================================================================
   Workflow Steps (How It Works)
   ========================================================================== */

.workflow-steps {
	margin: 32px 0;
}

.workflow-step {
	display: flex;
	gap: 20px;
	margin-bottom: 24px;
}

.workflow-step:last-child {
	margin-bottom: 0;
}

.workflow-step-number {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: var(--bg);
	font-size: 18px;
	font-weight: 700;
	border-radius: 12px;
}

.workflow-step-content {
	flex: 1;
	padding-top: 4px;
}

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

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

/* ==========================================================================
   Prompt Enhancement Example
   ========================================================================== */

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

.prompt-enhancement-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.prompt-enhancement-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #4f46e5;
	border-radius: 10px;
	color: var(--bg);
}

.prompt-enhancement-icon svg {
	width: 22px;
	height: 22px;
}

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

.prompt-enhancement-content {
	display: flex;
	align-items: center;
	gap: 16px;
}

.prompt-example {
	flex: 1;
	padding: 16px;
	border-radius: 10px;
}

.prompt-example--before {
	background: var(--bg);
	border: 1px solid var(--line);
}

.prompt-example--after {
	background: #4f46e5;
}

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

.prompt-example--before .prompt-example-label {
	color: var(--muted);
}

.prompt-example--after .prompt-example-label {
	color: rgba(255, 255, 255, 0.7);
}

.prompt-example-text {
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
}

.prompt-example--before .prompt-example-text {
	color: var(--ink);
}

.prompt-example--after .prompt-example-text {
	color: var(--bg);
}

.prompt-example-arrow {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: #4f46e5;
}

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

/* ==========================================================================
   Template Grid
   ========================================================================== */

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

.template-card {
	padding: 24px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 16px;
	transition: all 0.2s ease;
}

.template-card:hover {
	border-color: var(--accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.template-card-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	margin-bottom: 16px;
}

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

.template-card-icon--blog {
	background: #dbeafe;
	color: #2563eb;
}

.template-card-icon--social {
	background: #fce7f3;
	color: #db2777;
}

.template-card-icon--product {
	background: #d1fae5;
	color: #059669;
}

.template-card-icon--hero {
	background: #e0e7ff;
	color: #4f46e5;
}

.template-card-icon--abstract {
	background: #fef3c7;
	color: #d97706;
}

.template-card-icon--illustration {
	background: #ede9fe;
	color: #7c3aed;
}

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

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

/* ==========================================================================
   Options Grid
   ========================================================================== */

.options-group {
	margin-bottom: 40px;
}

.options-group:last-child {
	margin-bottom: 0;
}

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

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

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

.option-item-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	border-radius: 10px;
	color: var(--accent);
}

.option-item-icon svg {
	width: 22px;
	height: 22px;
}

.option-item-icon--highlight {
	background: var(--accent-weak);
}

.option-item-content {
	flex: 1;
}

.option-item-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 4px;
}

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

/* ==========================================================================
   Workflow Scenario
   ========================================================================== */

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

.workflow-scenario-header {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
}

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

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

.workflow-scenario-title {
	font-size: 17px;
	font-weight: 500;
	color: var(--ink);
	margin: 0;
	padding-top: 8px;
}

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

.workflow-list li {
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	margin-bottom: 12px;
}

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

.workflow-list li strong {
	color: var(--accent);
}

.workflow-list li::marker {
	color: var(--accent);
}

/* ==========================================================================
   Workflow Comparison
   ========================================================================== */

.workflow-comparison {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 24px;
	margin: 40px 0;
	align-items: stretch;
}

.workflow-comparison-item {
	padding: 24px;
	border-radius: 16px;
	border: 1px solid var(--line);
}

.workflow-comparison-item--old {
	background: #fef2f2;
	border-color: #fecaca;
}

.workflow-comparison-item--new {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.workflow-comparison-title {
	margin: 0 0 16px;
}

.workflow-comparison-badge {
	display: inline-block;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 20px;
}

.workflow-comparison-badge--old {
	background: #fecaca;
	color: #991b1b;
}

.workflow-comparison-badge--new {
	background: #bbf7d0;
	color: #166534;
}

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

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

.workflow-comparison-item--old .workflow-comparison-list li::marker {
	color: #dc2626;
}

.workflow-comparison-item--new .workflow-comparison-list li::marker {
	color: #16a34a;
}

.workflow-comparison-time {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid;
	text-align: center;
}

.workflow-comparison-item--old .workflow-comparison-time {
	border-color: #fecaca;
}

.workflow-comparison-item--new .workflow-comparison-time {
	border-color: #bbf7d0;
}

.workflow-comparison-time-value {
	display: block;
	font-size: 20px;
	font-weight: 700;
}

.workflow-comparison-item--old .workflow-comparison-time-value {
	color: #dc2626;
}

.workflow-comparison-item--new .workflow-comparison-time-value {
	color: #16a34a;
}

.workflow-comparison-time-label {
	display: block;
	font-size: 13px;
	color: var(--muted);
	margin-top: 4px;
}

.workflow-comparison-divider {
	display: flex;
	align-items: center;
	justify-content: center;
}

.workflow-comparison-divider span {
	padding: 8px 12px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

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

.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: 18px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 12px;
}

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

/* ==========================================================================
   CTA Benefits List
   ========================================================================== */

.cta-benefits {
	margin: 20px 0 28px;
	padding-left: 0;
	list-style: none;
}

.cta-benefits li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
	font-size: 16px;
	color: var(--ink);
}

.cta-benefits li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
}

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

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

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

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

	.prompt-enhancement-content {
		flex-direction: column;
	}

	.prompt-example-arrow {
		transform: rotate(90deg);
	}

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

	.workflow-comparison-divider {
		order: -1;
	}

	.workflow-comparison-item--new {
		order: -2;
	}
}

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

@media (max-width: 640px) {
	.workflow-step {
		flex-direction: column;
		gap: 12px;
	}

	.workflow-step-number {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.workflow-step-content {
		padding-top: 0;
	}

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

	.prompt-enhancement-example {
		padding: 20px;
	}

	.prompt-enhancement-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.prompt-example {
		padding: 12px;
	}

	.workflow-scenario {
		padding: 20px;
	}

	.workflow-scenario-header {
		flex-direction: column;
		gap: 12px;
	}

	.workflow-scenario-title {
		padding-top: 0;
	}

	.option-item {
		flex-direction: column;
		gap: 12px;
		padding: 16px;
	}

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

	.faq-answer {
		font-size: 16px;
	}
}

/* ==========================================================================
   Accessibility: Focus States
   ========================================================================== */

.template-card:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
	.template-card {
		transition: none;
	}
}
