/*
Theme Name: Ajax Test
Description: Minimal theme for the admin-ajax test page.
Version: 1.0.0
Requires at least: 6.0
Text Domain: ajax-test
*/

:root {
	--bg: #f5f6f8;
	--card: #ffffff;
	--text: #1c1f24;
	--muted: #667085;
	--border: #e2e5ea;
	--accent: #2f6fed;
	--accent-text: #ffffff;
	--log-bg: #10141b;
	--log-text: #d7e0ee;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e1116;
		--card: #171b22;
		--text: #e8ebf0;
		--muted: #98a2b3;
		--border: #262c36;
		--accent: #5b8ff5;
		--accent-text: #0e1116;
		--log-bg: #0a0d12;
		--log-text: #d7e0ee;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
}

a {
	color: var(--accent);
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .875em;
	overflow-wrap: anywhere;
}

.site {
	max-width: 46rem;
	margin: 0 auto;
	padding: 3rem 1rem;
}

.site-header {
	margin-bottom: 2rem;
}

.site-title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-description {
	margin: .25rem 0 0;
	color: var(--muted);
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: .75rem;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.card h2 {
	margin: 0 0 .5rem;
	font-size: 1.25rem;
}

.card h3 {
	margin: 1.25rem 0 .25rem;
	font-size: 1rem;
}

.card ol {
	margin: 0;
	padding-left: 1.25rem;
}

.results {
	margin: 1.25rem 0 0;
}

.results dt {
	font-weight: 600;
}

.results dd {
	margin: 0 0 .5rem;
}

.ajax-test-info {
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: .875rem;
}

.card > :last-child {
	margin-bottom: 0;
}

.meta {
	margin: 0 0 1.25rem;
	color: var(--muted);
	font-size: .875rem;
}

.meta dt {
	font-weight: 600;
}

.meta dd {
	margin: 0 0 .5rem;
}

.ajax-test p {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 1rem;
}

.ajax-test button {
	font: inherit;
	font-weight: 600;
	padding: .55rem 1rem;
	border: 1px solid var(--accent);
	border-radius: .5rem;
	background: var(--accent);
	color: var(--accent-text);
	cursor: pointer;
}

.ajax-test button:hover {
	filter: brightness(1.08);
}

.ajax-test button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.ajax-test button[data-ajax-test="clear"] {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}

.ajax-test-log {
	margin: 0;
	padding: 1rem;
	min-height: 10rem;
	max-height: 24rem;
	overflow: auto;
	border-radius: .5rem;
	background: var(--log-bg);
	color: var(--log-text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .8125rem;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.ajax-test-log:empty::before {
	content: "No request yet. Click a button.";
	color: #7c8798;
}

.site-footer {
	color: var(--muted);
	font-size: .875rem;
}
