/**
 * TOP SEO - High Performance Feature Styles
 * (Table of Contents, Breadcrumbs, Reading Time, Related Posts)
 */

/* ==========================================================================
   Table of Contents (TOC)
   ========================================================================== */
.top-seo-toc {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 24px 0 32px 0;
	font-size: 15px;
	line-height: 1.6;
}

.top-seo-toc-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 10px;
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 12px;
}

.top-seo-toc-title {
	font-weight: 700;
	color: #1e293b;
	font-size: 16px;
}

.top-seo-toc-toggle {
	background: none;
	border: none;
	color: #0284c7;
	font-size: 13px;
	cursor: pointer;
	padding: 2px 6px;
	font-weight: 600;
}

.top-seo-toc-toggle:hover {
	text-decoration: underline;
}

.top-seo-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.top-seo-toc-list li {
	margin-bottom: 8px;
}

.top-seo-toc-list li a {
	color: #334155;
	text-decoration: none;
	transition: color 0.15s ease;
}

.top-seo-toc-list li a:hover {
	color: #0284c7;
	text-decoration: underline;
}

.top-seo-toc-list li.toc-level-3 {
	padding-left: 20px;
	font-size: 14px;
	color: #64748b;
}

/* ==========================================================================
   Breadcrumbs Trail
   ========================================================================== */
.top-seo-breadcrumbs {
	margin: 0 0 16px 0;
	font-size: 13px;
	color: #64748b;
}

.top-seo-breadcrumbs a {
	color: #475569;
	text-decoration: none;
}

.top-seo-breadcrumbs a:hover {
	color: #0284c7;
	text-decoration: underline;
}

.top-seo-breadcrumbs .sep {
	margin: 0 6px;
	color: #cbd5e1;
}

.top-seo-breadcrumbs .current {
	color: #1e293b;
	font-weight: 500;
}

/* ==========================================================================
   Reading Time & Word Count
   ========================================================================== */
.top-seo-reading-meta {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	color: #64748b;
	margin: 4px 0 16px 0;
	background: #f1f5f9;
	padding: 4px 12px;
	border-radius: 9999px;
}

.top-seo-reading-meta .reading-sep {
	margin: 0 8px;
}

/* ==========================================================================
   Related Posts Module
   ========================================================================== */
.top-seo-related-posts {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 2px solid #f1f5f9;
}

.top-seo-related-title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 20px;
}

.top-seo-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 768px) {
	.top-seo-related-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

.top-seo-related-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-seo-related-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.top-seo-related-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e2e8f0;
}

.top-seo-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.top-seo-related-card:hover .top-seo-related-thumb img {
	transform: scale(1.05);
}

.top-seo-related-card-title {
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	padding: 12px 14px 4px 14px;
	margin: 0;
}

.top-seo-related-card-title a {
	color: #1e293b;
	text-decoration: none;
}

.top-seo-related-card-title a:hover {
	color: #0284c7;
}

.top-seo-related-date {
	font-size: 12px;
	color: #94a3b8;
	padding: 0 14px 14px 14px;
	margin-top: auto;
}
