/*
   ============================================================
   COMMENTS SECTION STYLING
   ============================================================
*/

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

.comments-title,
.comment-reply-title {
	font-family: var(--font-title);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--secondary);
	margin-bottom: 2rem;
}

/* Comment List */
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 3rem;
}

.comment-list .comment {
	margin-bottom: 2rem;
	background: var(--white);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	border: 1px solid #f3f4f6;
}

/* Nested comments */
.comment-list .children {
	list-style: none;
	padding-left: 2rem;
	margin-top: 1.5rem;
	border-left: 2px solid #e5e7eb;
}

.comment-body {
	position: relative;
}

/* Comment Author Area */
.comment-meta {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

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

.comment-author .avatar {
	border-radius: 50%;
	width: 48px;
	height: 48px;
	object-fit: cover;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-author b.fn {
	font-family: var(--font-title);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--secondary);
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	margin-left: auto;
	font-size: 0.875rem;
}

.comment-metadata a {
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

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

/* Comment Content */
.comment-content {
	color: var(--text-dark);
	line-height: 1.6;
	margin-bottom: 1rem;
}

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

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

/* Reply Link */
.reply {
	margin-top: 1rem;
}

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

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

/* Comment Form */
.comment-respond {
	background: #f9fafb;
	padding: 2.5rem;
	border-radius: 16px;
	border: 1px solid #e5e7eb;
}

.comment-notes {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-cookies-consent {
	margin-bottom: 1.5rem;
}

.comment-form label {
	display: block;
	font-weight: 600;
	color: var(--secondary);
	margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--text-dark);
	background: var(--white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(0, 144, 152, 0.1);
}

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

/* Submit Button Override */
.comment-form .submit.mt-btn {
	background: var(--primary);
	color: var(--white);
	border: none;
	padding: 0.8rem 2rem;
	font-family: var(--font-title);
	font-weight: 600;
	font-size: 1rem;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	display: inline-block;
}

.comment-form .submit.mt-btn:hover {
	background: var(--primary-hover);
	transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
	.comment-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
	
	.comment-metadata {
		margin-left: 0;
	}
	
	.comment-list .children {
		padding-left: 1rem;
	}
	
	.comment-respond {
		padding: 1.5rem;
	}
}
