/**
 * AI Image Editing in WordPress - Post-Specific Styles
 *
 * Custom styles unique to the AI image editing post.
 * Shared styles (hero, sections, CTA) are in shared-post-components.css.
 * Reuses tldr-list, problem-grid, workflow-steps, prompt-enhancement,
 * faq, and cta-benefits from ai-image-generation-wordpress.css.
 *
 * @package AgenticWP
 */

/* ==========================================================================
   Feature Item Icons (Capabilities section)
   ========================================================================== */

.feature-item-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	margin-bottom: 0;
}

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

.feature-item-icon--create {
	background: rgba(59,130,246,0.15);
	color: #2563eb;
}

.feature-item-icon--images {
	background: #d1fae5;
	color: #059669;
}

.feature-item-icon--optimize {
	background: rgba(245,158,11,0.2);
	color: #d97706;
}

.feature-item-icon--bulk {
	background: #ede9fe;
	color: #7c3aed;
}

.feature-item-icon--ship {
	background: rgba(99,102,241,0.15);
	color: #818cf8;
}

.feature-item-icon--gamification {
	background: #fce7f3;
	color: #db2777;
}

/* ==========================================================================
   Use Case Grid
   ========================================================================== */

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

.use-case-card {
	padding: 24px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

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

.use-case-card-icon--touchup {
	background: rgba(245,158,11,0.2);
	color: #d97706;
}

.use-case-card-icon--brand {
	background: rgba(59,130,246,0.15);
	color: #2563eb;
}

.use-case-card-icon--repurpose {
	background: #ede9fe;
	color: #7c3aed;
}

.use-case-card-icon--cleanup {
	background: rgba(99,102,241,0.15);
	color: #818cf8;
}

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

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

/* ==========================================================================
   Prompt Examples List (How It Works section)
   ========================================================================== */

.prompt-examples-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.prompt-example-item {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 12px 16px;
	background: var(--bg);
	border-radius: 10px;
	border: 1px solid var(--line);
}

.prompt-example-item .prompt-example-label {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent);
	margin-bottom: 0;
	min-width: 72px;
}

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

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

.comparison-table-wrapper {
	margin: 32px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}

.comparison-table thead {
	background: #111827;
}

.comparison-table th,
.comparison-table td {
	padding: 16px 20px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

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

.comparison-table-header--old {
	color: #fca5a5;
}

.comparison-table-header--new {
	color: #86efac;
}

.comparison-table-label {
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}

.comparison-table td {
	color: var(--muted);
	line-height: 1.6;
}

.comparison-table tbody tr:last-child td {
	border-bottom: none;
}

.comparison-table tbody tr:hover {
	background: #111827;
}

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

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

	.comparison-table th,
	.comparison-table td {
		padding: 12px 16px;
		font-size: 14px;
	}

	.comparison-table-label {
		white-space: normal;
	}
}

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

@media (max-width: 640px) {
	.prompt-example-item {
		flex-direction: column;
		gap: 4px;
		padding: 12px;
	}

	.prompt-example-item .prompt-example-label {
		min-width: auto;
	}

	.comparison-table th,
	.comparison-table td {
		padding: 10px 12px;
		font-size: 13px;
	}
}

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

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

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

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