/**
 * Round Recon — chrome (header + footer) styles.
 *
 * Colors/fonts come from theme.json presets via CSS custom properties
 * (--wp--preset--color--*, --wp--preset--font-family--*). Change a token in
 * theme.json and it propagates here. This file only handles layout that block
 * markup can't express for the app-style header/footer.
 */

:root {
	--rr-bg: var(--wp--preset--color--base, #0a0b0d);
	--rr-panel: var(--wp--preset--color--surface, #13151a);
	--rr-line: var(--wp--preset--color--border, #23262d);
	--rr-line-strong: var(--wp--preset--color--border-strong, #2e3239);
	--rr-text: var(--wp--preset--color--contrast, #ecedee);
	--rr-dim: var(--wp--preset--color--muted, #9aa0ab);
	--rr-dimmer: var(--wp--preset--color--faint, #6b7079);
	--rr-accent: var(--wp--preset--color--accent, #c8ff2c);
	--rr-accent-dim: var(--wp--preset--color--accent-dim, #7da00f);
	--rr-accent-ink: var(--wp--preset--color--accent-ink, #0a0b0d);
	--rr-sans: var(--wp--preset--font-family--geist-sans, "Geist Sans", system-ui, sans-serif);
}

/* ---------------------------------------------------------------- Header */

.rr-appbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--rr-bg) 88%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--rr-line);
	font-family: var(--rr-sans);
}

.rr-toolbar {
	max-width: 1200px;
	margin: 0 auto;
	min-height: 56px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.rr-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--rr-text);
}

.rr-reticle { display: block; flex: none; }

.rr-brand-text {
	font-family: var(--rr-sans);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	color: var(--rr-text);
}

.rr-toolbar-spacer { flex: 1 1 auto; }

.rr-search {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 1 320px;
	min-width: 0;
	padding: 4px 10px;
	background: var(--rr-panel);
	border: 1px solid var(--rr-line);
	border-radius: 8px;
}

.rr-search:focus-within { border-color: var(--rr-line-strong); }

.rr-search-icon { width: 18px; height: 18px; fill: var(--rr-dim); flex: none; }

.rr-search-input {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: 0;
	outline: none;
	color: var(--rr-text);
	font: inherit;
	font-size: 0.9rem;
	padding: 4px 0;
}

.rr-search-input::placeholder { color: var(--rr-dimmer); }

.rr-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.rr-btn {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	font-family: var(--rr-sans);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1;
	padding: 8px 14px;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.rr-btn--ghost {
	color: var(--rr-text);
	background: transparent;
	border: 1px solid var(--rr-line-strong);
	font-weight: 500;
}
.rr-btn--ghost:hover { border-color: var(--rr-dim); background: rgba(255, 255, 255, 0.04); }

.rr-btn--solid {
	color: var(--rr-accent-ink);
	background: var(--rr-accent);
	border: 1px solid var(--rr-accent);
}
.rr-btn--solid:hover { background: var(--rr-accent-dim); border-color: var(--rr-accent-dim); }

/* Collapse search + ghost button on narrow screens, app-style */
@media (max-width: 720px) {
	.rr-search { flex-basis: 160px; }
	.rr-btn--ghost { display: none; }
}
@media (max-width: 520px) {
	.rr-search { display: none; }
}

/* ---------------------------------------------------------------- Footer */

.rr-footer {
	background: var(--rr-bg);
	border-top: 1px solid var(--rr-line);
	font-family: var(--rr-sans);
	margin-top: var(--wp--preset--spacing--60, 4rem);
}

.rr-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 16px 40px;
}

.rr-footer-cols {
	display: grid;
	grid-template-columns: 1.6fr repeat(5, 1fr);
	gap: 32px;
}

.rr-footer-brand { display: inline-flex; align-items: center; gap: 8px; }

.rr-footer-desc {
	margin: 14px 0 0;
	max-width: 30ch;
	color: var(--rr-dim);
	font-size: 0.875rem;
	line-height: 1.6;
}

.rr-footer-nav { display: flex; flex-direction: column; }

.rr-footer-heading {
	color: var(--rr-text);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 14px;
}

.rr-footer-nav a {
	color: var(--rr-dim);
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1.4;
	padding: 5px 0;
}
.rr-footer-nav a:hover { color: var(--rr-text); text-decoration: underline; }

.rr-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rr-footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--rr-line);
	color: var(--rr-dimmer);
	font-size: 0.8rem;
}

@media (max-width: 900px) {
	.rr-footer-cols { grid-template-columns: 1fr 1fr; }
	.rr-footer-brandcol { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.rr-footer-cols { grid-template-columns: 1fr; }
	.rr-footer-legal { flex-direction: column; }
}
