/**
 * Violet footer — compact dark layout (child footer.php).
 * Structure mirrors the approved compact footer architecture; colors are Violet.
 */

.violet-footer,
#footer.violet-footer {
	--violet-footer-bg: #000000;
	--violet-footer-border: rgba(255, 255, 255, 0.1);
	--violet-footer-muted: rgba(255, 255, 255, 0.7);
	display: block;
	width: 100%;
	float: none;
	clear: both;
	margin: 0;
	padding: 0;
	background: var(--violet-footer-bg);
	border-top: 1px solid var(--violet-footer-border);
	box-sizing: border-box;
	text-align: center;
}

/*
 * The parent pins the legacy footer with position:absolute and reserves 270px
 * under #content for it. The compact footer flows normally, so the reserve is
 * collapsed — wrapping links or description can never overlap content.
 */
#footer.violet-footer {
	position: static;
}

body:has(#footer.violet-footer) #content {
	padding-bottom: 32px;
}

.violet-footer__inner {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 16px 12px;
	box-sizing: border-box;
}

.violet-footer__top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.violet-footer__brand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	line-height: 1.2;
}

.violet-footer__logo {
	width: auto;
	height: 44px;
	max-width: 160px;
	object-fit: contain;
	display: block;
	flex: 0 0 auto;
}

.violet-footer__name {
	font-size: 1.05rem;
	font-weight: 650;
	letter-spacing: 0.01em;
	color: #f3f0ff;
}

.violet-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 14px;
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.violet-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: 0;
	padding: 2px 0;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--violet-footer-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.violet-footer__links a:hover,
.violet-footer__links a:focus-visible {
	color: #fff;
}

/* No legacy dot separators in the compact row. */
.violet-footer__links a + a::before {
	content: none;
	margin: 0;
}

.violet-footer__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.violet-footer__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 32px;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--violet-footer-border);
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.violet-footer__btn i {
	font-size: 0.95rem;
	line-height: 1;
}

.violet-footer__btn:hover,
.violet-footer__btn:focus-visible {
	color: #fff;
	border-color: var(--accents, #7f00ff);
	background: rgba(127, 0, 255, 0.18);
}

.violet-footer__btn--discord {
	background: #5865f2;
	border-color: #5865f2;
}

.violet-footer__btn--discord:hover,
.violet-footer__btn--discord:focus-visible {
	background: #4752c4;
	border-color: #4752c4;
}

.violet-footer__btn--reddit {
	background: #ff4500;
	border-color: #ff4500;
}

.violet-footer__btn--reddit:hover,
.violet-footer__btn--reddit:focus-visible {
	background: #e03d00;
	border-color: #e03d00;
}

.violet-footer__desc {
	max-width: 720px;
	margin: 0;
	padding: 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--violet-footer-muted);
}

.violet-footer__divider {
	display: block;
	width: 100%;
	height: 0;
	margin: 12px 0 10px;
	border: 0;
	border-top: 1px solid var(--violet-footer-border);
}

.violet-footer__bottom {
	padding: 0;
}

.violet-footer__copy {
	margin: 0;
	padding: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.55);
}

.violet-footer a:focus-visible {
	outline: 2px solid var(--accents, #7f00ff);
	outline-offset: 2px;
}

/* Legacy parent footer decoration must not reappear. */
.violet-footer .footer-img,
#footer.violet-footer > .footer-img {
	display: none !important;
}

/* Preserved from the replaced parent footer inline style. */
#main-menu ul li ul {
	right: 0 !important;
}

@media (max-width: 600px) {
	.violet-footer__inner {
		padding: 12px 12px 10px;
	}

	.violet-footer__top {
		gap: 8px;
	}

	.violet-footer__links {
		gap: 4px 10px;
	}

	.violet-footer__links a {
		font-size: 0.78rem;
	}

	.violet-footer__logo {
		height: 36px;
		max-width: 140px;
	}

	.violet-footer__name {
		font-size: 0.98rem;
	}

	.violet-footer__desc {
		font-size: 0.78rem;
	}
}
