/*
Theme Name: WorkDeckFix
Theme URI: https://workdeckfix.co.uk
Author: WorkDeck
Description: Blueprint-grid design system for WorkDeckFix, the UK home & appliance troubleshooting guide. Zero page-builder dependency.
Version: 1.0.0
Text Domain: workdeckfix-theme
*/

:root {
	--wdf-ink: #0f172a;
	--wdf-navy: #1a1a2e;
	--wdf-bg: #f8fafc;
	--wdf-accent: #c2410c;
	--wdf-accent-dark: #9a3412;
	--wdf-safe: #15803d;
	--wdf-warn: #b91c1c;
	--wdf-grid-size: 32px;
	--wdf-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--wdf-font-mono: 'JetBrains Mono', ui-monospace, monospace;
	--wdf-border: 2px solid var(--wdf-ink);
	--wdf-shadow: 4px 4px 0px var(--wdf-ink);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background-color: var(--wdf-bg);
	background-image:
		linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
	background-size: var(--wdf-grid-size) var(--wdf-grid-size);
	color: var(--wdf-ink);
	font-family: var(--wdf-font-body);
	font-size: 16px;
	line-height: 1.6;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.01em; margin: 0 0 0.5em; }
a { color: var(--wdf-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wdf-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Utility card — the reusable "workshop container" used everywhere */
.wdf-card {
	background: #ffffff;
	border: var(--wdf-border);
	box-shadow: var(--wdf-shadow);
	padding: 24px;
	margin-bottom: 24px;
}

.wdf-tag {
	display: inline-block;
	font-family: var(--wdf-font-mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: var(--wdf-ink);
	color: #fff;
	padding: 4px 10px;
	margin: 0 6px 6px 0;
}
.wdf-tag--accent { background: var(--wdf-accent); }

.wdf-btn {
	display: inline-block;
	font-family: var(--wdf-font-mono);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 12px 22px;
	border: var(--wdf-border);
	box-shadow: var(--wdf-shadow);
	background: #fff;
	color: var(--wdf-ink);
	cursor: pointer;
	transition: transform 0.08s ease;
}
.wdf-btn:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0px var(--wdf-ink); }
.wdf-btn--primary { background: var(--wdf-accent); color: #fff; }
.wdf-btn--ghost { background: transparent; box-shadow: none; }

/* Header */
.wdf-site-header {
	border-bottom: var(--wdf-border);
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
}
.wdf-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
}
.wdf-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--wdf-ink); }
.wdf-logo svg { height: 28px; width: auto; }
.wdf-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.wdf-nav a { font-weight: 600; color: var(--wdf-ink); }

/* Hero / search */
.wdf-hero {
	text-align: center;
	padding: 64px 24px 48px;
}
.wdf-hero h1 { font-size: 40px; max-width: 720px; margin: 0 auto 12px; }
.wdf-hero p.wdf-lede { font-size: 18px; color: #475569; max-width: 620px; margin: 0 auto 32px; }

.wdf-fault-finder {
	display: flex;
	max-width: 560px;
	margin: 0 auto 40px;
	border: var(--wdf-border);
	box-shadow: var(--wdf-shadow);
	background: #fff;
}
.wdf-fault-finder input {
	flex: 1;
	border: none;
	padding: 16px;
	font-size: 16px;
	font-family: var(--wdf-font-body);
}
.wdf-fault-finder input:focus { outline: none; }
.wdf-fault-finder button {
	border: none;
	border-left: var(--wdf-border);
	background: var(--wdf-accent);
	color: #fff;
	font-weight: 700;
	padding: 0 24px;
	cursor: pointer;
}

/* Appliance grid */
.wdf-appliance-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 32px 0 56px;
}
.wdf-appliance-card {
	background: #fff;
	border: var(--wdf-border);
	box-shadow: var(--wdf-shadow);
	padding: 24px 20px;
	text-align: center;
	color: var(--wdf-ink);
	transition: transform 0.08s ease;
}
.wdf-appliance-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0px var(--wdf-ink); text-decoration: none; }
.wdf-appliance-card__icon { font-size: 32px; margin-bottom: 8px; display: block; }
.wdf-appliance-card__name { font-weight: 700; font-size: 15px; }
.wdf-appliance-card__count { font-family: var(--wdf-font-mono); font-size: 12px; color: #64748b; }

/* Guide list */
.wdf-guide-list { display: grid; gap: 20px; margin: 24px 0 48px; }
.wdf-guide-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: var(--wdf-border);
	box-shadow: 3px 3px 0px var(--wdf-ink);
	padding: 18px 20px;
}
.wdf-guide-row h3 { font-size: 17px; margin: 0 0 4px; }
.wdf-guide-row p { margin: 0; color: #475569; font-size: 14px; }

/* Single guide */
.wdf-guide-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.wdf-guide-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.wdf-safety-callout {
	border: 2px solid var(--wdf-warn);
	background: #fef2f2;
	padding: 20px;
	margin: 24px 0;
	box-shadow: 4px 4px 0px var(--wdf-warn);
}
.wdf-safety-callout h3 { color: var(--wdf-warn); margin-bottom: 8px; }
.wdf-diy-ok-callout {
	border: 2px solid var(--wdf-safe);
	background: #f0fdf4;
	padding: 20px;
	margin: 24px 0;
	box-shadow: 4px 4px 0px var(--wdf-safe);
}
.wdf-diy-ok-callout h3 { color: var(--wdf-safe); margin-bottom: 8px; }

.wdf-guide-content h2 { font-size: 22px; margin-top: 32px; border-bottom: var(--wdf-border); padding-bottom: 8px; }
.wdf-guide-content ol, .wdf-guide-content ul { padding-left: 22px; }
.wdf-guide-content li { margin-bottom: 8px; }

/* Cookie banner */
.wdf-cookie-banner {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	background: var(--wdf-ink);
	color: #fff;
	z-index: 999;
	border-top: 3px solid var(--wdf-accent);
}
.wdf-cookie-banner__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.wdf-cookie-banner p { margin: 0; font-size: 14px; max-width: 640px; }
.wdf-cookie-banner a { color: #fdba74; }
.wdf-cookie-banner__actions { display: flex; gap: 10px; }
.wdf-cookie-banner .wdf-btn { box-shadow: none; padding: 10px 18px; }
.wdf-cookie-banner .wdf-btn--ghost { color: #fff; border-color: #fff; }

/* Footer */
.wdf-site-footer {
	border-top: var(--wdf-border);
	background: #fff;
	margin-top: 64px;
	padding: 40px 24px;
}
.wdf-site-footer__inner {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	font-size: 14px;
	color: #475569;
}
.wdf-site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }

/* Ad slots */
.wdf-ad-slot { margin: 24px 0; text-align: center; }

/* Amazon affiliate product link — the small "Ad" label is deliberately
   always visible next to the link text, not hidden in a tooltip or footer
   note, per ASA affiliate marketing disclosure guidance. */
.wdf-amazon-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: var(--wdf-border);
	box-shadow: 3px 3px 0px var(--wdf-ink);
	padding: 10px 16px;
	font-weight: 600;
	font-size: 14px;
	color: var(--wdf-ink) !important;
	margin: 4px 0;
}
.wdf-amazon-link:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 5px 5px 0px var(--wdf-ink); }
.wdf-amazon-link__ad-label {
	font-family: var(--wdf-font-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #e2e8f0;
	color: #475569;
	padding: 2px 6px;
	border-radius: 2px;
}

/* Sticky note — tilted post-it element, per the shared ReturnDeck design
   system (Build Rule 01: "tilted post-it sticky notes"). Used here for
   quick-tip callouts inside guide content. Alternates tilt direction via
   the --alt modifier so a run of several notes doesn't look mechanically
   repetitive. */
.wdf-sticky-note {
	position: relative;
	display: block;
	max-width: 340px;
	margin: 28px auto;
	padding: 20px 22px;
	background: #fde68a;
	border: var(--wdf-border);
	box-shadow: var(--wdf-shadow);
	font-family: var(--wdf-font-mono);
	font-size: 14px;
	line-height: 1.5;
	color: var(--wdf-ink);
	transform: rotate(-2.5deg);
}
.wdf-sticky-note--alt {
	background: #bbf7d0;
	transform: rotate(2deg);
}
.wdf-sticky-note__label {
	display: block;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 11px;
	margin-bottom: 6px;
	color: var(--wdf-accent-dark);
}

/* Responsive */
@media (max-width: 720px) {
	.wdf-site-header__inner { flex-direction: column; gap: 12px; }
	.wdf-nav ul { gap: 12px; flex-wrap: wrap; justify-content: center; }
	.wdf-hero { padding: 40px 16px 32px; }
	.wdf-hero h1 { font-size: 26px; }
	.wdf-hero p.wdf-lede { font-size: 16px; }
	.wdf-fault-finder { flex-direction: column; max-width: 100%; }
	.wdf-fault-finder input { border-bottom: var(--wdf-border); padding: 14px; }
	.wdf-fault-finder button { border-left: none; padding: 14px; width: 100%; }
	.wdf-guide-row { flex-direction: column; align-items: flex-start; }
	.wdf-guide-layout { grid-template-columns: 1fr; gap: 24px; }
	.wdf-site-footer__inner { flex-direction: column; gap: 28px; }
	.wdf-appliance-grid { gap: 14px; }
	.wdf-sticky-note { max-width: 100%; transform: rotate(0deg); }
}
