/*
 * Silent Heroes — 404 page
 *
 * Dark hero (forest poster) z mocnym typografią, kod 404 jako outline
 * w czerwieni, mała grupa CTA, search box, popular links.
 *
 * Layout: 1 sekcja full-bleed do viewport height (lub auto na mobile),
 * content wycentrowany, czarne tło z fallbackiem na video poster.
 */

.sh-404-page {
	background: var(--sh-black);
}

/* ---- Hero ---- */
.sh-404-hero {
	position: relative;
	min-height: calc(100vh - 80px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--sh-black);
	background-image: url('../video/hero-forest-poster.jpg');
	background-size: cover;
	background-position: center;
	color: #fff;
}

.sh-404-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(5, 6, 8, .55) 0%,
		rgba(5, 6, 8, .82) 60%,
		rgba(5, 6, 8, .92) 100%
	);
	pointer-events: none;
}

.sh-404-inner {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 64px 20px 96px;
	max-width: 720px;
	margin: 0 auto;
}

/* ---- Kod 404: outline w czerwieni, mocny eyebrow ---- */
.sh-404-code {
	display: block;
	font-family: var(--sh-font-sans);
	font-size: clamp(110px, 22vw, 220px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 2px var(--sh-red);
	text-stroke: 2px var(--sh-red);
	margin-bottom: 12px;
	user-select: none;
}

/* ---- Tytuł ---- */
.sh-404-title {
	font-family: var(--sh-font-sans);
	font-size: clamp(28px, 5vw, 44px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: var(--sh-tracking-tight);
	color: #fff;
	margin: 0 0 16px;
}

.sh-404-lead {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .82);
	max-width: 480px;
	margin: 0 auto 32px;
}

/* ---- CTA ---- */
.sh-404-cta {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.sh-404-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* min-height: 48px usunięte 2026-06-01 — user: alignment z .store .sh-btn (padding-based). */
	padding: 12px 22px; /* identyczne z .sh-shop-hero .sh-btn i .sh-info-hero .sh-btn */
	font-family: var(--sh-font-sans);
	/* Zgodne ze standardowym .sh-btn sklepu: 13px / waga 500 / sentence-case /
	   brak letter-spacing / radius 6px. */
	font-size: 13px;
	font-weight: 400; /* user 2026-06-01: regular */
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
	border: 1px solid transparent;
	cursor: pointer;
}

.sh-404-btn--primary {
	background: var(--sh-red);
	color: #fff;
	border-color: var(--sh-red);
}
.sh-404-btn--primary:hover,
.sh-404-btn--primary:focus-visible {
	background: var(--sh-red-dark);
	border-color: var(--sh-red-dark);
}
/* :visited — globalna reguła a:visited nadpisywała kolor tekstu na ciemny;
   przycisk "Wróć do sklepu" (href=/sklep/) stawał się niewidoczny na czerwonym
   tle, gdy /sklep/ był już odwiedzony. Wymuszamy biały także dla visited
   (tak jak inne CTA motywu: cart, info, shop-hero). */
.sh-404-btn--primary:visited { color: #fff; }
.sh-404-btn--ghost:visited { color: #fff; }

.sh-404-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, .45);
}
.sh-404-btn--ghost:hover,
.sh-404-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, .08);
	border-color: #fff;
}

/* ---- Search ---- */
.sh-404-search {
	max-width: 420px;
	margin: 0 auto 32px;
}

.sh-404-search-label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: var(--sh-tracking-widest);
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
	margin-bottom: 10px;
}

.sh-404-search-row {
	display: flex;
	align-items: stretch;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: var(--sh-radius);
	overflow: hidden;
	transition: border-color .15s ease, background-color .15s ease;
}

.sh-404-search-row:focus-within {
	border-color: var(--sh-red);
	background: rgba(255, 255, 255, .12);
}

.sh-404-search-input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: 0;
	outline: 0;
	padding: 12px 14px;
	font-family: var(--sh-font-sans);
	font-size: 15px;
	color: #fff;
}

.sh-404-search-input::placeholder {
	color: rgba(255, 255, 255, .45);
}

.sh-404-search-submit {
	flex: 0 0 auto;
	background: var(--sh-red);
	border: 0;
	color: #fff;
	padding: 0 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .15s ease;
}

.sh-404-search-submit:hover,
.sh-404-search-submit:focus-visible {
	background: var(--sh-red-dark);
}

/* ---- Popular links ---- */
.sh-404-popular {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.sh-404-popular-label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: var(--sh-tracking-widest);
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}

.sh-404-popular-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 6px;
}

.sh-404-popular-list li {
	margin: 0;
	padding: 0;
}

.sh-404-popular-list li::before,
.sh-404-popular-list li::marker {
	content: none;
	display: none;
}

.sh-404-popular-list a {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 6px; /* user 2026-06-01: pill (--sh-radius-full) → rounded-md per brandbook v3 */
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.sh-404-popular-list a:hover,
.sh-404-popular-list a:focus-visible {
	background: rgba(255, 255, 255, .08);
	border-color: var(--sh-red);
	color: #fff;
}

/* ---- Mobile adjustments ---- */
@media (max-width: 600px) {
	.sh-404-hero {
		min-height: calc(100vh - 60px);
	}
	.sh-404-inner {
		padding: 40px 16px 60px;
	}
	.sh-404-code {
		-webkit-text-stroke-width: 1.5px;
		text-stroke-width: 1.5px;
	}
	.sh-404-cta {
		gap: 10px;
	}
	.sh-404-btn {
		/* min-height: 46px usunięte 2026-06-01 — padding-based, alignment z .store */
		padding: 10px 18px;
		font-size: 13px;
		flex: 1 1 auto; /* na bardzo wąskich obok siebie 50/50 */
		min-width: 140px;
	}
}
