/**
 * Content refresh post styles.
 *
 * @package AgenticWP
 */

.content-refresh-post .custom-post-hero {
	padding: 112px 0 72px;
	background:
		linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(34, 197, 94, 0.08)),
		linear-gradient(135deg, #0f172a 0%, #111827 58%, #0f1f1a 100%);
}

.content-refresh-post .custom-post-hero .container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
	gap: 56px;
	align-items: center;
}

.content-refresh-post .custom-post-hero-content {
	max-width: 720px;
	margin: 0;
	text-align: left;
}

.content-refresh-post .custom-post-hero-title {
	max-width: 13ch;
}

.content-refresh-post .custom-post-hero-meta {
	justify-content: flex-start;
}

.content-refresh-post .custom-post-hero-image {
	margin: 0;
}

.content-refresh-post .custom-post-hero-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid rgba(148, 163, 184, 0.25);
	border-radius: 18px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.content-refresh-post .refresh-verdict,
.content-refresh-post .refresh-callout,
.content-refresh-post .prompt-card,
.content-refresh-post .checklist-block {
	margin: 32px 0;
	padding: 30px;
	border: 1px solid rgba(59, 130, 246, 0.3);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(17, 24, 39, 0.82));
}

.content-refresh-post .refresh-verdict p,
.content-refresh-post .refresh-callout p,
.content-refresh-post .prompt-card p {
	margin-top: 0;
	color: var(--ink);
	font-size: 18px;
	line-height: 1.7;
}

.content-refresh-post .refresh-verdict ul {
	margin: 18px 0 0;
	padding-left: 22px;
	color: var(--muted);
}

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

.content-refresh-post .refresh-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-refresh-post .refresh-grid--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-refresh-post .refresh-card,
.content-refresh-post .faq-item {
	padding: 24px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 16px;
	background: #111827;
}

.content-refresh-post .refresh-card--wide {
	margin: 30px 0;
}

.content-refresh-post .refresh-card h3,
.content-refresh-post .prompt-card h3,
.content-refresh-post .faq-item h3 {
	margin: 0 0 12px;
	color: var(--ink);
	font-size: 20px;
	line-height: 1.25;
}

.content-refresh-post .refresh-card p,
.content-refresh-post .faq-item p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.65;
}

.content-refresh-post .refresh-list,
.content-refresh-post .checklist-list,
.content-refresh-post .refresh-steps {
	margin: 18px 0 0;
	color: var(--muted);
}

.content-refresh-post .refresh-list--columns {
	columns: 2;
	column-gap: 28px;
}

.content-refresh-post .comparison-table-wrapper {
	overflow: hidden;
	margin: 34px 0;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.72);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.content-refresh-post .comparison-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 15px;
	line-height: 1.5;
}

.content-refresh-post .comparison-table th,
.content-refresh-post .comparison-table td {
	box-sizing: border-box;
	padding: 16px 18px;
	text-align: left;
	border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.content-refresh-post .comparison-table th {
	background: linear-gradient(135deg, #172033, #15251c);
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.content-refresh-post .comparison-table tbody tr:nth-child(even) {
	background: rgba(148, 163, 184, 0.04);
}

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

.content-refresh-post .workflow-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 32px 0;
}

.content-refresh-post .workflow-strip div {
	padding: 20px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 14px;
	background: rgba(17, 24, 39, 0.78);
	color: var(--muted);
	font-size: 15px;
	line-height: 1.5;
}

.content-refresh-post .workflow-strip span {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-right: 8px;
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.14);
	color: var(--accent);
	font-weight: 800;
}

.content-refresh-post .faq-list {
	display: grid;
	gap: 18px;
	margin: 32px 0;
}

.content-refresh-post .post-section--cta .post-cta-card {
	margin-top: 34px;
}

@media (max-width: 940px) {
	.content-refresh-post .custom-post-hero .container,
	.content-refresh-post .refresh-grid,
	.content-refresh-post .refresh-grid--two,
	.content-refresh-post .refresh-grid--four,
	.content-refresh-post .workflow-strip {
		grid-template-columns: 1fr;
	}

	.content-refresh-post .custom-post-hero-title {
		max-width: 720px;
	}
}

@media (max-width: 680px) {
	.content-refresh-post .custom-post-hero {
		padding: 82px 0 52px;
	}

	.content-refresh-post .refresh-verdict,
	.content-refresh-post .refresh-callout,
	.content-refresh-post .prompt-card,
	.content-refresh-post .checklist-block,
	.content-refresh-post .refresh-card,
	.content-refresh-post .faq-item {
		padding: 22px;
	}

	.content-refresh-post .refresh-list--columns {
		columns: 1;
	}

	.content-refresh-post .comparison-table-wrapper {
		overflow: visible;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.content-refresh-post .comparison-table,
	.content-refresh-post .comparison-table thead,
	.content-refresh-post .comparison-table tbody,
	.content-refresh-post .comparison-table tr,
	.content-refresh-post .comparison-table th,
	.content-refresh-post .comparison-table td {
		display: block;
		width: 100%;
	}

	.content-refresh-post .comparison-table thead {
		display: none;
	}

	.content-refresh-post .comparison-table tr {
		margin-bottom: 16px;
		border: 1px solid rgba(148, 163, 184, 0.2);
		border-radius: 14px;
		background: #111827;
		overflow: hidden;
	}

	.content-refresh-post .comparison-table td {
		display: grid;
		grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
		gap: 14px;
		padding: 14px 16px;
		border-bottom: 1px solid rgba(148, 163, 184, 0.14);
	}

	.content-refresh-post .comparison-table td::before {
		content: attr(data-label);
		color: var(--accent);
		font-size: 12px;
		font-weight: 700;
		line-height: 1.4;
		text-transform: uppercase;
	}
}
