/* FOOTER */

[data-bs-theme="light"] {
	color-scheme: light;
}

[data-bs-theme="dark"] {
	color-scheme: dark;
}

.site-footer {
	margin-top: 1.25rem;
	padding-bottom: 2rem;
}

.site-footer-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.15rem;
	background: rgba(22, 27, 34, 0.78);
	border: 1px solid #30363d;
	border-radius: 1.35rem;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
	color: #94a3b8;
	font-size: 0.85rem;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.footer-logo {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	overflow: hidden;
	border: 2px solid #215075;
	border-radius: 0.85rem;
	box-shadow: 0 8px 24px rgba(59, 130, 246, 0.18);
}

.footer-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.footer-brand strong {
	display: block;
	color: #f8fafc;
	font-weight: 900;
	line-height: 1.1;
}

.footer-brand span {
	display: block;
	margin-top: 0.2rem;
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 700;
}

.footer-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
}

.footer-meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.55rem;
	background: rgba(13, 17, 23, 0.72);
	border: 1px solid rgba(148, 163, 184, 0.12);
	border-radius: 999px;
	color: #94a3b8;
	white-space: nowrap;
}

.footer-meta i {
	color: #64748b;
}

.footer-meta strong {
	color: #e2e8f0;
}

.footer-contact a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	background: rgba(59, 130, 246, 0.12);
	color: #93c5fd;
	font-weight: 800;
	text-decoration: none;
}

.footer-contact a:hover {
	background: rgba(59, 130, 246, 0.2);
	color: #ffffff;
}

/* DEBUG PANEL */

.debug-panel {
	margin-top: 1rem;
	margin-bottom: 1rem;
	overflow: hidden;
	background: rgba(22, 27, 34, 0.88);
	border: 1px solid #30363d;
	border-radius: 1.25rem;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.debug-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	background: rgba(13, 17, 23, 0.8);
	border-bottom: 1px solid #30363d;
	color: #e2e8f0;
}

.debug-panel-header strong {
	color: #ffffff;
}

.debug-panel-header span {
	color: #94a3b8;
	font-size: 0.85rem;
	font-weight: 800;
}

.debug-panel-body {
	display: grid;
	gap: 0.45rem;
	max-height: 28rem;
	overflow: auto;
	padding: 1rem;
}

.debug-query {
	padding: 0.65rem 0.75rem;
	background: rgba(2, 6, 23, 0.58);
	border: 1px solid rgba(148, 163, 184, 0.12);
	border-radius: 0.85rem;
}

.debug-query code {
	display: block;
	padding: 0;
	background: transparent;
	border: 0;
	color: #cbd5e1;
	font-size: 0.78rem;
	white-space: pre-wrap;
	word-break: break-word;
}

.debug-query.muted {
	color: #64748b;
	font-weight: 700;
}

/* LIGHT COLOR SCHEME */

[data-bs-theme="light"] .site-footer-inner {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(148, 163, 184, 0.35);
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
	color: #475569;
}

[data-bs-theme="light"] .footer-logo {
	border-color: rgba(37, 99, 235, 0.35);
	box-shadow: 0 8px 22px rgba(37, 99, 235, 0.14);
}

[data-bs-theme="light"] .footer-brand strong {
	color: #0f172a;
}

[data-bs-theme="light"] .footer-brand span {
	color: #64748b;
}

[data-bs-theme="light"] .footer-meta span {
	background: rgba(248, 250, 252, 0.88);
	border-color: rgba(148, 163, 184, 0.35);
	color: #475569;
}

[data-bs-theme="light"] .footer-meta i {
	color: #64748b;
}

[data-bs-theme="light"] .footer-meta strong {
	color: #0f172a;
}

[data-bs-theme="light"] .footer-contact a {
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
}

[data-bs-theme="light"] .footer-contact a:hover {
	background: rgba(37, 99, 235, 0.16);
	color: #1d4ed8;
}

[data-bs-theme="light"] .debug-panel {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(148, 163, 184, 0.35);
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

[data-bs-theme="light"] .debug-panel-header {
	background: rgba(248, 250, 252, 0.92);
	border-bottom-color: rgba(148, 163, 184, 0.35);
	color: #334155;
}

[data-bs-theme="light"] .debug-panel-header strong {
	color: #0f172a;
}

[data-bs-theme="light"] .debug-panel-header span {
	color: #64748b;
}

[data-bs-theme="light"] .debug-query {
	background: rgba(248, 250, 252, 0.9);
	border-color: rgba(148, 163, 184, 0.28);
}

[data-bs-theme="light"] .debug-query code {
	color: #334155;
}

[data-bs-theme="light"] .debug-query.muted {
	color: #64748b;
}

/* RESPONSIVE FOOTER */

@media (max-width: 991.98px) {
	.site-footer-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer-brand {
		justify-content: center;
	}

	.footer-meta {
		justify-content: center;
	}

	.footer-contact {
		display: flex;
		justify-content: center;
	}
}

@media (max-width: 575.98px) {
	.footer-meta {
		align-items: stretch;
		flex-direction: column;
	}

	.footer-meta span {
		justify-content: center;
	}

	.debug-panel-header {
		align-items: flex-start;
		flex-direction: column;
	}
}