/*
Theme Name: Who Called UK
Theme URI: https://dugout.digital
Author: Dugout Digital
Description: Dark, security-console styled theme built for the Who Called UK phone lookup plugin. Case-file layout, radar-scan hero, stamped risk badges.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wcuk-theme
*/

/* ===== Design tokens ===== */
:root {
	--wcuk-void: #0b0d10;
	--wcuk-panel: #14171c;
	--wcuk-panel-2: #1c2027;
	--wcuk-border: #262b33;
	--wcuk-red: #e8362b;
	--wcuk-red-dim: #7a1f19;
	--wcuk-amber: #f2a93b;
	--wcuk-green: #35c87a;
	--wcuk-ash: #8a9099;
	--wcuk-off: #edeff2;

	--font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--font-body: 'Inter', -apple-system, sans-serif;
	--font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html, body {
	background: var(--wcuk-void);
	color: var(--wcuk-off);
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
}

a { color: var(--wcuk-off); text-decoration: none; }
a:hover { color: var(--wcuk-red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid var(--wcuk-red);
	outline-offset: 2px;
}

/* Faint scanline + vignette texture across the whole site */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background:
		repeating-linear-gradient(
			to bottom,
			rgba(255, 255, 255, 0.018) 0px,
			rgba(255, 255, 255, 0.018) 1px,
			transparent 1px,
			transparent 3px
		),
		radial-gradient(ellipse at 50% 0%, rgba(232, 54, 43, 0.06), transparent 60%);
}

h1, h2, h3 {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-weight: 700;
	margin: 0 0 16px;
}

/* ===== Header ===== */
.wcuk-site-header {
	border-bottom: 1px solid var(--wcuk-border);
	background: linear-gradient(180deg, var(--wcuk-panel) 0%, var(--wcuk-void) 100%);
	position: relative;
	overflow: hidden;
}
.wcuk-site-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: -30%;
	width: 30%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--wcuk-red), transparent);
	box-shadow: 0 0 8px 1px rgba(232, 54, 43, 0.6);
	animation: wcuk-scan 5s linear infinite;
}
@keyframes wcuk-scan {
	0% { left: -30%; }
	100% { left: 100%; }
}
.wcuk-header-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.wcuk-logo {
	font-family: var(--font-mono);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wcuk-off);
	display: flex;
	align-items: center;
	gap: 8px;
}
.wcuk-logo .wcuk-logo-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wcuk-red);
	box-shadow: 0 0 8px 1px var(--wcuk-red);
	animation: wcuk-pulse 2s infinite;
}
@keyframes wcuk-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}
.wcuk-status {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--wcuk-green);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	display: flex;
	align-items: center;
	gap: 6px;
	order: 3;
	width: 100%;
	justify-content: center;
}
@media (min-width: 640px) {
	.wcuk-status { order: 0; width: auto; margin-left: auto; margin-right: 18px; }
}
.wcuk-nav ul {
	list-style: none;
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.wcuk-nav a { color: var(--wcuk-ash); }
.wcuk-nav a:hover { color: var(--wcuk-red); }

/* ===== Threat ticker (marquee) ===== */
.wcuk-marquee {
	background: var(--wcuk-panel-2);
	border-bottom: 1px solid var(--wcuk-border);
	overflow: hidden;
	white-space: nowrap;
	padding: 8px 0;
}
.wcuk-marquee-track {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--wcuk-ash);
	letter-spacing: 0.03em;
	animation: wcuk-marquee 32s linear infinite;
}
.wcuk-marquee-track span.wcuk-marquee-tag {
	color: var(--wcuk-red);
	margin-right: 6px;
}
.wcuk-marquee-track .wcuk-marquee-item { margin-right: 48px; }
@keyframes wcuk-marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.wcuk-marquee-track { animation: none; }
}

/* ===== Hero / radar search (front page) ===== */
.wcuk-hero {
	position: relative;
	text-align: center;
	padding: 70px 20px 50px;
	overflow: hidden;
}
.wcuk-hero-eyebrow {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--wcuk-red);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	margin-bottom: 14px;
}
.wcuk-hero h1 {
	font-size: clamp(2.2rem, 6vw, 3.4rem);
	margin-bottom: 10px;
	text-shadow: -2px 0 rgba(232, 54, 43, 0.5), 2px 0 rgba(53, 200, 122, 0.25);
}
.wcuk-hero p.wcuk-hero-sub {
	color: var(--wcuk-ash);
	max-width: 480px;
	margin: 0 auto 34px;
	font-size: 0.98rem;
}

/* ===== Corner-bracket frame (signature motif) ===== */
.wcuk-frame { position: relative; }
.wcuk-corner {
	display: block;
	position: absolute;
	width: 16px;
	height: 16px;
	z-index: 2;
}
.wcuk-corner-tl { top: -2px; left: -2px; border-top: 2px solid var(--wcuk-red); border-left: 2px solid var(--wcuk-red); }
.wcuk-corner-tr { top: -2px; right: -2px; border-top: 2px solid var(--wcuk-red); border-right: 2px solid var(--wcuk-red); }
.wcuk-corner-bl { bottom: -2px; left: -2px; border-bottom: 2px solid var(--wcuk-red); border-left: 2px solid var(--wcuk-red); }
.wcuk-corner-br { bottom: -2px; right: -2px; border-bottom: 2px solid var(--wcuk-red); border-right: 2px solid var(--wcuk-red); }

.wcuk-radar {
	position: relative;
	width: 260px;
	height: 260px;
	margin: 0 auto 30px;
}
.wcuk-radar::before,
.wcuk-radar::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(232, 54, 43, 0.25);
}
.wcuk-radar::after {
	inset: 40px;
}
.wcuk-radar-sweep {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 0deg, rgba(232, 54, 43, 0.55), transparent 40%);
	animation: wcuk-spin 3.5s linear infinite;
	mask-image: radial-gradient(circle, transparent 0, black 1px, black 100%);
}
@keyframes wcuk-spin {
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.wcuk-radar-sweep, .wcuk-logo-dot { animation: none; }
}

/* ===== Content shell (wraps plugin output) ===== */
.wcuk-page-shell {
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 20px 80px;
}
.wcuk-page-shell > h1 {
	font-size: 1.8rem;
	margin-bottom: 24px;
}

/* ===== Ticker ===== */
.wcuk-ticker-label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--wcuk-ash);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 10px;
}

/* ===== Footer ===== */
.wcuk-site-footer {
	border-top: 1px solid var(--wcuk-border);
	padding: 30px 20px;
	text-align: center;
	color: var(--wcuk-ash);
	font-size: 0.82rem;
	font-family: var(--font-mono);
}

/* =====================================================
   Plugin overrides — restyle Who Called UK plugin markup
   to match the case-file / security-console aesthetic.
   ===================================================== */

body .wcuk-wrap {
	max-width: 720px;
	color: var(--wcuk-off);
}

/* Search box */
body .wcuk-search-form input {
	background: var(--wcuk-panel);
	border: 1px solid var(--wcuk-border);
	color: var(--wcuk-off);
	font-family: var(--font-mono);
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	border-radius: 4px;
}
body .wcuk-search-form input::placeholder { color: var(--wcuk-ash); }
body .wcuk-search-form button {
	background: var(--wcuk-red);
	border-radius: 4px;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
}
body .wcuk-search-form button:hover { background: #c9291f; }

/* Number page header */
body .wcuk-number-eyebrow {
	font-family: var(--font-mono);
	color: var(--wcuk-red);
	letter-spacing: 0.16em;
}
body .wcuk-number-eyebrow::before { content: 'CASE FILE // '; }
body .wcuk-number-display {
	font-family: var(--font-mono);
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--wcuk-off);
}
body .wcuk-dossier-frame { padding: 20px 34px; }
body .wcuk-number-type { color: var(--wcuk-ash); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }
body .wcuk-stat-value { font-family: var(--font-mono); color: var(--wcuk-off); }
body .wcuk-stat-label { color: var(--wcuk-ash); font-family: var(--font-mono); }
body .wcuk-meta-stats .wcuk-stat:first-child .wcuk-stat-value {
	color: var(--wcuk-red);
	font-size: 1.6rem;
	font-weight: 700;
	text-shadow: 0 0 10px rgba(232, 54, 43, 0.45);
}
body .wcuk-search-frame { padding: 4px; }

body .wcuk-related h2 { font-size: 1.1rem; border-bottom: 1px solid var(--wcuk-border); padding-bottom: 8px; }
body .wcuk-related-note { color: var(--wcuk-ash); font-family: var(--font-mono); font-size: 0.78rem; }
body .wcuk-related-list li a {
	background: var(--wcuk-panel);
	border: 1px solid var(--wcuk-border);
	color: var(--wcuk-off);
	font-family: var(--font-mono);
	border-radius: 3px;
}
body .wcuk-related-list li a:hover { border-color: var(--wcuk-red); color: var(--wcuk-red); }

/* Stamped risk badge */
body .wcuk-badge {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.06em;
	border-radius: 3px;
	border: 2px solid currentColor;
	background: transparent !important;
	transform: rotate(-2deg);
	position: relative;
	padding: 8px 20px;
}
body .wcuk-badge-danger { color: var(--wcuk-red); }
body .wcuk-badge-warning { color: var(--wcuk-amber); }
body .wcuk-badge-safe { color: var(--wcuk-green); }
body .wcuk-badge-neutral { color: var(--wcuk-ash); }

/* Risk dot indicators */
body .wcuk-dot-high { background: var(--wcuk-red); box-shadow: 0 0 5px 0 rgba(232,54,43,0.7); }
body .wcuk-dot-medium { background: var(--wcuk-amber); }
body .wcuk-dot-low { background: var(--wcuk-ash); }
body .wcuk-dot-safe { background: var(--wcuk-green); }

/* Breakdown bars */
body .wcuk-breakdown h2,
body .wcuk-reports-list h2,
body .wcuk-submit-section h2 {
	font-size: 1.1rem;
	color: var(--wcuk-off);
	border-bottom: 1px solid var(--wcuk-border);
	padding-bottom: 8px;
}
body .wcuk-bar-label { color: var(--wcuk-ash); font-family: var(--font-mono); font-size: 0.78rem; }
body .wcuk-bar-track { background: var(--wcuk-panel-2); }
body .wcuk-bar-high .wcuk-bar-fill { background: var(--wcuk-red); }
body .wcuk-bar-medium .wcuk-bar-fill { background: var(--wcuk-amber); }
body .wcuk-bar-low .wcuk-bar-fill { background: var(--wcuk-ash); }
body .wcuk-bar-safe .wcuk-bar-fill { background: var(--wcuk-green); }
body .wcuk-bar-count { color: var(--wcuk-ash); font-family: var(--font-mono); }

/* Report cards -> log entries */
body .wcuk-report-card {
	background: var(--wcuk-panel);
	border: 1px solid var(--wcuk-border);
	border-radius: 3px;
	border-left: 3px solid var(--wcuk-border);
}
body .wcuk-report-high { border-left-color: var(--wcuk-red); }
body .wcuk-report-medium { border-left-color: var(--wcuk-amber); }
body .wcuk-report-low { border-left-color: var(--wcuk-ash); }
body .wcuk-report-safe { border-left-color: var(--wcuk-green); }
body .wcuk-report-type {
	font-family: var(--font-mono);
	color: var(--wcuk-off);
	display: inline-flex;
	align-items: center;
}
body .wcuk-report-by { color: var(--wcuk-ash); font-family: var(--font-mono); font-size: 0.78rem; }
body .wcuk-report-comment { color: var(--wcuk-off); opacity: 0.9; }
body .wcuk-vote-btn {
	background: var(--wcuk-panel-2);
	border: 1px solid var(--wcuk-border);
	color: var(--wcuk-ash);
	font-family: var(--font-mono);
}
body .wcuk-vote-btn:hover { border-color: var(--wcuk-red); color: var(--wcuk-off); }

body .wcuk-empty { color: var(--wcuk-ash); }

/* Submit form */
body .wcuk-submit-form label {
	font-family: var(--font-mono);
	color: var(--wcuk-ash);
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
}
body .wcuk-submit-form input,
body .wcuk-submit-form select,
body .wcuk-submit-form textarea {
	background: var(--wcuk-panel);
	border: 1px solid var(--wcuk-border);
	color: var(--wcuk-off);
	border-radius: 4px;
}
body .wcuk-submit-form button {
	background: var(--wcuk-red);
	border-radius: 4px;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
}
body .wcuk-submit-form button:hover { background: #c9291f; }
body .wcuk-submit-number { color: var(--wcuk-ash); font-family: var(--font-mono); }
body .wcuk-form-message.success { background: rgba(53, 200, 122, 0.12); color: var(--wcuk-green); }
body .wcuk-form-message.error { background: rgba(232, 54, 43, 0.12); color: var(--wcuk-red); }

/* Top scam / recent lists */
body .wcuk-top-list, body .wcuk-recent-list { list-style: none; padding: 0; }
body .wcuk-top-list li, body .wcuk-recent-list li {
	font-family: var(--font-mono);
	font-size: 0.9rem;
	border-bottom: 1px solid var(--wcuk-border);
	padding: 10px 0;
}
body .wcuk-top-count { color: var(--wcuk-red); }
body .wcuk-recent-list time { color: var(--wcuk-ash); }
