/**
 * Comments Styles
 *
 * @package EGCI_Template
 * @since 1.0.0
 */

/* ============================================
   Comments Area
   ============================================ */
.comments-area {
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid var(--egci-border);
}

.comments-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--egci-text);
	margin-bottom: 2rem;
}

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

.comment-list .children {
	list-style: none;
	margin-left: 2rem;
	margin-top: 1rem;
}

.comment-body {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background-color: var(--egci-bg-light);
	border-radius: 8px;
}

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

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

.comment-author .avatar {
	border-radius: 50%;
	width: 60px;
	height: 60px;
}

.comment-author .fn {
	font-weight: 600;
	color: var(--egci-text);
}

.comment-author .says {
	color: var(--egci-text-light);
	font-style: italic;
}

.comment-metadata {
	font-size: 0.875rem;
	color: var(--egci-text-light);
}

.comment-metadata a {
	color: var(--egci-text-light);
	text-decoration: none;
}

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

.comment-awaiting-moderation {
	color: var(--egci-primary);
	font-style: italic;
	margin-top: 0.5rem;
}

.comment-content {
	margin-top: 1rem;
	line-height: 1.7;
	color: var(--egci-text);
}

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

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

.comment-reply {
	margin-top: 1rem;
}

.comment-reply .reply a {
	display: inline-block;
	padding: 0.5rem 1rem;
	background-color: var(--egci-primary);
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	transition: var(--egci-transition);
}

.comment-reply .reply a:hover {
	background-color: var(--egci-secondary);
	color: #ffffff;
	text-decoration: none;
}

.no-comments {
	text-align: center;
	padding: 2rem;
	color: var(--egci-text-light);
	font-style: italic;
}

/* Comment Form */
.comment-form {
	margin-top: 2rem;
}

.comment-reply-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--egci-text);
	margin-bottom: 1.5rem;
}

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

.comment-form-comment textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--egci-border);
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	background-color: var(--egci-bg);
	color: var(--egci-text);
	transition: var(--egci-transition);
	min-height: 150px;
	resize: vertical;
}

.comment-form-comment textarea:focus {
	outline: none;
	border-color: var(--egci-primary);
	box-shadow: 0 0 0 3px rgba(251, 187, 1, 0.1);
}

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

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--egci-text);
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--egci-border);
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	background-color: var(--egci-bg);
	color: var(--egci-text);
	transition: var(--egci-transition);
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
	outline: none;
	border-color: var(--egci-primary);
	box-shadow: 0 0 0 3px rgba(251, 187, 1, 0.1);
}

.comment-form-cookies-consent {
	margin-bottom: 1.5rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
	margin-right: 0.5rem;
}

.comment-form-cookies-consent label {
	font-size: 0.875rem;
	color: var(--egci-text-light);
}

.form-submit {
	margin-top: 1.5rem;
}

.form-submit input[type="submit"] {
	padding: 0.75rem 1.5rem;
	background-color: var(--egci-primary);
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--egci-transition);
}

.form-submit input[type="submit"]:hover {
	background-color: var(--egci-secondary);
}

/* Comment Navigation */
.comment-navigation {
	margin: 2rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.comment-navigation a {
	padding: 0.5rem 1rem;
	background-color: var(--egci-bg-light);
	color: var(--egci-text);
	text-decoration: none;
	border-radius: 4px;
	transition: var(--egci-transition);
}

.comment-navigation a:hover {
	background-color: var(--egci-primary);
	color: #ffffff;
	text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
	.comment-list .children {
		margin-left: 1rem;
	}

	.comment-body {
		padding: 1rem;
	}

	.comment-author .avatar {
		width: 48px;
		height: 48px;
	}

	.comments-title {
		font-size: 1.5rem;
	}
}

