/**
 * Comments Styles - Commentaires
 */

.comments-area {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 2px solid #e5e7eb;
}

.comments-title {
	font-size: 1.75rem;
	margin-bottom: 2rem;
	color: #111827;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 3rem;
}

.comment {
	margin-bottom: 2rem;
}

.comment-body {
	background: #f9fafb;
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	position: relative;
	border: 1px solid #e5e7eb;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

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

.comment-author .fn {
	font-weight: 600;
	color: #111827;
	font-style: normal;
}

.comment-metadata {
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 1rem;
}

.comment-metadata a {
	color: inherit;
	text-decoration: none;
}

.comment-metadata a:hover {
	color: var(--primary-color);
}

.comment-content {
	color: #374151;
	line-height: 1.6;
}

.comment-content p {
	margin-bottom: 1rem;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply {
	margin-top: 1rem;
}

.comment-reply-link {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #fff;
	color: var(--primary-color);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: var(--radius-md);
	border: 1px solid var(--primary-color);
	transition: all 0.2s ease;
}

.comment-reply-link:hover {
	background: var(--primary-color);
	color: #fff;
}

/* Nested comments */
.children {
	list-style: none;
	padding-left: 2rem;
	margin-top: 1.5rem;
}

@media (max-width: 768px) {
	.children {
		padding-left: 1rem;
	}
}

/* Comment form */
.comment-respond {
	background: #f9fafb;
	padding: 2rem;
	border-radius: var(--radius-lg);
	margin-top: 3rem;
}

.comment-reply-title {
	font-size: 1.5rem;
	margin: 0 0 1.5rem;
	color: #111827;
}

.comment-reply-title small {
	font-size: 0.875rem;
	font-weight: normal;
}

.comment-reply-title small a {
	color: var(--primary-color);
	text-decoration: none;
}

.comment-form {
	display: grid;
	gap: 1.5rem;
}

.comment-form-comment {
	grid-column: 1 / -1;
}

.comment-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #374151;
	font-size: 0.9375rem;
}

.comment-form .required {
	color: var(--accent-color, #ff6b6b);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: var(--radius-md);
	font-family: inherit;
	font-size: 1rem;
	background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

@media (min-width: 768px) {
	.comment-form {
		grid-template-columns: repeat(3, 1fr);
	}

	.comment-form-author,
	.comment-form-email,
	.comment-form-url {
		grid-column: span 1;
	}
}

.form-submit {
	margin: 0;
	grid-column: 1 / -1;
}

.submit {
	padding: 0.875rem 2rem;
	background: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: var(--radius-md);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.submit:hover {
	background: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Comment navigation */
.comment-navigation {
	margin-bottom: 2rem;
	padding: 1rem;
	background: #f9fafb;
	border-radius: var(--radius-md);
}

.comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.comment-navigation a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
}

.comment-navigation a:hover {
	color: var(--secondary-color);
}

/* No comments message */
.no-comments {
	text-align: center;
	color: #6b7280;
	font-style: italic;
	padding: 2rem;
	background: #f9fafb;
	border-radius: var(--radius-lg);
}

/* Pingback & Trackback */
.pingback,
.trackback {
	margin-bottom: 1rem;
	padding: 1rem;
	background: #f9fafb;
	border-radius: var(--radius-md);
}

.pingback .comment-body,
.trackback .comment-body {
	background: transparent;
	padding: 0;
	border: none;
}
