/* =============================================================================
   Escape Linktree — Frontend Styles
   Mobile-first. No framework. No theme dependency.
   ============================================================================= */

/* --- Fonts ------------------------------------------------------------------ */
@font-face {
	font-family: "Escape Font";
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: url(https://escapetrailer.com/wp-content/uploads/2020/12/TamworthGothic.eot);
	src: url(https://escapetrailer.com/wp-content/uploads/2020/12/TamworthGothic.eot?#iefix) format("embedded-opentype"),
	     url(https://escapetrailer.com/wp-content/uploads/2020/12/TamworthGothic.woff2) format("woff2"),
	     url(https://escapetrailer.com/wp-content/uploads/2020/12/TamworthGothic.woff) format("woff"),
	     url(https://escapetrailer.com/wp-content/uploads/2020/12/TamworthGothic.ttf) format("truetype"),
	     url(https://escapetrailer.com/wp-content/uploads/2020/12/TamworthGothic.svg#TamworthGothic–EscapeFont) format("svg");
}

/* --- Reset & Base ----------------------------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	background: #0a0a0a;
	color: #fff;
	min-height: 100vh;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
}

/* --- Video / Static Background --------------------------------------------- */
.elt-video-bg {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
}

.elt-static-bg {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.elt-no-bg {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.elt-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 1;
	pointer-events: none;
}

/* --- Main Wrapper ----------------------------------------------------------- */
.elt-wrap {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	max-width: 480px;
	margin: 0 auto;
	padding: 2.5rem 1.125rem 5rem;
}

/* --- Header ----------------------------------------------------------------- */
.elt-header {
	text-align: center;
	margin-bottom: 1.75rem;
}

.elt-logo-link {
	display: block;
	width: 55%;
	margin: 0 auto 0.875rem;
}

.elt-logo-link:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.7);
	outline-offset: 4px;
	border-radius: 4px;
}

.elt-logo {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.elt-site-name {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	letter-spacing: -0.02em;
}

.elt-desc {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 1rem;
	max-width: 300px;
	margin-left: auto;
	margin-right: auto;
}

/* --- Social Icons ----------------------------------------------------------- */
.elt-socials {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-top: 0.875rem;
}

.elt-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background 0.2s ease, transform 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.elt-social-link:hover,
.elt-social-link:focus-visible {
	background: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
	outline: none;
}

.elt-social-link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
}

/* --- Mode Toggle ------------------------------------------------------------ */
.elt-toggle {
	display: flex;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50px;
	padding: 4px;
	margin-bottom: 1.75rem;
	gap: 4px;
}

.elt-toggle-btn {
	flex: 1;
	padding: 0.6rem 1rem;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: 46px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	min-height: 44px;
}

.elt-toggle-btn.active,
.elt-toggle-btn[aria-selected="true"] {
	background: #fff;
	color: #111;
}

.elt-toggle-btn:not(.active):hover {
	color: rgba(255, 255, 255, 0.9);
}

/* --- Panels ----------------------------------------------------------------- */
.elt-panel {
	display: none;
}

.elt-panel.active,
.elt-panel:not([hidden]) {
	display: block;
}

.elt-empty {
	text-align: center;
	color: rgba(255, 255, 255, 0.4);
	padding: 2rem 0;
	font-size: 0.875rem;
}

/* --- Simple Links ----------------------------------------------------------- */
.elt-link {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	padding: 0.9375rem 1.125rem;
	margin-bottom: 0.75rem;
	color: #fff;
	transition: background 0.2s ease, transform 0.1s ease;
	-webkit-tap-highlight-color: transparent;
	min-height: 56px;
}

.elt-link:hover,
.elt-link:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	outline: none;
}

.elt-link:active {
	transform: scale(0.98);
}

.elt-link-img {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.08);
}

.elt-link-text {
	flex: 1;
	min-width: 0;
}

.elt-link-title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.elt-link-desc {
	display: block;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.65);
	margin-top: 0.2rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.elt-link-arrow {
	flex-shrink: 0;
	opacity: 0.45;
	margin-left: auto;
	transition: opacity 0.2s, transform 0.2s;
}

.elt-link:hover .elt-link-arrow {
	opacity: 0.8;
	transform: translateX(2px);
}

/* --- Featured Links (poster card) ------------------------------------------ */
.elt-featured-card {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	text-decoration: none;
	color: #fff;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.elt-featured-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.elt-featured-card:active {
	transform: scale(0.985);
}

.elt-featured-card-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.elt-featured-card-img--placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: rgba(255, 255, 255, 0.06);
	display: block;
}

.elt-featured-caption {
	background: #1a1a1a;
	padding: 0.6875rem 1.125rem;
	text-align: center;
}

.elt-featured-title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.elt-featured-desc {
	display: block;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 0.2rem;
}

/* --- Slider ----------------------------------------------------------------- */
.elt-slider-wrap {
	margin-top: 1.75rem;
	margin-bottom: 2rem;
}

.elt-slider-label {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-family: "Escape Font", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1.25rem;
	white-space: nowrap;
	line-height: 1;
}

.elt-slider-label::before,
.elt-slider-label::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.35));
}

.elt-slider-label::after {
	background: linear-gradient(to left, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.35));
}

.elt-slider-viewport {
	position: relative;
}

/* Arrow nav — hover-capable pointers only (hidden on touch) */
.elt-slider-nav {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	.elt-slider-nav {
		display: flex;
		position: absolute;
		top: 0;
		bottom: 1rem; /* leaves slide title visible */
		width: 44px;
		align-items: center;
		justify-content: center;
		border: none;
		background: linear-gradient(to right, rgba(0,0,0,0.55), rgba(0,0,0,0));
		color: #fff;
		cursor: pointer;
		z-index: 2;
		opacity: 0;
		transition: opacity 0.2s ease;
		-webkit-tap-highlight-color: transparent;
		padding: 0;
	}

	.elt-slider-nav--prev {
		left: 0;
		border-radius: 12px 0 0 12px;
	}

	.elt-slider-nav--next {
		right: 0;
		background: linear-gradient(to left, rgba(0,0,0,0.55), rgba(0,0,0,0));
		border-radius: 0 12px 12px 0;
	}

	.elt-slider-viewport:hover .elt-slider-nav:not([hidden]) {
		opacity: 1;
	}

	.elt-slider-nav:hover {
		background-color: rgba(0, 0, 0, 0.25);
	}

	.elt-slider-nav[hidden] {
		display: none;
	}
}

.elt-slider {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.375rem;
	scrollbar-width: none;
	cursor: grab;
}

.elt-slider::-webkit-scrollbar {
	display: none;
}

.elt-slider:active {
	cursor: grabbing;
}

.elt-slide {
	flex: 0 0 136px;
	scroll-snap-align: start;
}

.elt-slide a {
	display: block;
	-webkit-tap-highlight-color: transparent;
}

.elt-slide-img {
	width: 100%;
	aspect-ratio: 36 / 64;
	border-radius: 12px;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.08);
	display: block;
	transition: opacity 0.2s;
}

.elt-slide a:hover .elt-slide-img {
	opacity: 0.88;
}

.elt-slide-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0.5rem;
	background: rgba(255, 255, 255, 0.1);
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
}

.elt-slide-title {
	font-size: 0.78125rem;
	font-weight: 600;
	margin-top: 0.4rem;
	text-align: center;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.85);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- Category Filters ------------------------------------------------------- */
.elt-cat-filters {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.375rem;
	margin-bottom: 1rem;
	scrollbar-width: none;
}

.elt-cat-filters::-webkit-scrollbar {
	display: none;
}

.elt-cat-btn {
	flex-shrink: 0;
	padding: 0.375rem 0.875rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	white-space: nowrap;
	min-height: 36px;
	-webkit-tap-highlight-color: transparent;
}

.elt-cat-btn.active {
	background: rgba(255, 255, 255, 0.9);
	color: #111;
	border-color: transparent;
}

.elt-cat-btn:hover:not(.active) {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}

/* --- Product Grid ----------------------------------------------------------- */
.elt-products {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.elt-product {
	display: block;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	overflow: hidden;
	color: #fff;
	transition: background 0.2s ease, transform 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}

.elt-product:hover {
	background: rgba(255, 255, 255, 0.15);
}

.elt-product:active {
	transform: scale(0.97);
}

.elt-product-img {
	width: 100%;
	aspect-ratio: 520 / 312; /* escape_trailer_card */
	object-fit: cover;
	display: block;
	background: rgba(255, 255, 255, 0.05);
}

.elt-product-img--placeholder {
	width: 100%;
	aspect-ratio: 520 / 312;
	background: rgba(255, 255, 255, 0.06);
}

.elt-product-info {
	padding: 0.5625rem 0.6875rem 0.6875rem;
}

.elt-product-title {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 0.25rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.elt-product-meta {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 0.25rem;
	line-height: 1.3;
}

.elt-product-price {
	font-size: 0.875rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
}

/* WooCommerce del/ins price overrides */
.elt-product-price del {
	opacity: 0.55;
	font-weight: 400;
	font-size: 0.75rem;
}

.elt-product-price ins {
	text-decoration: none;
}

/* --- Shop States ------------------------------------------------------------ */
.elt-load-trigger {
	height: 1px;
	margin-top: 1.5rem;
}

.elt-loading,
.elt-no-more {
	text-align: center;
	padding: 1.5rem 0 0.5rem;
	font-size: 0.8125rem;
}

.elt-loading {
	color: rgba(255, 255, 255, 0.55);
}

.elt-no-more {
	color: rgba(255, 255, 255, 0.3);
}

/* --- Escape Trailer Card overrides (dark theme) ---------------------------- */
.elt-products .escape_trailer_card {
	background-color: rgba(0, 0, 0, 0.45);
}

.elt-products .escape_trailer_card:hover {
	background-color: rgba(0, 0, 0, 0.65);
}

/* --- Focus Visible (Accessibility) ----------------------------------------- */
:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.7);
	outline-offset: 2px;
}

/* --- Responsive tweaks ----------------------------------------------------- */
@media (min-width: 360px) {
	.elt-wrap {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

@media (min-width: 480px) {
	.elt-wrap {
		padding-top: 3rem;
		padding-bottom: 6rem;
	}
	.elt-slide {
		flex-basis: 148px;
	}
}

/* --- Reduced Motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	.elt-video-bg {
		display: none;
	}
}
