/**
 * I Stopped Writing Meta Descriptions - Post-Specific Styles
 *
 * Custom styles for the meta descriptions case study post.
 * Includes data tables, timeline, callouts, and checklist components.
 *
 * @package AgenticWP
 */

/* ==========================================================================
   Results Callout
   ========================================================================== */

.results-callout {
	padding: 32px;
	background: linear-gradient(135deg, var(--accent) 0%, #1a2d6d 100%);
	border-radius: 16px;
	color: var(--bg);
	text-align: center;
	margin-bottom: 24px;
}

.results-callout .results-callout-stat {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 8px;
	letter-spacing: -0.02em;
	color: inherit;
}

.results-callout .results-callout-context {
	font-size: 17px;
	opacity: 0.9;
	margin: 0;
	color: inherit;
}

/* ==========================================================================
   Strategy and Lessons Lists
   ========================================================================== */

.strategy-list,
.lessons-list,
.criteria-list,
.action-steps {
	margin: 24px 0;
	padding-left: 24px;
}

.strategy-list li,
.lessons-list li,
.criteria-list li,
.action-steps li {
	font-size: 17px;
	line-height: 1.7;
	margin-bottom: 12px;
	color: var(--ink);
}

.strategy-list li::marker,
.lessons-list li::marker,
.criteria-list li::marker,
.action-steps li::marker {
	color: var(--accent);
}

.strategy-list li strong,
.lessons-list li strong,
.action-steps li strong {
	color: var(--accent);
}

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

.timeline {
	margin: 32px 0;
	position: relative;
	padding-left: 32px;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 11px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--line);
}

.timeline-phase {
	position: relative;
	margin-bottom: 32px;
}

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

.timeline-phase-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.timeline-phase-number {
	position: absolute;
	left: -32px;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: var(--bg);
	font-size: 13px;
	font-weight: 600;
	border-radius: 50%;
}

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

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

/* ==========================================================================
   Data Tables
   ========================================================================== */

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

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

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

.data-table th {
	font-weight: 600;
	color: var(--ink);
	background: #f8fafc;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

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

.data-table tbody tr:hover {
	background: #fafbfc;
}

.delta-positive {
	color: #059669;
	font-weight: 600;
}

.delta-negative {
	color: #dc2626;
	font-weight: 600;
}

.verdict-safe {
	color: #059669;
	font-weight: 500;
}

.verdict-caution {
	color: #d97706;
	font-weight: 500;
}

.verdict-warning {
	color: #dc2626;
	font-weight: 500;
}

/* ==========================================================================
   Insight Callout
   ========================================================================== */

.insight-callout {
	margin: 32px 0;
	padding: 24px;
	background: #f0fdf4;
	border-left: 4px solid #059669;
	border-radius: 0 12px 12px 0;
}

.insight-callout-text {
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	margin: 0;
}

/* ==========================================================================
   Checklist
   ========================================================================== */

.checklist {
	margin: 24px 0;
}

.checklist-item {
	display: flex;
	gap: 16px;
	padding: 20px;
	background: #f8fafc;
	border-radius: 12px;
	margin-bottom: 12px;
}

.checklist-item:last-child {
	margin-bottom: 0;
}

.checklist-checkbox {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: var(--accent);
	margin-top: 2px;
}

.checklist-checkbox svg {
	width: 24px;
	height: 24px;
}

.checklist-content {
	flex: 1;
}

.checklist-question {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 6px;
}

.checklist-note {
	font-size: 15px;
	color: var(--muted);
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   Post Section Subheadings
   ========================================================================== */

.post-section h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--ink);
	margin: 32px 0 16px;
}

.post-section h3:first-of-type {
	margin-top: 24px;
}

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

@media (max-width: 900px) {
	.results-callout {
		padding: 24px;
	}

	.results-callout .results-callout-stat {
		font-size: 26px;
	}

	.data-table {
		font-size: 14px;
	}

	.data-table th,
	.data-table td {
		padding: 12px 14px;
	}
}

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

@media (max-width: 640px) {
	.results-callout {
		padding: 20px;
	}

	.results-callout .results-callout-stat {
		font-size: 22px;
	}

	.results-callout .results-callout-context {
		font-size: 15px;
	}

	.timeline {
		padding-left: 28px;
	}

	.timeline-phase-number {
		left: -28px;
		width: 20px;
		height: 20px;
		font-size: 11px;
	}

	.timeline::before {
		left: 9px;
	}

	.timeline-phase-title {
		font-size: 16px;
	}

	.data-table th,
	.data-table td {
		padding: 10px 12px;
	}

	.data-table th {
		font-size: 11px;
	}

	.checklist-item {
		padding: 16px;
	}

	.checklist-question {
		font-size: 16px;
	}

	.checklist-note {
		font-size: 14px;
	}

	.insight-callout {
		padding: 20px;
	}

	.insight-callout-text {
		font-size: 16px;
	}

	.post-section h3 {
		font-size: 18px;
	}
}

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

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

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

@media (prefers-reduced-motion: reduce) {
	.data-table tbody tr {
		transition: none;
	}
}
