/* =====================================================================
   Expoverse — Glassmorphism booth (company) menu, tinted to brand colour
   ---------------------------------------------------------------------
   CSS override for the booth proximity menu app.js renders (light-DOM
   .booth-ui*). app.js sets --palette-background-primary (company colour)
   and --palette-foreground-primary (computed black/white contrast) on
   the .booth-ui root; we tint the frosted glass with them. booth.js
   sanitises a malformed brand colour and drives the mobile toggle.
   Stock booth styles are re-asserted late, so visual overrides use
   !important. Delete this file + booth.js + their refs to revert.
   ===================================================================== */

/* container: float the panel inside the top-right; drop the harsh bar */
.booth-ui .top { border-bottom: none !important; }
.booth-ui .top-right { top: 16px !important; right: 16px !important; gap: 12px !important; }

/* ---- the glass panel: deep neutral glass lit by the company's colour ----
   A dark frosted panel (so white logo + white labels always read) with a soft
   brand-coloured glow at the top and a brand inner wash, plus the brand top
   bar. The colour shows as accent/glow rather than a flat tint, which reads
   far cleaner than panel-and-buttons-in-the-same-mud. */
.booth-ui .booth-ui-panel {
	position: relative !important;
	font-family: var(--expo-font-menu, 'Nunito', system-ui, sans-serif) !important;
	/* menu background = the company's SECONDARY colour as glass (a deepened
	   primary is used as the fallback when there's no distinct secondary) */
	--expo-menu-bg: var(--palette-background-secondary, color-mix(in srgb, var(--palette-background-primary, #1a2233) 58%, #0a0e18));
	background: linear-gradient(160deg,
		color-mix(in srgb, var(--expo-menu-bg) 82%, transparent),
		color-mix(in srgb, var(--expo-menu-bg) 60%, transparent)) !important;
	-webkit-backdrop-filter: blur(26px) saturate(160%) !important;
	backdrop-filter: blur(26px) saturate(160%) !important;
	border: 1px solid color-mix(in srgb, var(--expo-panel-ink, #ffffff) 22%, transparent) !important;
	border-radius: 20px !important;
	box-shadow:
		0 26px 64px rgba(0, 0, 0, .5),
		inset 0 1px 0 color-mix(in srgb, #ffffff 22%, transparent) !important;
	color: var(--expo-panel-ink, #eef2fb) !important;
	width: min(300px, calc(100vw - 32px)) !important;
	max-width: min(300px, calc(100vw - 32px)) !important;
	max-height: calc(100vh - 32px) !important;
	padding: 18px !important;
	gap: 14px !important;
	overflow: hidden !important;
	pointer-events: auto !important;
}

/* brand top sheen: primary -> secondary */
.booth-ui .booth-ui-panel::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--palette-background-primary, var(--expo-accent-1)), var(--palette-background-secondary, var(--expo-accent-2)));
	z-index: 2;
	pointer-events: none;
}

/* heading ("Welcome to") -> small eyebrow in the contrast colour */
.booth-ui .booth-ui-panel .booth-ui-panel-heading {
	font-family: var(--expo-font-menu, 'Nunito', system-ui, sans-serif) !important;
	font-size: 11.5px !important;
	font-weight: 800 !important;
	letter-spacing: .18em !important;
	text-transform: uppercase !important;
	text-align: center !important;
	line-height: 1.4 !important;
	color: color-mix(in srgb, var(--expo-panel-ink, #eef2fb) 62%, transparent) !important;
}

/* logo: white card + contain so ANY logo stays visible over a tint */
.booth-ui .booth-ui-panel .booth-ui-panel-logo-wrap {
	background: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, .6) !important;
	border-radius: 12px !important;
	min-height: 96px !important;
	padding: 16px !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6) !important;
}
.booth-ui .booth-ui-panel .booth-ui-panel-logo-wrap img {
	width: 100% !important; height: 100% !important;
	max-height: 110px !important;
	object-fit: contain !important;
	display: block !important;
}

/* label / blurb */
.booth-ui .booth-ui-panel .booth-ui-panel-label {
	font-family: var(--expo-font-menu, 'Nunito', system-ui, sans-serif) !important;
	color: color-mix(in srgb, var(--expo-panel-ink, #eef2fb) 82%, transparent) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
}

/* menu: glass buttons in the contrast colour (scroll if many) */
.booth-ui .booth-ui-panel .booth-ui-panel-menu {
	gap: 8px !important;
	flex: 1 1 auto !important;
	min-height: 0 !important;
	overflow-y: auto !important;
	scrollbar-width: none;
}
.booth-ui .booth-ui-panel .booth-ui-panel-menu::-webkit-scrollbar { width: 0; }
/* buttons = glassmorphism PILLS in the company's PRIMARY colour only. The label
   ink is auto-flipped dark/light by booth.js (--expo-menu-ink from the primary's
   luminance) so it stays legible whether the brand is pale or deep. */
.booth-ui .booth-ui-panel .booth-ui-panel-menu .menu-button {
	min-height: 46px !important;
	padding: 12px 18px !important;
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--palette-background-primary, #5eead4) 88%, transparent),
		color-mix(in srgb, var(--palette-background-primary, #5eead4) 70%, transparent)) !important;
	border: 1px solid color-mix(in srgb, var(--expo-menu-ink, #ffffff) 26%, transparent) !important;
	border-radius: 999px !important;
	color: var(--expo-menu-ink, #ffffff) !important;
	box-shadow:
		inset 0 1px 0 color-mix(in srgb, #ffffff 26%, transparent),
		0 4px 14px rgba(0, 0, 0, .24) !important;
	-webkit-backdrop-filter: blur(11px) saturate(175%) !important;
	backdrop-filter: blur(11px) saturate(175%) !important;
	cursor: pointer !important;
	transition: transform .16s ease, filter .16s ease, box-shadow .16s ease, border-color .16s ease !important;
	pointer-events: auto !important;
}
.booth-ui .booth-ui-panel .booth-ui-panel-menu .menu-button:hover {
	filter: brightness(1.08) saturate(1.05) !important;
	border-color: color-mix(in srgb, var(--expo-menu-ink, #ffffff) 42%, transparent) !important;
	transform: translateY(-1px) !important;
	box-shadow:
		inset 0 1px 0 color-mix(in srgb, #ffffff 34%, transparent),
		0 10px 24px color-mix(in srgb, var(--palette-background-primary, #000) 40%, transparent) !important;
}
.booth-ui .booth-ui-panel .booth-ui-panel-menu .menu-button:active { transform: scale(.985) !important; }
.booth-ui .booth-ui-panel .booth-ui-panel-menu .menu-button .label {
	font-family: var(--expo-font-menu, 'Nunito', system-ui, sans-serif) !important;
	display: block !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: .04em !important;
	text-transform: uppercase !important;
	line-height: 1.25em !important;
	color: var(--expo-menu-ink, #ffffff) !important;
	text-shadow: none !important;
}

/* ---- "Play avatar" button (booth.js injects it at the top of the menu) */
.booth-ui .booth-ui-panel .booth-ui-panel-menu .menu-button.expo-avatar-play {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	min-height: 48px !important;
	padding: 12px 18px !important;
	/* the default UI pill: teal→indigo accent with dark ink — same as the app's
	   primary action pills (Exhibitors / chat send / "Yes, take me to…") */
	background: linear-gradient(135deg, var(--expo-accent-1, #5eead4), var(--expo-accent-2, #818cf8)) !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: #06121f !important;
	box-shadow: 0 8px 20px rgba(95, 90, 220, .4), inset 0 1px 0 rgba(255, 255, 255, .42) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	flex: 0 0 auto !important;
}
.booth-ui .booth-ui-panel .booth-ui-panel-menu .menu-button.expo-avatar-play:hover {
	filter: brightness(1.05) !important;
	transform: translateY(-1px) !important;
}
.booth-ui .booth-ui-panel .booth-ui-panel-menu .menu-button.expo-avatar-play .label {
	color: #06121f !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: .04em !important;
	text-shadow: none !important;
}
.expo-avatar-play__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px; height: 20px;
	flex: 0 0 auto;
	color: #06121f;
}
.expo-avatar-play__icon svg { width: 20px; height: 20px; }

/* ---- scroll hint: animated chevron + fade when the menu overflows --- */
.booth-ui .booth-ui-panel { position: relative !important; }
.booth-ui .booth-ui-panel .expo-booth-scrollhint {
	position: absolute;
	left: 1px; right: 1px; bottom: 0;
	height: 48px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 7px;
	pointer-events: none;
	opacity: 0;
	z-index: 4;
	border-radius: 0 0 18px 18px;
	transition: opacity .25s ease;
	background: linear-gradient(to top, color-mix(in srgb, var(--expo-menu-bg, rgba(10, 12, 19, 1)) 94%, transparent), transparent);
}
.booth-ui .booth-ui-panel .expo-booth-scrollhint.is-on { opacity: 1; }
/* the scroll hint is a purely decorative fade over the bottom of the panel — it
   must NEVER catch clicks. Stock app.css forces pointer-events:auto onto booth-ui
   children, which overrode our `none` and left the hint overlapping the LAST menu
   button so only its top half was clickable. Re-assert none with !important on the
   hint AND its chevron/svg. */
.booth-ui .booth-ui-panel .expo-booth-scrollhint,
.booth-ui .booth-ui-panel .expo-booth-scrollhint * {
	pointer-events: none !important;
}
.booth-ui .booth-ui-panel .expo-booth-scrollhint i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px; height: 30px;
	color: var(--expo-panel-ink, #eef2fb);
	background: color-mix(in srgb, var(--expo-panel-ink, #fff) 16%, transparent);
	border: 1px solid color-mix(in srgb, var(--expo-panel-ink, #fff) 30%, transparent);
	border-radius: 50%;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: expo-booth-scrollbounce 1.3s ease-in-out infinite;
}
.booth-ui .booth-ui-panel .expo-booth-scrollhint i svg { width: 16px; height: 16px; }
@keyframes expo-booth-scrollbounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
	.booth-ui .booth-ui-panel .expo-booth-scrollhint i { animation: none; }
}

/* ---- mobile: don't take over the screen; toggle on request --------- */
/* booth.js adds .expo-booth-collapsed on the .booth-ui when on a small
   screen, and a floating toggle button reveals it. */
.booth-ui.expo-booth-collapsed .top-right { display: none !important; }

.expo-booth-toggle {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 2147481500;
	width: 52px;
	height: 52px;
	display: none;                 /* shown by booth.js only while inside a booth on mobile */
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--expo-on-company, #0a1020);
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--expo-company, #5eead4) 88%, #ffffff),
		var(--expo-company, #818cf8));
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 50%;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	transition: transform .16s var(--expo-ease, ease);
}
.expo-booth-toggle.is-on { display: inline-flex; }
.expo-booth-toggle:active { transform: scale(.94); }
.expo-booth-toggle svg { width: 24px; height: 24px; }
@media (max-width: 640px) {
	.booth-ui.expo-booth-collapsed .top-right { left: 12px !important; right: 12px !important; top: 12px !important; }
	.booth-ui .booth-ui-panel { width: auto !important; max-width: none !important; }
}

/* On phones/tablets the booth menu sits BELOW the top icon row (hall-nav,
   "Avatar speaking", storefront toggle) so those icons no longer cover it and
   its storefront close-toggle stays reachable. The panel height is capped so it
   scrolls internally (the scroll-hint chevron appears when there's more). */
@media (max-width: 760px) {
	.booth-ui .top-right {
		top: 80px !important;
		left: 12px !important;
		right: 12px !important;
	}
	.booth-ui .booth-ui-panel {
		width: auto !important;
		max-width: none !important;
		max-height: calc(100vh - 80px - 92px) !important;    /* icons above + Exhibitors FAB below */
		max-height: calc(100dvh - 80px - 92px) !important;   /* dynamic viewport (mobile browser chrome) */
	}
}
