/* ============================================================
   Custom Wireframe Homepage ΓÇö scoped styles
   Registered by page-templates/template-wireframe-home.php
   Uses ignavo theme tokens (typography, colors, border radius).
   ============================================================ */

#wireframe-home {
	--wf-accent: #00bfa6;
	--wf-accent-hover: #0d2b2b;
	--wf-dark: #0d2b2b;
	--wf-coral: #ff7a59;
	--wf-light: #f3f7f6;
	--wf-muted: #5c7a76;
	--wf-border: rgba(13, 43, 43, 0.14);
	--wf-radius: 12px;
}

/* ---------- Search section ---------- */
#wireframe-home .wf-search-section {
	background: var(--wf-light);
	padding-top: 42px;
	padding-bottom: 42px;
}

#wireframe-home .wf-search-wrap {
	max-width: 680px;
	margin: 0 auto;
}

#wireframe-home .wf-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 7px 7px 24px;
	border: 1px solid var(--wf-border);
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 4px 18px rgba(13, 43, 43, 0.08);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#wireframe-home .wf-search-form:focus-within {
	border-color: rgba(0, 191, 166, 0.6);
	box-shadow: 0 0 0 4px rgba(0, 191, 166, 0.16), 0 4px 18px rgba(13, 43, 43, 0.08);
}

#wireframe-home .wf-search-form .search-input {
	flex: 1 1 auto;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 0;
	border: 0;
	outline: none;
	background: transparent;
	font-family: var(--theme-body-font, inherit);
	font-size: 1rem;
	color: var(--wf-dark);
}

#wireframe-home .wf-search-form .search-input::placeholder {
	color: var(--wf-muted);
	opacity: 1;
}

#wireframe-home .wf-search-submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 999px;
	background: var(--wf-accent);
	color: #ffffff;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

#wireframe-home .wf-search-submit:hover {
	background: var(--wf-accent-hover);
}

/* ---------- Cards section (native .site-banner grid) ---------- */
#wireframe-home .wf-cards-section {
	padding-top: 46px;
	padding-bottom: 60px;
}

#wireframe-home .wf-banner-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* Equal fixed-height cards — sized for up to 3 title lines (mirrors --h media values) */
#wireframe-home .wf-banner-grid > .site-banner {
	height: 240px;
}

@media (min-width: 768px) {
	#wireframe-home .wf-banner-grid > .site-banner {
		height: 340px;
	}
}

@media (min-width: 1024px) {
	#wireframe-home .wf-banner-grid > .site-banner {
		height: 320px;
	}
}

/* Cap the native lg:text-7xl headline so it fits a 1/3-width card */
@media (min-width: 1024px) {
	#wireframe-home .wf-banner-grid .site-banner .entry-title {
		font-size: 2rem;
	}
}

/* ---------- Responsive: stack cards on mobile ---------- */
@media (max-width: 768px) {
	#wireframe-home .wf-search-section {
		padding-top: 26px;
		padding-bottom: 26px;
	}

	#wireframe-home .wf-search-wrap {
		max-width: 100%;
	}

	#wireframe-home .wf-search-form {
		padding-left: 18px;
	}

	#wireframe-home .wf-cards-section {
		padding-top: 30px;
		padding-bottom: 40px;
	}

	#wireframe-home .wf-banner-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* ---------- Dark gradient overlay behind banner text for legibility ---------- */
#wireframe-home .wf-banner-grid .site-banner {
	position: relative;
}

#wireframe-home .wf-banner-grid .site-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	border-radius: inherit;
	background: linear-gradient(to right, rgba(13, 43, 43, 0.75) 0%, rgba(13, 43, 43, 0.15) 60%, transparent 100%);
}

/* Ensure banner content sits above the overlay */
#wireframe-home .wf-banner-grid .site-banner-content {
	position: relative;
	z-index: 2;
}

/* Cap banner subtext at 2 lines so tall copy can't push buttons
   past the card's overflow:hidden boundary */
#wireframe-home .wf-banner-grid .site-banner .entry-excerpt,
#wireframe-home .wf-banner-grid .site-banner .entry-excerpt p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* Cap banner titles at 3 lines so long copy can't break the fixed-height cards */
#wireframe-home .wf-banner-grid .site-banner .entry-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

/* ---------- Live autocomplete dropdown ---------- */
#wireframe-home .wf-search-wrap { position: relative; }

#wireframe-home .wf-suggest {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 60;
	margin: 0;
	padding: 6px;
	background: #ffffff;
	border: 1px solid var(--wf-border);
	border-radius: 16px;
	box-shadow: 0 14px 40px rgba(13, 43, 43, 0.14);
	overflow: hidden;
}

#wireframe-home .wf-suggest-list {
	max-height: 420px;
	overflow-y: auto;
}

#wireframe-home .wf-suggest-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--wf-dark);
	transition: background 0.15s ease;
}

#wireframe-home .wf-suggest-item:hover,
#wireframe-home .wf-suggest-item.is-active {
	background: var(--wf-light);
}

#wireframe-home .wf-suggest-thumb {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--wf-light);
}

#wireframe-home .wf-suggest-meta {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

#wireframe-home .wf-suggest-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#wireframe-home .wf-suggest-foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

#wireframe-home .wf-suggest-sku {
	font-size: 0.72rem;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--wf-muted);
}

#wireframe-home .wf-suggest-price {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wf-accent);
}

#wireframe-home .wf-suggest-footer {
	display: block;
	padding: 10px 12px 8px;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wf-accent);
	text-decoration: none;
	border-top: 1px solid var(--wf-border);
}

#wireframe-home .wf-suggest-footer:hover { color: var(--wf-accent-hover); }

#wireframe-home .wf-suggest-empty {
	padding: 14px 18px;
	font-size: 0.9rem;
	color: var(--wf-muted);
}
