/**
 * Published 30 Blog Posts in a Week - Post-Specific Styles
 *
 * Custom styles for the case study blog post on AI-assisted bulk content production.
 * Includes stats grid, timeline, comparison blocks, and workflow diagrams.
 *
 * @package AgenticWP
 */

/* ==========================================================================
   Stats Grid (Results Snapshot)
   ========================================================================== */

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

.stat-card {
	padding: 24px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 12px;
	text-align: center;
}

.stat-card--primary {
	background: linear-gradient(135deg, var(--accent) 0%, #1a2d6d 100%);
	border-color: transparent;
}

.stat-card--primary .stat-value,
.stat-card--primary .stat-label {
	color: var(--bg);
}

.stat-value {
	display: block;
	font-size: 36px;
	font-weight: 700;
	color: var(--accent);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.stat-label {
	display: block;
	font-size: 14px;
	color: var(--muted);
	margin-top: 8px;
}

/* ==========================================================================
   Comparison Blocks
   ========================================================================== */

.comparison-block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 32px 0;
}

.comparison-block--inline {
	background: #f8fafc;
	padding: 32px;
	border-radius: 16px;
	border: 1px solid var(--line);
}

.comparison-column {
	padding: 24px;
	border-radius: 12px;
}

.comparison-column--before {
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.comparison-column--after {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

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

.comparison-subtitle {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 12px;
}

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

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

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

/* ==========================================================================
   Workflow Diagram
   ========================================================================== */

.workflow-diagram {
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
	padding: 32px;
	border-radius: 16px;
	margin: 32px 0;
}

.workflow-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 24px;
	text-align: center;
}

.workflow-steps {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.workflow-step {
	display: flex;
	gap: 16px;
	padding: 20px;
	background: var(--bg);
	border-radius: 12px;
	border: 1px solid var(--line);
}

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

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

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

.workflow-step-desc {
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
	margin: 0 0 8px;
}

.workflow-effort {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-weak);
	padding: 4px 10px;
	border-radius: 20px;
}

/* ==========================================================================
   Tool List
   ========================================================================== */

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

.tool-list li {
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 12px;
}

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

/* ==========================================================================
   Criteria List
   ========================================================================== */

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

.criteria-list li {
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 10px;
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
	margin: 32px 0;
}

.timeline-block {
	margin-bottom: 40px;
}

.timeline-block:last-child {
	margin-bottom: 0;
}

.timeline-phase {
	font-size: 20px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--accent);
}

.timeline-day {
	display: flex;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.timeline-day:last-child {
	border-bottom: none;
}

.timeline-day-label {
	flex-shrink: 0;
	width: 60px;
	font-size: 14px;
	font-weight: 700;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.timeline-day-content {
	flex: 1;
}

.timeline-day-content p {
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 12px;
}

.timeline-day-content p:last-of-type {
	margin-bottom: 16px;
}

.timeline-metric {
	font-size: 14px;
	color: var(--muted);
	padding: 8px 12px;
	background: #f8fafc;
	border-radius: 6px;
	display: inline-block;
}

.timeline-metric strong {
	color: var(--ink);
}

/* ==========================================================================
   Callout Box
   ========================================================================== */

.callout {
	padding: 24px;
	border-radius: 12px;
	margin: 32px 0;
}

.callout--insight {
	background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
	border: 1px solid #fcd34d;
}

.callout-title {
	font-size: 16px;
	font-weight: 600;
	color: #92400e;
	margin: 0 0 8px;
}

.callout p {
	font-size: 15px;
	line-height: 1.6;
	color: #78350f;
	margin: 0;
}

/* ==========================================================================
   Quality Criteria
   ========================================================================== */

.quality-criteria {
	margin: 24px 0;
	padding-left: 24px;
}

.quality-criteria li {
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 12px;
}

.quality-criteria li strong {
	color: var(--ink);
}

/* ==========================================================================
   Editing Passes
   ========================================================================== */

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

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

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

.editing-pass-content h4 {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 4px;
}

.editing-pass-content p {
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
	margin: 0;
}

/* ==========================================================================
   Before/After Examples
   ========================================================================== */

.before-after-examples {
	margin: 32px 0;
}

.before-after-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.before-after-row:last-child {
	margin-bottom: 0;
}

.before-after-item {
	padding: 20px;
	border-radius: 12px;
}

.before-after-item--before {
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.before-after-item--after {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

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

.before-after-item--before .before-after-label {
	color: #dc2626;
}

.before-after-item--after .before-after-label {
	color: #16a34a;
}

.before-after-item p {
	font-size: 15px;
	line-height: 1.5;
	font-style: italic;
	color: var(--ink);
	margin: 0;
}

/* ==========================================================================
   Metrics Table
   ========================================================================== */

.metrics-table-wrapper {
	margin: 32px 0;
	overflow-x: auto;
}

.metrics-table {
	width: 100%;
	border-collapse: collapse;
}

.metrics-table th,
.metrics-table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}

.metrics-table th {
	font-weight: 600;
	background: #f8fafc;
	color: var(--ink);
}

.metrics-table td:first-child {
	font-weight: 500;
	color: var(--ink);
}

.metrics-change {
	font-weight: 600;
}

.metrics-change--positive {
	color: #16a34a;
}

.metrics-change--negative {
	color: #dc2626;
}

.metrics-change--neutral {
	color: var(--muted);
}

/* ==========================================================================
   Time Breakdown
   ========================================================================== */

.time-breakdown {
	margin: 32px 0;
}

.time-bar {
	display: flex;
	border-radius: 8px;
	overflow: hidden;
	height: 48px;
}

.time-segment {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 4px 8px;
	min-width: 0;
}

.time-segment--research {
	background: #ddd6fe;
	color: #5b21b6;
}

.time-segment--drafting {
	background: #bfdbfe;
	color: #1d4ed8;
}

.time-segment--editing {
	background: #fde68a;
	color: #92400e;
}

.time-segment--seo {
	background: #bbf7d0;
	color: #15803d;
}

.time-segment-label {
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.time-segment-value {
	font-size: 13px;
	font-weight: 700;
}

/* ==========================================================================
   Outcomes Grid
   ========================================================================== */

.outcomes-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 32px 0;
}

.outcome-card {
	padding: 24px;
	border-radius: 12px;
}

.outcome-card--positive {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

.outcome-card--negative {
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.outcome-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px;
}

.outcome-card--positive .outcome-title {
	color: #15803d;
}

.outcome-card--negative .outcome-title {
	color: #dc2626;
}

.outcome-card ul {
	margin: 0;
	padding-left: 20px;
}

.outcome-card li {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 8px;
	color: var(--ink);
}

/* ==========================================================================
   Lessons Grid
   ========================================================================== */

.lessons-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin: 32px 0;
}

.lessons-column-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 20px;
}

.lessons-column--worked .lessons-column-title {
	color: #15803d;
}

.lessons-column--harder .lessons-column-title {
	color: #d97706;
}

.lessons-icon {
	width: 24px;
	height: 24px;
}

.lessons-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lessons-list li {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 16px;
	padding-left: 20px;
	position: relative;
}

.lessons-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.lessons-column--worked .lessons-list li::before {
	background: #22c55e;
}

.lessons-column--harder .lessons-list li::before {
	background: #f59e0b;
}

.lessons-list li strong {
	color: var(--ink);
}

/* ==========================================================================
   Assessment List
   ========================================================================== */

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

.assessment-list li {
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 16px;
	padding: 16px;
	background: #f8fafc;
	border-radius: 8px;
	border-left: 4px solid var(--accent);
}

.assessment-list li strong {
	display: block;
	color: var(--ink);
	margin-bottom: 4px;
}

/* ==========================================================================
   Quick Wins
   ========================================================================== */

.quick-wins {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 32px 0;
}

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

.quick-win-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--accent-weak);
	color: var(--accent);
	font-size: 18px;
	font-weight: 700;
	border-radius: 50%;
	flex-shrink: 0;
}

.quick-win-content {
	flex: 1;
}

.quick-win-content h4 {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 8px;
}

.quick-win-content p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0 0 12px;
}

.quick-win-time {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	background: var(--bg);
	padding: 4px 12px;
	border-radius: 20px;
	border: 1px solid var(--accent);
}

/* ==========================================================================
   Starter Workflow
   ========================================================================== */

.starter-workflow {
	margin: 24px 0;
	padding-left: 0;
	counter-reset: step;
	list-style: none;
}

.starter-workflow li {
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 12px;
	padding-left: 48px;
	position: relative;
}

.starter-workflow li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 32px;
	height: 32px;
	background: var(--accent);
	color: var(--bg);
	font-size: 14px;
	font-weight: 700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
   Warning Signs
   ========================================================================== */

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

.warning-signs li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 12px;
	padding: 14px 16px;
	background: #fef2f2;
	border-radius: 8px;
	border: 1px solid #fecaca;
	color: var(--ink);
}

.warning-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #dc2626;
	margin-top: 2px;
}

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

@media (max-width: 900px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

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

	.before-after-row {
		grid-template-columns: 1fr;
	}

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

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

	.time-segment-label {
		display: none;
	}

	.time-bar {
		height: 40px;
	}
}

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

@media (max-width: 640px) {
	.stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.stat-card {
		padding: 16px;
	}

	.stat-value {
		font-size: 28px;
	}

	.stat-label {
		font-size: 12px;
	}

	.workflow-diagram {
		padding: 20px;
	}

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

	.timeline-day {
		flex-direction: column;
		gap: 8px;
	}

	.timeline-day-label {
		width: auto;
	}

	.quick-win {
		flex-direction: column;
		gap: 12px;
	}

	.comparison-column {
		padding: 16px;
	}

	.editing-pass {
		padding: 16px;
	}

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

	.starter-workflow li {
		padding-left: 40px;
	}

	.starter-workflow li::before {
		width: 28px;
		height: 28px;
		font-size: 13px;
	}
}

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

.quick-win:focus-within,
.workflow-step:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
	.stat-card,
	.quick-win,
	.workflow-step {
		transition: none;
	}
}
