/* Feature-ID: HOT-SEARCH-SHARED-001 -- Shared Searcher and Cam Hot Search presentation. */
/* Feature-ID: HOT-SEARCH-SHARED-003 -- Keep category cards compact while sharing one keyword surface. */
.wpst-hot-search {
	--wpst-hot-search-accent: var(--ui-accent, var(--wpst-main-color, #ef4b88));
	--ui-disclosure-accent: var(--wpst-hot-search-accent);
	--wpst-hot-search-card-surface: var(--ui-surface, rgba(255, 255, 255, 0.035));
	font-family: var(--ui-font-family-body, Arial, Helvetica, sans-serif);
}

.wpst-hot-search__header {
	align-items: flex-end;
	display: flex;
	gap: var(--ui-space-6, 24px);
	justify-content: space-between;
	margin-bottom: var(--ui-section-content-gap);
	margin-top: var(--ui-section-upper-gap);
}

.wpst-hot-search__copy {
	display: flex;
	flex-direction: column;
	gap: var(--ui-section-content-gap);
}

.wpst-hot-search__eyebrow {
	color: var(--wpst-hot-search-accent);
	font-size: var(--ui-font-size-xs, 0.75rem);
	font-weight: var(--ui-font-weight-bold, 700);
	letter-spacing: normal;
	line-height: var(--ui-line-meta, 1.35);
	margin: 0;
	text-transform: uppercase;
}

.wpst-hot-search__header .ui-section-title,
.wpst-hot-search__description {
	margin: 0;
}

.wpst-hot-search__content[hidden] {
	display: none;
}

.wpst-hot-search__description {
	color: var(--ui-text-muted, #8d9199);
	max-width: 620px;
}

.wpst-hot-search__actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: var(--ui-space-2, 8px);
}

.wpst-hot-search__count {
	color: var(--ui-text-muted, #8d9199);
	font-size: var(--ui-font-size-xs, 0.75rem);
	font-variant-numeric: tabular-nums;
}

.wpst-hot-search__count {
	margin-right: var(--ui-space-2, 8px);
}

html body button.wpst-hot-search__nav {
	align-items: center;
	background-color: transparent !important;
	border: 1px solid var(--ui-border, rgba(255, 255, 255, 0.12)) !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	color: var(--ui-text-secondary, #d0d2d4) !important;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 38px;
	font-family: inherit;
	height: 38px;
	justify-content: center;
	margin: 0;
	padding: 0 !important;
	position: static;
	transform: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
	width: 38px;
}

html body button.wpst-hot-search__nav:hover,
html body button.wpst-hot-search__nav:focus-visible {
	background-color: var(--ui-surface-hover, rgba(255, 255, 255, 0.08)) !important;
	border-color: var(--ui-border-strong, rgba(255, 255, 255, 0.24)) !important;
	color: var(--ui-text, #f5f5f5) !important;
	filter: none;
	outline: 0;
	transform: translateY(-1px);
}

html body button.wpst-hot-search__nav:disabled {
	cursor: default;
	opacity: 0.35;
	transform: none;
}

.wpst-hot-search__rail {
	box-sizing: border-box;
	margin: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding-top: 3px;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	touch-action: pan-x pinch-zoom;
}

.wpst-hot-search__rail::-webkit-scrollbar {
	display: none;
}

.wpst-hot-search__track {
	align-items: center;
	display: flex;
	gap: 14px;
	list-style: none;
	margin: 0;
	overflow: visible;
	padding: 0;
	width: max-content;
}

.wpst-hot-search__card,
.wpst-hot-search__card:nth-child(n) {
	align-items: stretch;
	background: var(--ui-surface, rgba(255, 255, 255, 0.035));
	border: 1px solid var(--ui-border, rgba(255, 255, 255, 0.12));
	border-radius: var(--ui-radius-md, 8px);
	box-sizing: border-box;
	display: grid;
	flex: 0 0 auto;
	grid-template-columns: var(--ui-icon-box, 24px) max-content auto;
	grid-template-rows: auto;
	height: auto;
	margin: 0;
	max-width: max-content;
	min-width: 0;
	overflow: hidden;
	padding: calc(var(--ui-space-5, 20px) / 2);
	position: relative;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.wpst-hot-search__card:hover,
.wpst-hot-search__card:focus-within {
	--wpst-hot-search-card-surface: var(--ui-surface-hover, rgba(255, 255, 255, 0.08));
	background: var(--wpst-hot-search-card-surface);
	border-color: var(--ui-border-strong, rgba(255, 255, 255, 0.24));
	transform: translateY(-3px);
}

.wpst-hot-search__card.has-overflow:not(.is-at-end)::after {
	background: linear-gradient(to bottom, color-mix(in srgb, var(--wpst-hot-search-card-surface) 0%, transparent), var(--wpst-hot-search-card-surface) 88%);
	bottom: calc(var(--ui-space-5, 20px) / 2);
	content: '';
	height: 30px;
	left: calc(var(--ui-space-5, 20px) / 2);
	pointer-events: none;
	position: absolute;
	right: calc(var(--ui-space-5, 20px) / 2);
	z-index: 1;
}

.wpst-hot-search__card.is-selected {
	border-color: color-mix(in srgb, var(--wpst-hot-search-accent) 72%, #fff);
	box-shadow: none;
}

.wpst-hot-search__card-head {
	display: contents;
}

.wpst-hot-search__icon {
	align-items: center;
	background: var(--ui-surface-hover, rgba(255, 255, 255, 0.08));
	border-radius: 6px;
	color: var(--ui-text-secondary, #d0d2d4);
	display: inline-flex;
	font-size: var(--ui-font-size-xs, 0.75rem);
	grid-column: 1;
	align-self: center;
	grid-row: 1;
	height: var(--ui-icon-box, 24px);
	justify-content: center;
	width: var(--ui-icon-box, 24px);
}

html body .wpst-hot-search__card.is-selected .wpst-hot-search__icon {
	background: var(--ui-surface-hover, rgba(255, 255, 255, 0.08));
	color: var(--ui-text-secondary, #d0d2d4);
}

.wpst-hot-search__index {
	color: var(--ui-text-muted, #8d9199);
	font-size: var(--ui-font-size-xs, 0.75rem);
	font-variant-numeric: tabular-nums;
	font-weight: var(--ui-font-weight-bold, 700);
	grid-column: 3;
	align-self: center;
	grid-row: 1;
	justify-self: end;
}

.wpst-hot-search__card-title {
	align-self: center;
	color: var(--ui-text, #f5f5f5);
	display: block;
	grid-column: 2;
	grid-row: 1;
	font-size: var(--ui-font-size-body, 0.875rem);
	font-weight: var(--ui-font-weight-regular, 400);
	line-height: var(--ui-line-title, 1.25);
	margin: 0 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpst-hot-search__card.is-selected .wpst-hot-search__card-title {
	font-weight: var(--ui-font-weight-bold, 700);
}

.wpst-hot-search__terms {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
	align-content: flex-start;
	align-items: stretch;
	justify-content: flex-start;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 !important;
	scroll-snap-type: none;
	scrollbar-width: none;
	touch-action: pan-y;
}

.wpst-hot-search__terms::-webkit-scrollbar {
	display: none;
}

.wpst-hot-search__card > .wpst-hot-search__terms {
	display: none;
}

.wpst-hot-search__shared-panel {
	background: var(--ui-surface, rgba(255, 255, 255, 0.035));
	border: 1px solid var(--ui-border, rgba(255, 255, 255, 0.12));
	border-radius: var(--ui-radius-md, 8px);
	box-sizing: border-box;
	/* Feature-ID: HOT-SEARCH-SHARED-005 -- Show four full keyword rows and
	 * half of the next row so the shared panel advertises vertical scrolling. */
	max-height: 180px;
	margin-top: var(--ui-section-content-gap);
	min-height: 86px;
	overflow-x: hidden;
	overflow-y: auto;
	padding: calc(var(--ui-space-5, 20px) / 2);
	scrollbar-width: none;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.wpst-hot-search__shared-panel::-webkit-scrollbar {
	display: none;
}

.wpst-hot-search__shared-panel:hover,
.wpst-hot-search__shared-panel:focus-within {
	background: var(--ui-surface-hover, rgba(255, 255, 255, 0.08));
	border-color: var(--ui-border-strong, rgba(255, 255, 255, 0.24));
}

.wpst-hot-search__shared-panel > .wpst-hot-search__terms {
	display: flex;
	flex-direction: column;
	gap: var(--ui-space-4, 16px);
	overflow: visible;
	padding: 0 !important;
}

.wpst-hot-search__shared-panel > .wpst-hot-search__terms > .wpst-hot-search__group {
	margin: 0;
}

.wpst-hot-search__group {
	flex: 0 0 auto;
	margin: 0 0 var(--ui-space-3, 12px);
	width: 100%;
}

.wpst-hot-search__group:last-child {
	margin-bottom: 0;
}

.wpst-hot-search__group-title {
	color: var(--ui-text-muted, #8d9199);
	font-size: var(--ui-font-size-2xs, 0.6875rem);
	font-weight: var(--ui-font-weight-semibold, 600);
	line-height: var(--ui-line-meta, 1.35);
	margin: 0 0 6px;
	text-transform: uppercase;
}

.wpst-hot-search__keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

html body button.wpst-hot-search__keyword {
	background-color: color-mix(in srgb, var(--ui-surface-hover, #262626) 82%, transparent) !important;
	border: 1px solid var(--ui-border-strong, #454545) !important;
	border-radius: var(--ui-radius-pill, 999px) !important;
	box-shadow: none !important;
	color: var(--ui-text-secondary, #ccc) !important;
	cursor: pointer;
	font-family: var(--ui-font-family-body, Arial, Helvetica, sans-serif) !important;
	font-size: var(--ui-font-size-tag, 0.875rem) !important;
	font-weight: var(--ui-font-weight-bold, 700) !important;
	line-height: 1.25 !important;
	margin: 0;
	min-height: 34px;
	padding: 6px var(--ui-space-3, 12px) !important;
	text-align: left;
	text-transform: none !important;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

/* Feature-ID: HOT-SEARCH-FILTER-PILL-001 -- One filter pill treatment for Hot Search collections and Hot Models. */
html body button.wpst-hot-search__filter,
html body .wpst-hot-search__card.wpst-hot-search__filter {
	align-items: center;
	background-color: color-mix(in srgb, var(--ui-surface-hover, #262626) 82%, transparent) !important;
	border: 1px solid var(--ui-border-strong, #454545) !important;
	border-radius: var(--ui-radius-pill, 999px) !important;
	box-shadow: none !important;
	color: var(--ui-text-secondary, #ccc) !important;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	flex-direction: row;
	font-family: var(--ui-font-family-body, Arial, Helvetica, sans-serif) !important;
	font-size: var(--ui-font-size-tag, 0.875rem) !important;
	font-weight: var(--ui-font-weight-bold, 700) !important;
	gap: var(--ui-space-2, 8px);
	line-height: 1.25 !important;
	margin: 0;
	min-height: 34px;
	height: auto !important;
	max-width: max-content;
	min-width: 0;
	overflow: visible;
	padding: 6px var(--ui-space-3, 12px) !important;
	text-align: left;
	text-transform: none !important;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
	white-space: nowrap;
}

.wpst-hot-search__filter-icon {
	background: transparent !important;
	border-radius: 0 !important;
	color: currentColor;
	flex: 0 0 auto;
	font-size: var(--ui-font-size-xs, 0.75rem);
	height: auto !important;
	margin: 0;
	padding: 0;
	width: auto !important;
}

.wpst-hot-search__card.wpst-hot-search__filter .wpst-hot-search__card-title {
	align-self: center;
	color: inherit;
	font: inherit;
	margin: 0;
	overflow: visible;
	text-overflow: clip;
	white-space: nowrap;
}

html body button.wpst-hot-search__filter:hover,
html body button.wpst-hot-search__filter:focus-visible,
html body .wpst-hot-search__card.wpst-hot-search__filter:hover,
html body .wpst-hot-search__card.wpst-hot-search__filter:focus-within {
	background-color: var(--ui-surface-active, #303030) !important;
	border-color: color-mix(in srgb, var(--ui-border-strong, #454545) 75%, #fff) !important;
	color: var(--ui-text, #f5f5f5) !important;
	outline: 0;
	transform: translateY(-1px);
}

html body button.wpst-hot-search__filter.is-active,
html body .wpst-hot-search__card.wpst-hot-search__filter.is-selected {
	background-color: color-mix(in srgb, var(--ui-surface-hover, #262626) 82%, transparent) !important;
	border-color: var(--ui-text, #f5f5f5) !important;
	color: var(--ui-text, #f5f5f5) !important;
}

html body button.wpst-hot-search__keyword:hover,
html body button.wpst-hot-search__keyword:focus-visible {
	background-color: var(--ui-surface-active, #303030) !important;
	border-color: color-mix(in srgb, var(--ui-border-strong, #454545) 75%, #fff) !important;
	color: var(--ui-text, #f5f5f5) !important;
	outline: 0;
	transform: translateY(-1px);
}

html body button.wpst-hot-search__keyword.is-active {
	background-color: var(--wpst-hot-search-accent) !important;
	border-color: var(--wpst-hot-search-accent) !important;
	color: #fff !important;
}

/* Feature-ID: HOT-SEARCH-SHARED-004 -- Keep the active Live picks keyword on-brand. */
.wpst-lust-cam-hot-theme [data-hot-theme-selected-keyword] {
	color: var(--wpst-main-color, #ef4b88);
}

/* Feature-ID: HOT-SEARCH-SHARED-005 -- Reuse the page rhythm around live results. */
.wpst-lust-cam-hot-theme__results-head h3 {
	margin: 0;
}

.wpst-lust-cam-hot-theme__results > [data-hot-theme-status] {
	margin: var(--ui-space-3, 12px) 0 0;
}

.wpst-lust-cam-hot-theme__results > [data-hot-theme-grid]:not(:empty) {
	margin-top: var(--ui-section-content-gap);
}

@media only screen and (max-width: 767.98px) {
	.wpst-hot-search__header {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--ui-section-content-gap);
	}

	.wpst-hot-search__actions {
		width: 100%;
	}

	.wpst-hot-search__count {
		margin-right: auto;
	}

	html body button.wpst-hot-search__nav {
		flex-basis: 44px;
		height: 44px;
		min-height: 44px;
		width: 44px;
	}

	.wpst-hot-search__card,
	.wpst-hot-search__card:nth-child(n) {
		flex-basis: auto;
		max-width: calc(100vw - (var(--ui-space-4, 16px) * 2));
		padding: calc(var(--ui-space-4, 16px) / 2);
	}

	.wpst-hot-search__shared-panel {
		max-height: 220px;
		padding: calc(var(--ui-space-4, 16px) / 2);
	}

	.wpst-hot-search__shared-panel > .wpst-hot-search__terms {
		gap: var(--ui-space-4, 16px);
	}

	.wpst-hot-search__card.has-overflow:not(.is-at-end)::after {
		bottom: calc(var(--ui-space-4, 16px) / 2);
		left: calc(var(--ui-space-4, 16px) / 2);
		right: calc(var(--ui-space-4, 16px) / 2);
	}

	html body button.wpst-hot-search__keyword,
	html body button.wpst-hot-search__filter,
	html body .wpst-hot-search__card.wpst-hot-search__filter {
		min-height: 44px;
		padding: var(--ui-space-2, 8px) var(--ui-space-3, 12px) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpst-hot-search__card,
	.wpst-hot-search__keyword,
	.wpst-hot-search__filter,
	.wpst-hot-search__nav,
	.wpst-hot-search__rail {
		scroll-behavior: auto;
	}
}
