/* Codeshrimp theme: the HUD look (html[data-theme="hud"]). The third choice of the theme switch, after dark and light; it is the look of the Netlens HUD:
   neon cyan on near-black, cut corners, a faint grid, scanlines and glow. It sits on the dark theme, so every dark rule still applies and only what is
   listed here changes. Nothing in this file is active in the dark or the light look. */

html[data-theme="hud"] {
	--wp--preset--color--base: #02080f;
	--wp--preset--color--surface: #051a2b;
	--wp--preset--color--surface-2: #082a40;
	--wp--preset--color--border: #0c5a70;
	--wp--preset--color--contrast: #d3f1ff;
	--wp--preset--color--muted: #7eacc3;
	--wp--preset--color--primary: #00e5ff;
	--wp--preset--color--primary-dark: #00b8d4;
	--wp--preset--color--secondary: #4df3ff;
	--wp--preset--color--success: #00ffa3;
	--wp--preset--gradient--brand: linear-gradient(90deg, #00e5ff, #00ffa3);
	--wp--preset--gradient--ocean: linear-gradient(90deg, #4df3ff, #0aa0ff);
	--cs-glow-1: rgba(0, 150, 255, .22);
	--cs-glow-2: rgba(0, 255, 163, .12);
	--cs-code-bg: #010a12;
	--cs-shadow: 0 0 22px rgba(0, 229, 255, .22);
	--cs-radius: 0px;
	--hud-cut: 12px;
	--hud-glow: 0 0 14px rgba(0, 229, 255, .35);
	--hud-edge: rgba(0, 229, 255, .32);
	--hud-panel: linear-gradient(135deg, rgba(8, 38, 58, .86), rgba(3, 14, 24, .86));
	--hud-mono: var(--wp--preset--font-family--mono);
}

/* the page: grid, light from the top right, scanlines, one slow sweep */
html[data-theme="hud"] body {
	background:
		radial-gradient(1200px 700px at 78% -10%, rgba(0, 120, 200, .22), transparent 60%),
		radial-gradient(900px 600px at 5% 110%, rgba(0, 255, 163, .08), transparent 60%),
		linear-gradient(rgba(0, 229, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
		linear-gradient(90deg, rgba(0, 229, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
		var(--wp--preset--color--base);
	background-attachment: fixed;
}
html[data-theme="hud"] body::after {
	content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
	background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 20, 30, .13) 2px 3px);
	mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: no-preference) {
	html[data-theme="hud"] body::before {
		content: ""; position: fixed; left: 0; right: 0; height: 120px; top: -120px; pointer-events: none; z-index: 9998;
		background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, .07), transparent); animation: cs-hud-sweep 9s linear infinite;
	}
}
@keyframes cs-hud-sweep { to { transform: translateY(calc(100vh + 240px)); } }
html[data-theme="hud"] ::selection { background: rgba(0, 229, 255, .35); color: #fff; }
html[data-theme="hud"] ::-webkit-scrollbar { width: 9px; height: 9px; }
html[data-theme="hud"] ::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, .35); }
html[data-theme="hud"] ::-webkit-scrollbar-track { background: rgba(0, 20, 30, .6); }
html[data-theme="hud"] { scrollbar-color: rgba(0, 229, 255, .45) rgba(0, 20, 30, .6); }
html[data-theme="hud"] :focus-visible { outline-color: var(--wp--preset--color--success); border-radius: 0; }

/* type: mono headings in capitals with a glow */
html[data-theme="hud"] h1, html[data-theme="hud"] h2, html[data-theme="hud"] h3, html[data-theme="hud"] h4 { font-family: var(--hud-mono); }
html[data-theme="hud"] h1, html[data-theme="hud"] h2 { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
html[data-theme="hud"] h2 { color: var(--wp--preset--color--primary); text-shadow: 0 0 12px rgba(0, 229, 255, .5); }
html[data-theme="hud"] h2::before { content: "\25B8\00a0"; color: var(--wp--preset--color--success); }
html[data-theme="hud"] .cs-section-head h2::before, html[data-theme="hud"] .cs-cta h2::before, html[data-theme="hud"] .cs-hero h2::before { content: none; }
html[data-theme="hud"] h3 { letter-spacing: .04em; }
html[data-theme="hud"] .cs-docs-main h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: .05em; }
html[data-theme="hud"] .cs-hero h1 { letter-spacing: .03em; line-height: 1.12; text-shadow: 0 0 22px rgba(0, 229, 255, .35); }
html[data-theme="hud"] .cs-gradient, html[data-theme="hud"] .cs-gradient-blue { text-shadow: none; filter: drop-shadow(0 0 14px rgba(0, 229, 255, .45)); }
html[data-theme="hud"] .cs-eyebrow { font-family: var(--hud-mono); letter-spacing: .22em; color: var(--wp--preset--color--success); }
html[data-theme="hud"] .cs-lead { color: var(--wp--preset--color--muted); }
html[data-theme="hud"] a { text-shadow: 0 0 8px rgba(77, 243, 255, .25); }
html[data-theme="hud"] .cs-prose a { text-decoration-color: rgba(0, 229, 255, .5); }

/* header, navigation, switch */
html[data-theme="hud"] .cs-header { background: rgba(2, 10, 18, .86); border-bottom: 1px solid var(--hud-edge); box-shadow: 0 6px 26px rgba(0, 229, 255, .12); }
html[data-theme="hud"] .cs-brand { font-family: var(--hud-mono); letter-spacing: .04em; text-shadow: 0 0 10px rgba(0, 229, 255, .4); }
html[data-theme="hud"] .cs-brand b { color: var(--wp--preset--color--primary); }
html[data-theme="hud"] .cs-nav .wp-block-navigation-item__content { font-family: var(--hud-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; border-radius: 0; }
html[data-theme="hud"] .cs-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); background: rgba(0, 229, 255, .1); box-shadow: inset 0 -2px 0 var(--wp--preset--color--primary), var(--hud-glow); }
html[data-theme="hud"] .cs-theme-toggle { border-radius: 0; border-color: var(--hud-edge); background: rgba(0, 229, 255, .07); color: var(--wp--preset--color--primary); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
html[data-theme="hud"] .cs-theme-toggle:hover { transform: none; box-shadow: var(--hud-glow); background: rgba(0, 229, 255, .16); }

/* buttons: slanted ends, glow */
html[data-theme="hud"] .wp-block-button__link, html[data-theme="hud"] .cs-header-cta, html[data-theme="hud"] .cs-plan .cs-plan-cta a {
	border-radius: 0 !important; font-family: var(--hud-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 700;
	clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-inline: 1.7rem;
	background: linear-gradient(135deg, #00cfe8, #0090c8); color: #001419 !important; border: 0; box-shadow: none;
}
html[data-theme="hud"] .wp-block-button__link:hover, html[data-theme="hud"] .cs-header-cta:hover, html[data-theme="hud"] .cs-plan .cs-plan-cta a:hover {
	background: linear-gradient(135deg, #4df3ff, #00b8e8); color: #001419 !important; transform: translateY(-1px); filter: drop-shadow(0 0 10px rgba(0, 229, 255, .7));
}
html[data-theme="hud"] .wp-block-button.is-style-outline > .wp-block-button__link {
	background: rgba(0, 229, 255, .08); color: var(--wp--preset--color--primary) !important; box-shadow: inset 0 0 0 1.5px var(--hud-edge);
}
html[data-theme="hud"] .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(0, 229, 255, .18); filter: drop-shadow(0 0 10px rgba(0, 229, 255, .5)); }
html[data-theme="hud"] .cs-plan:not(.featured) .cs-plan-cta a { background: rgba(0, 229, 255, .08); color: var(--wp--preset--color--primary) !important; box-shadow: inset 0 0 0 1.5px var(--hud-edge); }

/* panels with cut corners (the ones that are not meant to overflow) */
html[data-theme="hud"] .cs-card, html[data-theme="hud"] .cs-stat, html[data-theme="hud"] .cs-step, html[data-theme="hud"] .cs-road, html[data-theme="hud"] .cs-product-card,
html[data-theme="hud"] .cs-cta, html[data-theme="hud"] .cs-pager a, html[data-theme="hud"] .cs-dn-product, html[data-theme="hud"] .cs-faq details {
	border-radius: 0; border: 1px solid var(--hud-edge); background: var(--hud-panel); box-shadow: inset 0 0 22px rgba(0, 229, 255, .07);
	clip-path: polygon(var(--hud-cut) 0, 100% 0, 100% calc(100% - var(--hud-cut)), calc(100% - var(--hud-cut)) 100%, 0 100%, 0 var(--hud-cut));
}
html[data-theme="hud"] .cs-card:hover, html[data-theme="hud"] .cs-product-card:hover, html[data-theme="hud"] .cs-pager a:hover { border-color: var(--wp--preset--color--primary); box-shadow: inset 0 0 30px rgba(0, 229, 255, .16); transform: translateY(-3px); }
html[data-theme="hud"] .cs-cta { background: linear-gradient(135deg, rgba(0, 110, 170, .38), rgba(3, 14, 24, .88)); }
html[data-theme="hud"] .cs-stat b { font-family: var(--hud-mono); filter: drop-shadow(0 0 10px rgba(0, 229, 255, .45)); }
html[data-theme="hud"] .cs-step::before { border-radius: 0; font-family: var(--hud-mono); background: rgba(0, 229, 255, .14); color: var(--wp--preset--color--primary); box-shadow: inset 0 0 0 1px var(--hud-edge); }
html[data-theme="hud"] .cs-icon { border-radius: 0; background: rgba(0, 229, 255, .1); color: var(--wp--preset--color--primary); box-shadow: inset 0 0 0 1px var(--hud-edge), 0 0 12px rgba(0, 229, 255, .18); }
html[data-theme="hud"] .cs-pill { border-radius: 0; font-family: var(--hud-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; border-color: var(--hud-edge); background: rgba(0, 229, 255, .07); }
html[data-theme="hud"] .cs-pill i { border-radius: 0; }

/* panels that may overflow (a ribbon, a screenshot): a square outline with an outer glow instead of cut corners */
html[data-theme="hud"] .cs-plan { border-radius: 0; border: 1px solid var(--hud-edge); background: var(--hud-panel); box-shadow: inset 0 0 22px rgba(0, 229, 255, .07), var(--hud-glow); }
html[data-theme="hud"] .cs-plan.featured { border-color: var(--wp--preset--color--primary); box-shadow: inset 0 0 30px rgba(0, 229, 255, .14), 0 0 22px rgba(0, 229, 255, .4); }
html[data-theme="hud"] .cs-plan .cs-ribbon { border-radius: 0; font-family: var(--hud-mono); letter-spacing: .1em; background: var(--wp--preset--color--primary); color: #001419; }
html[data-theme="hud"] .cs-shot, html[data-theme="hud"] .cs-prose img { border-radius: 0; border: 1px solid var(--hud-edge); box-shadow: 0 0 22px rgba(0, 229, 255, .22); }
html[data-theme="hud"] .cs-shot-bar { background: rgba(0, 229, 255, .1); }
html[data-theme="hud"] .cs-shot-bar i, html[data-theme="hud"] .cs-shot-bar i:nth-child(2), html[data-theme="hud"] .cs-shot-bar i:nth-child(3) { border-radius: 0; background: var(--wp--preset--color--primary); opacity: .6; }
html[data-theme="hud"] .cs-lightbox img { border-radius: 0; box-shadow: 0 0 40px rgba(0, 229, 255, .35); }
html[data-theme="hud"] .cs-compare-wrap { border-radius: 0; border-color: var(--hud-edge); box-shadow: var(--hud-glow); }

/* callouts, code, tables, quotes */
html[data-theme="hud"] .cs-callout { border-radius: 0; background: var(--hud-panel); }
html[data-theme="hud"] pre, html[data-theme="hud"] .wp-block-code { border-radius: 0; border-color: var(--hud-edge) !important; color: #b8fbff; box-shadow: inset 0 0 18px rgba(0, 229, 255, .06); }
html[data-theme="hud"] :not(pre) > code { border-radius: 0; color: #b8fbff; background: rgba(0, 229, 255, .09); border-color: var(--hud-edge); }
html[data-theme="hud"] kbd { border-radius: 0; font-family: var(--hud-mono); }
html[data-theme="hud"] .cs-copy { border-radius: 0; font-family: var(--hud-mono); }
html[data-theme="hud"] .cs-prose th, html[data-theme="hud"] .cs-compare thead th { font-family: var(--hud-mono); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; color: var(--wp--preset--color--primary); }
html[data-theme="hud"] .cs-prose blockquote { border-left-color: var(--wp--preset--color--success); }
html[data-theme="hud"] .cs-y, html[data-theme="hud"] .cs-n { border-radius: 0; }
html[data-theme="hud"] .cs-rp, html[data-theme="hud"] .cs-rd { border-radius: 0; }

/* documentation: search, menu, contents */
html[data-theme="hud"] .cs-docs-search input, html[data-theme="hud"] .wp-block-search__input { border-radius: 0; font-family: var(--hud-mono); border-color: var(--hud-edge); background: rgba(0, 229, 255, .05); }
html[data-theme="hud"] .cs-docs-search input:focus { border-color: var(--wp--preset--color--primary); box-shadow: var(--hud-glow); }
html[data-theme="hud"] .cs-dn-item a { border-radius: 0; }
html[data-theme="hud"] .cs-dn-item a:hover { background: rgba(0, 229, 255, .1); color: var(--wp--preset--color--primary); }
html[data-theme="hud"] .cs-dn-item.is-current > a, html[data-theme="hud"] .cs-dn-item.is-current > details > summary a { background: rgba(0, 229, 255, .12); color: var(--wp--preset--color--primary); box-shadow: inset 3px 0 0 var(--wp--preset--color--primary); }
html[data-theme="hud"] .cs-dn-kicker, html[data-theme="hud"] .cs-toc h4 { font-family: var(--hud-mono); letter-spacing: .2em; }
html[data-theme="hud"] .cs-toc { border-left-color: var(--hud-edge); }
html[data-theme="hud"] .cs-dn-toggle { border-radius: 0; font-family: var(--hud-mono); }

/* footer */
html[data-theme="hud"] .cs-footer { border-top: 1px solid var(--hud-edge); background: rgba(2, 10, 18, .88); box-shadow: 0 -6px 26px rgba(0, 229, 255, .08); }
html[data-theme="hud"] .cs-footer-grid h4 { font-family: var(--hud-mono); letter-spacing: .2em; color: var(--wp--preset--color--success); }

/* the switch shows which look is on: sun (light), moon (dark), target (HUD) */
.cs-i-hud { display: none; }
html[data-theme="hud"] .cs-i-hud { display: block; }
html[data-theme="hud"] .cs-i-sun, html[data-theme="hud"] .cs-i-moon { display: none; }

@media (max-width: 700px) { html[data-theme="hud"] .cs-hero h1 { letter-spacing: .01em; } html[data-theme="hud"] h1, html[data-theme="hud"] h2 { letter-spacing: .04em; } }
