/**
 * Most Wanted Brands — Comment styles (Phase 4)
 *
 * Scoped under .mwb-comments to avoid conflicts with the active theme.
 */

/* ---------------------------------------------------------------
   Section wrapper
--------------------------------------------------------------- */

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

.mwb-comments__title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: #111827;
}

.mwb-comments__title span {
	color: #4f46e5;
}

.mwb-comments__closed {
	font-style: italic;
	color: #6b7280;
	margin-bottom: 1.5rem;
}

.mwb-comments__password-notice {
	padding: 1rem;
	background: #fef9c3;
	border: 1px solid #fde68a;
	border-radius: 6px;
}

/* ---------------------------------------------------------------
   Comment list
--------------------------------------------------------------- */

.mwb-comment-list,
.mwb-comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mwb-comment-list .children {
	margin-left: 2.5rem;
	border-left: 2px solid #e5e7eb;
	padding-left: 1rem;
}

/* ---------------------------------------------------------------
   Individual comment
--------------------------------------------------------------- */

.mwb-comment {
	margin-bottom: 1.5rem;
}

.mwb-comment__body {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1.25rem;
}

.mwb-comment.bypostauthor > .mwb-comment__body {
	border-color: #4f46e5;
	background: #eef2ff;
}

/* Header */
.mwb-comment__header {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.mwb-comment__avatar-img {
	border-radius: 50%;
	flex-shrink: 0;
}

.mwb-comment__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.mwb-comment__author {
	font-weight: 600;
	color: #111827;
	font-size: 0.95rem;
}

.mwb-comment__date {
	font-size: 0.8rem;
	color: #6b7280;
}

.mwb-comment__edit {
	font-size: 0.75rem;
	color: #9ca3af;
}

.mwb-comment__edit a {
	color: #9ca3af;
	text-decoration: none;
}

.mwb-comment__edit a:hover {
	color: #4f46e5;
}

/* Moderation notice */
.mwb-comment__moderation {
	font-size: 0.85rem;
	color: #d97706;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 4px;
	padding: 0.5rem 0.75rem;
	margin-bottom: 0.75rem;
}

/* Content */
.mwb-comment__content {
	font-size: 0.95rem;
	line-height: 1.65;
	color: #374151;
}

.mwb-comment__content p:last-child {
	margin-bottom: 0;
}

/* Footer / reply link */
.mwb-comment__footer {
	margin-top: 0.75rem;
}

.mwb-comment__reply a {
	font-size: 0.82rem;
	color: #4f46e5;
	text-decoration: none;
	font-weight: 500;
}

.mwb-comment__reply a:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------
   Pagination
--------------------------------------------------------------- */

.mwb-comments__pagination {
	display: flex;
	gap: 0.5rem;
	margin: 1.5rem 0;
}

.mwb-comments__pagination a,
.mwb-comments__pagination span {
	padding: 0.4rem 0.8rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 0.875rem;
	text-decoration: none;
	color: #374151;
}

.mwb-comments__pagination a:hover {
	background: #f3f4f6;
}

/* ---------------------------------------------------------------
   Comment form
--------------------------------------------------------------- */

.mwb-comments__form-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #111827;
}

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

.mwb-comment-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.3rem;
}

.mwb-comment-form input[type="text"],
.mwb-comment-form input[type="email"],
.mwb-comment-form input[type="url"],
.mwb-comment-form textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.95rem;
	color: #111827;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.mwb-comment-form input[type="text"]:focus,
.mwb-comment-form input[type="email"]:focus,
.mwb-comment-form input[type="url"]:focus,
.mwb-comment-form textarea:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

/* Submit button */
.mwb-btn--primary {
	display: inline-block;
	padding: 0.6rem 1.4rem;
	background: #4f46e5;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.mwb-btn--primary:hover {
	background: #4338ca;
}

/* ---------------------------------------------------------------
   Active Discussions widget
--------------------------------------------------------------- */

.mwb-discussions-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mwb-discussions-item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid #e5e7eb;
}

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

.mwb-discussions-item__link {
	font-weight: 600;
	color: #111827;
	text-decoration: none;
	font-size: 0.9rem;
}

.mwb-discussions-item__link:hover {
	color: #4f46e5;
}

.mwb-discussions-item__count {
	font-size: 0.8rem;
	color: #4f46e5;
	font-weight: 500;
}

.mwb-discussions-item__last-activity {
	font-size: 0.75rem;
	color: #9ca3af;
}
