/* =================================================================
   COMMENTS  —  Eye on Terrorism
   Fully dark comment list + comment form. RTL-first.
   ================================================================= */

.eot-comments {
	background: var(--dark-surface);
	border-top: 1px solid var(--dark-border);
	padding-block: 40px;
	margin-top: 32px;
}
.eot-comments-inner { max-width: var(--content-max); }

.eot-comments-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--text-primary);
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--red-primary);
}

/* ---------- COMMENT LIST ---------- */
.eot-comment-list,
.eot-comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}
.eot-comment-list .children {
	margin-top: 16px;
	padding-inline-start: 28px;
	border-inline-start: 1px solid var(--dark-border);
}
.eot-comment { margin-bottom: 16px; }

.eot-comment-inner {
	display: flex;
	gap: 14px;
	background: var(--dark-card);
	border: 1px solid var(--dark-border);
	border-radius: var(--radius);
	padding: 20px;
}
.eot-comment-avatar { flex: 0 0 auto; }
.eot-comment-avatar img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: block;
	border: 1px solid var(--dark-border);
}
.eot-comment-content { flex: 1; min-width: 0; }

.eot-comment-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 8px;
}
.eot-comment-author {
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--text-primary);
	font-size: 0.95rem;
}
.eot-comment-date { color: var(--text-muted); font-size: 0.78rem; }

.eot-comment-text {
	font-family: var(--font-body);
	color: #D8D8D8;
	font-size: 0.95rem;
	line-height: 1.8;
}
.eot-comment-text p:last-child { margin-bottom: 0; }

.eot-comment-moderation {
	color: var(--gold);
	font-size: 0.82rem;
	font-style: italic;
	margin: 0 0 8px;
}

.eot-comment-actions {
	margin-top: 10px;
	display: flex;
	gap: 14px;
	font-size: 0.82rem;
}
.eot-comment-actions a { color: var(--red-link); text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.eot-comment-actions a:hover { color: var(--red-bright); text-decoration: underline; }
.eot-comment-actions a:focus-visible { outline: 2px solid var(--red-accent); outline-offset: 2px; }

.eot-comment-pagination { margin-top: 22px; display: flex; gap: 8px; justify-content: center; }
.eot-comment-pagination a,
.eot-comment-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 12px;
	background: var(--dark-card); border: 1px solid var(--dark-border);
	border-radius: var(--radius); color: var(--text-primary); text-decoration: none;
}
.eot-comment-pagination .current { background: var(--red-primary); border-color: var(--red-primary); color: #fff; }

.eot-comments-closed { color: var(--text-muted); font-style: italic; }

/* ---------- COMMENT FORM ---------- */
.eot-comment-respond,
#respond {
	margin-top: 34px;
	background: var(--dark-card);
	border: 1px solid var(--dark-border);
	border-radius: var(--radius);
	padding: 26px;
}
.eot-comment-form-title,
#respond .comment-reply-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--text-primary);
	margin: 0 0 18px;
}
#respond .comment-reply-title small a { color: var(--red-accent); font-weight: 400; }

.eot-comment-form .comment-form-comment,
.eot-comment-form .comment-form-author,
.eot-comment-form .comment-form-email,
.eot-comment-form .comment-form-url,
.eot-form-row {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.eot-comment-form label,
#respond label {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--text-primary);
}

.eot-comment-form input[type="text"],
.eot-comment-form input[type="email"],
.eot-comment-form input[type="url"],
.eot-comment-form textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
	width: 100%;
	box-sizing: border-box;
	background: var(--dark-bg);
	border: 1px solid var(--dark-border);
	border-radius: var(--radius);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: 0.95rem;
	padding: 11px 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.eot-comment-form input::placeholder,
.eot-comment-form textarea::placeholder { color: var(--text-dim); }

.eot-comment-form input:focus,
.eot-comment-form textarea:focus,
#respond input:focus,
#respond textarea:focus {
	outline: none;
	border-color: var(--red-primary);
	box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.18);
}
.eot-comment-form textarea { min-height: 130px; resize: vertical; }

.eot-comment-form .comment-form-cookies-consent,
#respond .comment-form-cookies-consent {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--text-muted);
}
.eot-comment-form .comment-form-cookies-consent label { font-weight: 400; color: var(--text-muted); }

.eot-comment-submit,
#respond .submit {
	background: var(--red-primary);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.92rem;
	border: 0;
	border-radius: var(--radius);
	padding: 12px 28px;
	cursor: pointer;
	transition: background 0.2s ease;
}
.eot-comment-submit:hover,
#respond .submit:hover { background: var(--red-deep); }
.eot-comment-submit:focus-visible,
#respond .submit:focus-visible { outline: 2px solid var(--red-accent); outline-offset: 2px; }

.eot-comment-form .comment-notes,
#respond .comment-notes,
.eot-comment-form .logged-in-as,
#respond .logged-in-as {
	color: var(--text-muted);
	font-size: 0.85rem;
	margin-bottom: 14px;
}
.eot-comment-form .comment-notes a,
#respond .logged-in-as a { color: var(--red-accent); }

/* ---------- RESPONSIVE ---------- */

/* Tablet — keep avatar+content row; begin tightening nested thread indent. */
@media (max-width: 768px) {
	.eot-comments { padding-block: 32px; }
	.eot-comment-inner { padding: 18px; }
	/* Reduce deep-thread indent so nested replies don't overflow narrow viewports. */
	.eot-comment-list .children { padding-inline-start: 22px; }

	/* >=44px tap area for reply/edit action links on touch tablets. */
	.eot-comment-actions { gap: 10px; }
	.eot-comment-actions a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-inline: 4px;
	}
}

/* Phone — stack avatar above content; full-width 16px form controls (no iOS zoom). */
@media (max-width: 560px) {
	.eot-comments { padding: 22px 0; }
	.eot-comments-title { font-size: 1.18rem; }

	/* Stack avatar + content vertically on phone. */
	.eot-comment-inner { flex-direction: column; gap: 10px; padding: 16px; }
	/* Further reduce nested indent so deep threads stay on-screen. */
	.eot-comment-list .children { padding-inline-start: 14px; }

	.eot-comment-respond, #respond { padding: 18px; margin-top: 26px; }

	/* Inputs/textarea: >=44px height and 16px font to prevent iOS auto-zoom on focus. */
	.eot-comment-form input[type="text"],
	.eot-comment-form input[type="email"],
	.eot-comment-form input[type="url"],
	.eot-comment-form textarea,
	#respond input[type="text"],
	#respond input[type="email"],
	#respond input[type="url"],
	#respond textarea {
		font-size: 16px;
		padding: 12px 14px;
		min-height: 44px;
	}
	.eot-comment-form textarea { min-height: 120px; }

	/* Submit button: full-width and >=44px tall for comfortable thumb taps. */
	.eot-comment-submit,
	#respond .submit {
		width: 100%;
		min-height: 44px;
		padding: 12px 24px;
		font-size: 1rem;
	}
}

/* Small phone — minimise indent and pad so threads never trigger horizontal scroll. */
@media (max-width: 400px) {
	.eot-comments { padding: 18px 0; }
	.eot-comment-inner { padding: 14px; }
	/* Minimal nested indent at the narrowest breakpoint. */
	.eot-comment-list .children { padding-inline-start: 10px; }
	.eot-comment-respond, #respond { padding: 16px; }
}
