/**
 * GPT Image 2 WordPress Image Generation - Post-Specific Styles
 *
 * @package AgenticWP
 */

.custom-post-hero {
	position: relative;
	overflow: hidden;
	padding: 112px 0 72px;
	background:
		linear-gradient(90deg, rgba(132, 204, 22, 0.08) 1px, transparent 1px),
		linear-gradient(0deg, rgba(132, 204, 22, 0.08) 1px, transparent 1px),
		linear-gradient(135deg, #0b1220 0%, #111827 50%, #1e293b 100%);
	background-size: 48px 48px, 48px 48px, auto;
}

.custom-post-hero::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 180px;
	background: linear-gradient(to bottom, transparent, var(--bg));
	pointer-events: none;
}

.custom-post-hero .container {
	position: relative;
	z-index: 1;
}

.custom-post-hero-content {
	max-width: 820px;
	margin-bottom: 56px;
}

.custom-post-hero-category {
	border: 1px solid rgba(132, 204, 22, 0.28);
	box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.08);
}

.custom-post-hero-title {
	font-size: clamp(40px, 6vw, 66px);
}

.custom-post-hero-excerpt {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
	font-size: 21px;
	color: #cbd5e1;
}

.custom-post-hero-image {
	max-width: 840px;
}

.custom-post-hero-image img {
	border: 1px solid rgba(148, 163, 184, 0.24);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.post-layout {
	padding: 48px 0 72px;
}

.post-section {
	margin-bottom: 64px;
}

.post-section-title {
	position: relative;
	margin-bottom: 24px;
	padding-bottom: 14px;
}

.post-section-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 72px;
	height: 3px;
	background: linear-gradient(90deg, var(--accent), transparent);
	border-radius: 999px;
}

.post-section--tldr {
	padding: 32px;
	background: linear-gradient(135deg, rgba(132, 204, 22, 0.12), rgba(59, 130, 246, 0.08));
	border: 1px solid rgba(132, 204, 22, 0.24);
	border-radius: 18px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.tldr-list {
	display: grid;
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.tldr-list li {
	position: relative;
	margin: 0;
	padding: 16px 18px 16px 44px;
	background: rgba(11, 18, 32, 0.72);
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 12px;
	color: #dbeafe;
	font-size: 16px;
	line-height: 1.65;
}

.tldr-list li::before,
.cta-benefits li::before {
	content: '';
	position: absolute;
	left: 18px;
	top: 23px;
	width: 10px;
	height: 10px;
	background: var(--accent);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(132, 204, 22, 0.12);
}

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

.features-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 32px;
	counter-reset: feature;
}

.feature-item {
	position: relative;
	min-height: 100%;
	padding: 28px;
	background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.82));
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 16px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-item::before {
	counter-increment: feature;
	content: counter(feature, decimal-leading-zero);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 18px;
	background: rgba(132, 204, 22, 0.12);
	border: 1px solid rgba(132, 204, 22, 0.24);
	border-radius: 10px;
	color: var(--accent);
	font-size: 13px;
	font-weight: 700;
}

.feature-item:hover {
	border-color: rgba(132, 204, 22, 0.45);
	transform: translateY(-2px);
}

.feature-item-title {
	margin: 0 0 10px;
	color: var(--ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.feature-item-text {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.65;
}

.tech-flow {
	position: relative;
	display: grid;
	gap: 18px;
	margin: 34px 0 0;
	counter-reset: flow;
}

.tech-flow-step {
	position: relative;
	padding: 24px 24px 24px 78px;
	background: #111827;
	border: 1px solid var(--line);
	border-radius: 16px;
}

.tech-flow-step::before {
	counter-increment: flow;
	content: counter(flow);
	position: absolute;
	left: 24px;
	top: 24px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	background: var(--accent);
	border-radius: 10px;
	color: var(--bg);
	font-weight: 800;
}

.tech-flow-title {
	margin: 0 0 8px;
	color: var(--ink);
	font-size: 19px;
	font-weight: 700;
}

.tech-flow-content p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.7;
}

.comparison-table-wrapper {
	margin: 34px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 16px;
}

.comparison-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	background: #0f172a;
	font-size: 15px;
}

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

.comparison-table th {
	background: rgba(132, 204, 22, 0.12);
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

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

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

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

.faq-list {
	display: grid;
	gap: 14px;
	margin-top: 32px;
}

.faq-item {
	padding: 22px 24px;
	background: #111827;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.faq-question {
	margin: 0 0 10px;
	color: var(--ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

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

.post-cta-card {
	background:
		linear-gradient(90deg, rgba(132, 204, 22, 0.16), transparent 45%),
		linear-gradient(135deg, #111827 0%, #172033 100%);
	border: 1px solid rgba(132, 204, 22, 0.24);
}

.cta-benefits {
	display: grid;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.cta-benefits li {
	position: relative;
	padding-left: 40px;
	color: var(--ink);
	font-size: 16px;
	line-height: 1.55;
}

.cta-benefits li::before {
	top: 7px;
	left: 12px;
}

@media (max-width: 900px) {
	.custom-post-hero {
		padding: 88px 0 56px;
	}

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

	.post-section {
		margin-bottom: 56px;
	}
}

@media (max-width: 640px) {
	.custom-post-hero {
		padding: 72px 0 44px;
		background-size: 32px 32px, 32px 32px, auto;
	}

	.custom-post-hero-content {
		margin-bottom: 36px;
	}

	.custom-post-hero-title {
		font-size: clamp(34px, 12vw, 44px);
	}

	.custom-post-hero-excerpt {
		font-size: 18px;
	}

	.post-layout {
		padding-top: 32px;
	}

	.post-section--tldr,
	.feature-item,
	.tech-flow-step,
	.faq-item,
	.post-cta-card {
		border-radius: 14px;
	}

	.post-section--tldr,
	.post-cta-card {
		padding: 24px;
	}

	.feature-item,
	.faq-item {
		padding: 22px;
	}

	.tech-flow-step {
		padding: 22px;
	}

	.tech-flow-step::before {
		position: static;
		margin-bottom: 16px;
	}
}

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