/* =================================================================
   SINGLE ARTICLE  —  Eye on Terrorism
   Breadcrumbs → hero → header → meta bar → body → share → tags
   → related posts. RTL-first.
   ================================================================= */

.eot-single { background: var(--dark-bg); padding-bottom: 40px; }

/* ---------- BREADCRUMBS ---------- */
.eot-breadcrumbs {
	background: var(--dark-surface);
	border-bottom: 1px solid var(--dark-border);
	font-size: 0.82rem;
}
.eot-breadcrumbs-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-block: 12px;
}
.eot-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.eot-breadcrumbs a:hover { color: var(--red-accent); }
.eot-crumb-sep { color: var(--red-primary); font-weight: 700; }
.eot-crumb-current {
	color: var(--text-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 50ch;
}

/* ---------- HERO IMAGE ---------- */
.eot-hero {
	position: relative;
	width: 100%;
	max-height: 520px;
	overflow: hidden;
	background: var(--dark-surface);
}
.eot-hero-img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}
.eot-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(8, 0, 0, 0.95) 0%, rgba(8, 0, 0, 0.35) 45%, transparent 100%);
	pointer-events: none;
}

/* ---------- ARTICLE HEADER ---------- */
.eot-article-header {
	background: var(--dark-bg);
	padding-block: 26px 8px;
}
.eot-article-head-inner { max-width: var(--content-max); }
.eot-article-cat { margin-bottom: 14px; }
.eot-article-title {
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 2rem;
	line-height: 1.3;
	color: #fff;
	margin: 0;
}

/* ---------- META BAR ---------- */
.eot-meta-bar {
	background: var(--dark-surface);
	border-top: 1px solid var(--dark-border);
	border-bottom: 1px solid var(--dark-border);
	margin-top: 18px;
}
.eot-meta-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding-block: 14px;
	font-family: var(--font-body);
	font-size: 0.84rem;
	color: var(--text-muted);
	max-width: var(--content-max);
}
.eot-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.eot-meta-item + .eot-meta-item { position: relative; }
.eot-meta-key { color: var(--text-muted); }
.eot-meta-author { color: var(--text-primary); font-weight: 500; }
.eot-meta-read { color: var(--red-accent); }

/* ---------- ARTICLE BODY ---------- */
.eot-article-body-wrap { background: var(--dark-bg); }
.eot-article-body {
	max-width: var(--content-max);
	margin-inline: auto;
	padding: 32px 40px;
	font-family: var(--font-body);
	font-size: 1.1rem;
	line-height: 2;
	color: #D8D8D8;
}
.eot-article-body p { margin: 0 0 1.3em; }

.eot-article-body h2 {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.35rem;
	color: #fff;
	border-inline-start: 4px solid var(--red-primary);
	padding-inline-start: 14px;
	margin: 1.8em 0 0.8em;
	line-height: 1.4;
}
.eot-article-body h3 {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.15rem;
	color: #eee;
	margin: 1.5em 0 0.6em;
}
.eot-article-body a { color: var(--red-accent); text-decoration: none; }
.eot-article-body a:hover { text-decoration: underline; }

.eot-article-body blockquote {
	background: var(--dark-card);
	border-inline-start: 4px solid var(--red-primary);
	margin: 1.6em 0;
	padding: 18px 22px;
	color: var(--text-muted);
	font-style: italic;
	border-radius: 0 var(--radius) var(--radius) 0;
}
.eot-article-body blockquote p:last-child { margin-bottom: 0; }

.eot-article-body img {
	border-radius: var(--radius);
	display: block;
	margin: 1.5em auto;
	box-shadow: 0 10px 30px rgba(20, 0, 0, 0.55);
}
.eot-article-body ul,
.eot-article-body ol { margin: 0 0 1.3em; padding-inline-start: 1.6em; }
.eot-article-body li { margin-bottom: 0.5em; }

.eot-article-body figure { margin: 1.5em 0; }
.eot-article-body figcaption {
	color: var(--text-muted);
	font-size: 0.82rem;
	text-align: center;
	margin-top: 8px;
}

.eot-page-links {
	margin: 1.6em 0;
	display: flex;
	gap: 8px;
	align-items: center;
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* ---------- SHARE BAR (appended via the_content filter) ---------- */
.eot-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	background: var(--dark-surface);
	border: 1px solid var(--dark-border);
	border-radius: var(--radius);
	padding: 16px 18px;
	margin: 30px 0;
}
.eot-share-label {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--text-primary);
	margin-inline-end: 4px;
}
.eot-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.82rem;
	color: #fff;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.2s ease, transform 0.15s ease;
}
.eot-share-btn:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; text-decoration: none; }
.eot-share-btn:focus-visible { outline: 2px solid var(--red-accent); outline-offset: 2px; }
.eot-share-twitter  { background: #1d9bf0; }
.eot-share-facebook { background: #1877f2; }
.eot-share-telegram { background: #229ed9; }
.eot-share-whatsapp { background: #25d366; }
.eot-share-copy     { background: var(--dark-card); border: 1px solid var(--dark-border); color: var(--text-primary); }
.eot-share-copy:hover { background: var(--dark-hover); color: var(--text-primary); }
.eot-share-copy.is-copied { background: var(--red-primary); border-color: var(--red-primary); color: #fff; }

/* ---------- TAGS ---------- */
.eot-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 28px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--dark-border);
}
.eot-tags-label { font-family: var(--font-head); font-weight: 600; color: var(--text-muted); font-size: 0.85rem; }
.eot-tag {
	background: var(--dark-card);
	border: 1px solid var(--dark-border);
	color: var(--text-muted);
	font-size: 0.8rem;
	padding: 5px 12px;
	border-radius: 2px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.eot-tag:hover { background: var(--red-primary); border-color: var(--red-primary); color: #fff; text-decoration: none; }
.eot-tag:focus-visible { outline: 2px solid var(--red-accent); outline-offset: 2px; }

/* ---------- RELATED POSTS (appended via the_content filter) ---------- */
.eot-related {
	background: var(--dark-surface);
	border: 1px solid var(--dark-border);
	border-radius: var(--radius);
	padding: 26px 24px;
	margin: 36px 0 8px;
}
.eot-related-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--text-primary);
	margin: 0 0 20px;
	padding-inline-start: 12px;
	border-inline-start: 4px solid var(--red-primary);
	line-height: 1.4;
}
.eot-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.eot-related-card {
	background: var(--dark-card);
	border: 1px solid var(--dark-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.25s ease, transform 0.2s ease;
}
.eot-related-card:hover { border-color: var(--red-primary); transform: translateY(-2px); }
.eot-related-thumb { display: block; height: 130px; overflow: hidden; background: var(--dark-hover); }
.eot-related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.eot-related-card:hover .eot-related-thumb img { transform: scale(1.05); }
.eot-related-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.eot-related-headline { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; line-height: 1.5; margin: 0; }
.eot-related-headline a { color: var(--text-primary); text-decoration: none; }
.eot-related-headline a:hover { color: var(--red-link); }

/* ---------- RESPONSIVE (desktop-first: 1024 / 768 / 560 / 400) ---------- */

/* ----- Tablet ----- */
@media (max-width: 1024px) {
	/* HERO: first step down */
	.eot-hero,
	.eot-hero-img { max-height: 420px; }

	/* Related: 3 cols → 2 (collapses to 1 at 560) */
	.eot-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Large phone / small tablet ----- */
@media (max-width: 768px) {
	.eot-article-title { font-size: 1.6rem; }

	/* Body breathes less + images stay inside the column */
	.eot-article-body { padding: 24px 18px; font-size: 1.04rem; }
	.eot-article-body img { max-width: 100%; height: auto; }

	/* Share buttons become full 44px tap targets */
	.eot-share { gap: 8px; }
	.eot-share-btn {
		min-height: 44px;
		padding-block: 0;
		padding-inline: 16px;
	}

	/* Tags meet the 44px touch contract */
	.eot-tag {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}
}

/* ----- Phone ----- */
@media (max-width: 560px) {
	/* HERO: third step down */
	.eot-hero,
	.eot-hero-img { max-height: 320px; }

	.eot-article-title { font-size: 1.4rem; }

	/* Meta bar wraps tighter on phones */
	.eot-meta-bar-inner { gap: 12px; font-size: 0.78rem; }

	/* Body: tightest comfortable padding + base font */
	.eot-article-body { padding: 20px 16px; font-size: 1rem; }

	/* Related: 2 cols → 1 */
	.eot-related-grid { grid-template-columns: 1fr; }

	/* Keep the current breadcrumb from forcing overflow */
	.eot-crumb-current { max-width: 60vw; }
}

/* ----- Small phone ----- */
@media (max-width: 400px) {
	/* HERO: final step down */
	.eot-hero,
	.eot-hero-img { max-height: 240px; }
}
