/**
 * Free Readability Analyzer - Post-Specific Styles
 *
 * Custom styles unique to the "Free Readability Analyzer" blog post.
 * Shared styles are in shared-post-components.css.
 *
 * @package AgenticWP
 */

/* ==========================================================================
   TL;DR Features List
   ========================================================================== */

.tldr-features {
	margin: 24px 0 0;
	padding-left: 24px;
	list-style: disc;
}

.tldr-features li {
	font-size: 17px;
	line-height: 1.7;
	margin-bottom: 12px;
	color: var(--ink);
}

.tldr-features li::marker {
	color: var(--accent);
}

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

/* ==========================================================================
   Formula Cards
   ========================================================================== */

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

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

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

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

/* ==========================================================================
   Steps List
   ========================================================================== */

.steps-list {
	margin: 32px 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

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

.step-item:last-child {
	border-bottom: none;
}

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

.step-content {
	flex: 1;
}

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

.step-description {
	font-size: 16px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
}

/* ==========================================================================
   Score Table
   ========================================================================== */

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

.score-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

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

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

.score-table td {
	color: var(--ink);
}

.score-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
}

.score-badge--excellent {
	background: #d1fae5;
	color: #065f46;
}

.score-badge--good {
	background: #dbeafe;
	color: #1e40af;
}

.score-badge--target {
	background: #eaffc7;
	color: var(--accent);
}

.score-badge--warning {
	background: #fef3c7;
	color: #92400e;
}

.score-badge--poor {
	background: #fee2e2;
	color: #991b1b;
}

/* ==========================================================================
   Grade Cards
   ========================================================================== */

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

.grade-card {
	padding: 24px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 12px;
}

.grade-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.grade-card-level {
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}

.grade-card-badge {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 8px;
	border-radius: 4px;
}

.grade-card-badge--accessible {
	background: #d1fae5;
	color: #065f46;
}

.grade-card-badge--target {
	background: #eaffc7;
	color: var(--accent);
}

.grade-card-badge--specialized {
	background: #fef3c7;
	color: #92400e;
}

.grade-card-badge--expert {
	background: #e0e7ff;
	color: #3730a3;
}

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

/* ==========================================================================
   Indicator List
   ========================================================================== */

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

.indicator-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
}

.indicator-badge {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	margin-top: 4px;
}

.indicator-badge--green {
	background: #10b981;
}

.indicator-badge--yellow {
	background: #f59e0b;
}

.indicator-badge--red {
	background: #ef4444;
}

/* ==========================================================================
   Tips Grid
   ========================================================================== */

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

.tip-card {
	position: relative;
	padding: 28px;
	padding-left: 72px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 16px;
}

.tip-number {
	position: absolute;
	left: 20px;
	top: 24px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-weak);
	color: var(--accent);
	font-size: 15px;
	font-weight: 700;
	border-radius: 50%;
}

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

.tip-description {
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
}

.tip-example {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px dashed var(--line);
}

.tip-example-before,
.tip-example-after {
	margin-bottom: 12px;
}

.tip-example-after {
	margin-bottom: 0;
}

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

.tip-example-before .tip-example-label {
	color: #dc2626;
}

.tip-example-after .tip-example-label {
	color: #059669;
}

.tip-example p {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink);
	margin: 0;
	font-style: italic;
}

/* ==========================================================================
   FAQ List
   ========================================================================== */

.faq-list {
	margin: 32px 0;
}

.faq-item {
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
	border-bottom: none;
}

.faq-question {
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 12px;
}

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

/* ==========================================================================
   Related Tools
   ========================================================================== */

.related-tools {
	margin-top: 48px;
	padding: 32px;
	background: #f8fafc;
	border-radius: 16px;
}

.related-tools-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 8px;
}

.related-tools-intro {
	font-size: 16px;
	color: var(--muted);
	margin: 0 0 20px;
}

.related-tools-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.related-tool-link {
	display: block;
	padding: 16px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.related-tool-link:hover {
	border-color: var(--accent);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.related-tool-name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 4px;
}

.related-tool-desc {
	display: block;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.4;
}

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

@media (max-width: 900px) {
	.formula-cards,
	.grade-cards,
	.tips-grid {
		grid-template-columns: 1fr;
	}

	.related-tools-list {
		grid-template-columns: 1fr;
	}
}

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

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

	.step-number {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.formula-card,
	.grade-card {
		padding: 20px;
	}

	.tip-card {
		padding: 20px;
		padding-left: 20px;
		padding-top: 60px;
	}

	.tip-number {
		left: 20px;
		top: 16px;
	}

	.related-tools {
		padding: 24px;
	}

	.related-tool-link {
		padding: 14px;
	}

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

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

.related-tool-link:focus {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
	.related-tool-link {
		transition: none;
	}
}
