/* =================================================================
   FOOTER  —  Eye on Terrorism
   Brand (+ optional widget columns) → bottom bar. RTL-first.
   Logical properties only — never bare left/right.
   ================================================================= */

.eot-footer {
	background: var(--dark-surface);
	border-top: 3px solid var(--red-primary);
	padding-block: 44px 0;
	color: var(--text-muted);
}

/* ---------- INNER (brand-only by default) ---------- */
.eot-footer-inner {
	padding-block-end: 40px;
	text-align: start;
}

/* When admin populates widget areas, brand sits beside the columns. */
.eot-footer-inner.has-widgets {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) 2.4fr;
	gap: 40px;
	align-items: start;
}

/* ---------- BRAND ---------- */
.eot-footer-brand {
	min-width: 0;
}
.eot-footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}
.eot-footer-logo img {
	width: 56px;
	height: 56px;
	flex: 0 0 auto;
	border-radius: 8px;
	overflow: hidden;
	object-fit: cover;
	/* Tinted shadow toward the dark/red palette — never pure black. */
	box-shadow: 0 6px 18px rgba(107, 0, 0, 0.30);
}
.eot-footer-brand-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.eot-footer-name {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.4rem;
	line-height: 1.25;
	color: var(--text-primary);
	overflow-wrap: anywhere;
}
.eot-footer-tag {
	font-family: var(--font-body);
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--red-accent);
	overflow-wrap: anywhere;
}

/* ---------- WIDGET COLUMNS ---------- */
.eot-footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	min-width: 0;
}
.eot-footer-col {
	min-width: 0;
}

/* Reuse the archive widget look for footer widget titles. */
.eot-footer-col .eot-widget-title,
.eot-footer-col .widget-title,
.eot-footer-col .widgettitle {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1rem;
	color: var(--text-primary);
	margin: 0 0 14px;
	padding-block-end: 10px;
	border-bottom: 2px solid var(--red-primary);
}

.eot-footer-col .eot-widget-list,
.eot-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.eot-footer-col li {
	padding-block: 9px;
	border-bottom: 1px solid var(--dark-border);
	font-size: 0.9rem;
	line-height: 1.5;
}
.eot-footer-col li:last-child {
	border-bottom: 0;
}
.eot-footer-col a {
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.2s ease;
	overflow-wrap: anywhere;
}
.eot-footer-col a:hover,
.eot-footer-col a:focus-visible {
	color: var(--red-accent);
}
.eot-footer-col .count,
.eot-footer-col .post-count {
	color: var(--text-dim);
	font-size: 0.8rem;
}

/* ---------- BOTTOM BAR ---------- */
.eot-footer-bottom {
	background: var(--dark-bg);
	border-top: 1px solid var(--dark-border);
}
.eot-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 24px;
	padding-block: 16px;
}
.eot-copyright {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.8rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

/* Footer nav at the end of the row. */
.eot-footer-nav {
	margin-inline-start: auto;
}
.eot-footer-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 20px;
	margin: 0;
	padding: 0;
}
.eot-footer-menu li {
	margin: 0;
}
.eot-footer-menu a {
	display: inline-block;
	color: var(--text-muted);
	font-size: 0.82rem;
	text-decoration: none;
	transition: color 0.2s ease;
}
.eot-footer-menu a:hover,
.eot-footer-menu a:focus-visible {
	color: var(--red-accent);
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
	.eot-footer-col a,
	.eot-footer-menu a {
		transition: none;
	}
}

/* =================================================================
   RESPONSIVE  (desktop-first)
   ================================================================= */

/* Tablet — widgets drop to 2 columns. */
@media (max-width: 1024px) {
	.eot-footer-inner.has-widgets {
		grid-template-columns: minmax(220px, 1fr) 2fr;
		gap: 32px;
	}
	.eot-footer-widgets {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Large phone / small tablet — stack brand ABOVE widgets. */
@media (max-width: 768px) {
	.eot-footer {
		padding-block-start: 36px;
	}
	.eot-footer-inner.has-widgets {
		display: block;
	}
	.eot-footer-brand {
		margin-block-end: 32px;
	}
	.eot-footer-widgets {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 28px;
	}

	/* >=44px tap targets for footer links + menu items. */
	.eot-footer-col a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	.eot-footer-col li {
		padding-block: 0;
	}
	.eot-footer-menu {
		gap: 0 8px;
	}
	.eot-footer-menu a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-inline: 6px;
	}
}

/* Phone — bottom bar wrapping stays graceful. */
@media (max-width: 560px) {
	.eot-footer-widgets {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	/* Bottom bar stacks: copyright above nav. */
	.eot-footer-bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
	.eot-footer-nav {
		margin-inline-start: 0;
		width: 100%;
	}
	.eot-footer-menu {
		flex-wrap: wrap;
	}
}

/* Small phone — keep everything single-column and breathable. */
@media (max-width: 400px) {
	.eot-footer {
		padding-block-start: 30px;
	}
	.eot-footer-name {
		font-size: 1.25rem;
	}
	.eot-footer-logo {
		gap: 12px;
	}
}
