/**
 * Single Post Styles - Article individuel
 */

/* Article unique */
.single .post,
.single .page {
	margin-bottom: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid #e5e7eb;
}

.single .post:last-child,
.single .page:last-child {
	border-bottom: none;
}

/* En-tête d'article */
.single .entry-header {
	margin-bottom: 2rem;
	text-align: left;
}

.single .entry-title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin: 0 0 1rem;
	color: #111827;
	font-weight: 700;
}

@media (min-width: 768px) {
	.single .entry-title {
		font-size: 3rem;
	}
}

/* Meta article */
.single .entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.single .entry-meta a {
	color: inherit;
	text-decoration: none;
}

.single .entry-meta a:hover {
	color: var(--primary-color);
}

.posted-on,
.byline,
.cat-links,
.tags-links,
.comments-link {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

/* Image mise en avant */
.single .post-thumbnail {
	margin-bottom: 2rem;
}

.single .post-thumbnail img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	aspect-ratio: 16/9;
	object-fit: cover;
}

/* Contenu article */
.single .entry-content {
	line-height: 1.8;
	color: #374151;
	font-size: 1.0625rem;
}

.single .entry-content > * {
	margin-bottom: 1.5rem;
}

.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	color: #111827;
	font-weight: 600;
}

.single .entry-content h2 {
	font-size: 2rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e5e7eb;
}

.single .entry-content h3 {
	font-size: 1.5rem;
}

.single .entry-content h4 {
	font-size: 1.25rem;
}

.single .entry-content p {
	margin-bottom: 1.5rem;
}

.single .entry-content a {
	color: var(--primary-color);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
	font-weight: 500;
}

.single .entry-content a:hover {
	color: var(--secondary-color);
}

.single .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	margin: 2rem 0;
}

.single .entry-content ul,
.single .entry-content ol {
	padding-left: 2rem;
	margin-bottom: 1.5rem;
}

.single .entry-content li {
	margin-bottom: 0.75rem;
}

.single .entry-content blockquote {
	border-left: 4px solid var(--primary-color);
	padding-left: 1.5rem;
	margin-left: 0;
	font-style: italic;
	color: #4b5563;
	background: #f9fafb;
	padding: 1.5rem;
	border-radius: var(--radius-md);
	margin: 2rem 0;
}

.single .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Table of contents (si utilisé) */
.single .entry-content .toc {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	margin: 2rem 0;
}

.single .entry-content .toc h3 {
	margin-top: 0;
	font-size: 1.125rem;
}

/* Footer d'article */
.single .entry-footer {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e7eb;
	font-size: 0.875rem;
	color: #6b7280;
}

.single .entry-footer .cat-links,
.single .entry-footer .tags-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.single .entry-footer a {
	color: var(--primary-color);
	text-decoration: none;
	padding: 0.25rem 0.75rem;
	background: #f3f4f6;
	border-radius: var(--radius-md);
	transition: all 0.2s ease;
}

.single .entry-footer a:hover {
	background: var(--primary-color);
	color: #fff;
}

/* Author box */
.author-box {
	background: #f9fafb;
	padding: 2rem;
	border-radius: var(--radius-lg);
	margin-top: 3rem;
	display: flex;
	gap: 1.5rem;
}

.author-box .avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.author-box-content h3 {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.author-box-content p {
	margin: 0;
	color: #6b7280;
}

/* Post navigation */
.single .post-navigation {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid #e5e7eb;
}

.single .nav-links {
	display: flex;
	gap: 2rem;
	justify-content: space-between;
}

.single .nav-previous,
.single .nav-next {
	flex: 1;
	max-width: calc(50% - 1rem);
}

.single .nav-next {
	text-align: right;
}

.single .nav-links a {
	display: block;
	padding: 1.5rem;
	background: #f9fafb;
	border-radius: var(--radius-lg);
	text-decoration: none;
	transition: all 0.2s ease;
	border: 2px solid transparent;
}

.single .nav-links a:hover {
	background: #fff;
	border-color: var(--primary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.single .nav-subtitle {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.5rem;
	color: #9ca3af;
	font-weight: 600;
}

.single .nav-title {
	display: block;
	font-weight: 600;
	color: #111827;
	font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
	.single .entry-title {
		font-size: 1.75rem;
	}

	.single .entry-content {
		font-size: 1rem;
	}

	.single .entry-content h2 {
		font-size: 1.5rem;
	}

	.author-box {
		flex-direction: column;
		text-align: center;
	}

	.single .nav-links {
		flex-direction: column;
		gap: 1rem;
	}

	.single .nav-previous,
	.single .nav-next {
		max-width: 100%;
		text-align: left;
	}
}
