/* Secure Comms Terminal - comments and forms */
#comments.secure-comms-terminal {
	margin-block-start: clamp(2rem, 5vw, 3rem);
	padding-block-start: clamp(1.5rem, 4vw, 2rem);
	border-block-start: 1px solid rgba(255, 255, 255, 0.08);
	direction: rtl;
	font-family: var(--font-arabic);
}

.comments-terminal__header {
	margin-block-end: 1.5rem;
}

.comments-title,
.comment-reply-title {
	margin: 0 0 1rem;
	font-family: var(--font-arabic);
	font-size: clamp(1.35rem, 3vw, 2rem);
	line-height: 1.35;
	color: var(--text-primary);
}

.comment-list {
	display: grid;
	gap: 1rem;
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	padding: 0;
	list-style: none;
}

.comment-list .children {
	display: grid;
	gap: 1rem;
	margin: 1rem 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.comment-body {
	position: relative;
	padding: 1.25rem;
	background: rgba(11, 13, 23, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow:
		0 18px 50px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.comment-body::before {
	content: '';
	position: absolute;
	inset-block-start: 0;
	inset-inline: 1.25rem;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.45), transparent);
	opacity: 0.75;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-block-end: 0.85rem;
}

.comment-author {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.95rem;
	color: var(--text-primary);
}

.comment-author .avatar {
	inline-size: 42px;
	block-size: 42px;
	border-radius: 50%;
	border: 1px solid rgba(0, 242, 254, 0.35);
	box-shadow: 0 0 14px rgba(0, 242, 254, 0.12);
}

.comment-author .fn,
.comment-author .fn a {
	color: #00f2fe;
	font-style: normal;
	font-weight: 700;
	text-decoration: none;
}

.comment-metadata,
.comment-metadata a {
	font-size: 0.82rem;
	color: rgba(248, 250, 252, 0.58);
	text-decoration: none;
}

.comment-content {
	color: rgba(248, 250, 252, 0.84);
	line-height: 1.8;
}

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

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

.reply {
	margin-block-start: 1rem;
}

.comment-reply-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.75rem;
	color: #00f2fe;
	text-decoration: none;
	background: rgba(0, 242, 254, 0.07);
	border: 1px solid rgba(0, 242, 254, 0.18);
	border-radius: 8px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.comment-reply-link:hover,
.comment-reply-link:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(0, 242, 254, 0.55);
	box-shadow: 0 0 14px rgba(0, 242, 254, 0.16);
}

.comment-respond {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: rgba(11, 13, 23, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.comment-notes,
.logged-in-as,
.comment-form-cookies-consent,
.no-comments {
	margin: 0 0 1rem;
	color: rgba(248, 250, 252, 0.64);
	font-size: 0.95rem;
	line-height: 1.7;
}

#commentform {
	display: grid;
	gap: 1rem;
}

#commentform p {
	margin: 0;
}

#commentform label {
	display: block;
	margin-block-end: 0.45rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: rgba(248, 250, 252, 0.78);
}

#commentform input[type='text'],
#commentform input[type='email'],
#commentform input[type='url'],
#commentform textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	font-family: var(--font-arabic);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-primary);
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	outline: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

#commentform textarea {
	min-height: 180px;
	resize: vertical;
}

#commentform input[type='text']:focus,
#commentform input[type='email']:focus,
#commentform input[type='url']:focus,
#commentform textarea:focus {
	background: rgba(255, 255, 255, 0.035);
	border-color: #00f2fe;
	box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

#commentform .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
}

#commentform .comment-form-cookies-consent input {
	margin-block-start: 0.35rem;
	accent-color: #00f2fe;
}

.btn-trigger,
#commentform .submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-inline-size: 180px;
	padding: 0.85rem 1.25rem;
	overflow: hidden;
	font-family: var(--font-arabic);
	font-size: 1rem;
	font-weight: 800;
	color: #001014;
	background: linear-gradient(135deg, #00f2fe, #7c3aed);
	border: 1px solid rgba(0, 242, 254, 0.72);
	border-radius: 8px;
	box-shadow: 0 0 24px rgba(0, 242, 254, 0.2);
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.btn-trigger::after,
#commentform .submit::after {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: -45%;
	width: 34%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: skewX(-18deg);
	transition: inset-inline-start 0.45s ease;
}

.btn-trigger:hover,
.btn-trigger:focus-visible,
#commentform .submit:hover,
#commentform .submit:focus-visible {
	transform: translateY(-2px);
	border-color: #00f2fe;
	box-shadow:
		0 0 30px rgba(0, 242, 254, 0.28),
		0 12px 36px rgba(124, 58, 237, 0.22);
}

.btn-trigger:hover::after,
.btn-trigger:focus-visible::after,
#commentform .submit:hover::after,
#commentform .submit:focus-visible::after {
	inset-inline-start: 110%;
}

.comment-navigation,
.comments-pagination {
	margin-block: 1.5rem;
	font-family: var(--font-arabic);
}

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

.comment-navigation a,
.comments-pagination a {
	color: #00f2fe;
	text-decoration: none;
}

@media (max-width: 640px) {
	.comment-list .children {
		margin-inline-start: 0;
		margin-inline-end: 0.75rem;
	}

	.comment-meta {
		align-items: flex-start;
		flex-direction: column;
	}

	.btn-trigger,
	#commentform .submit {
		width: 100%;
	}
}
