/* GigPortal Digital Signage — player styles (self-contained). */

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	min-height: -webkit-fill-available;
	overflow: hidden;
	background: #000;
}

/* Lock the kiosk viewport on iOS home-screen / standalone mode. */
body {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	-webkit-overflow-scrolling: touch;
}

#sign {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.slide {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	transition: opacity 1.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
}

.slide.active { opacity: 1; }

/* Use explicit width/height (not max-*) so iOS Safari doesn't collapse the
   image to zero size inside the flex container. cover fills the screen edge to
   edge (no letterbox bars); images are pre-cropped to 16:9 in the dashboard. */
.Image-slide img,
.Image-slide video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.Video-slide video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.Review-slide {
	background: #fff;
	color: #111;
	flex-direction: column;
	padding: 4vh 4vw;
	box-sizing: border-box;
}

.Review-slide.inverted {
	background: #000;
	color: #fff;
}

.overlay {
	position: absolute;
	z-index: 20;
	font-size: 2.5rem; /* fallback for older iOS without clamp() */
	font-size: clamp(1.4rem, 5vw, 4rem);
	font-weight: 800;
	text-transform: uppercase;
	text-align: center;
	padding: 0 4%;
	text-shadow: 0 2px 12px rgba(0,0,0,.85);
	color: #fff;
	pointer-events: none;
}

.overlay.top { top: 4%; }
.overlay.middle { top: 50%; transform: translateY(-50%); }
.overlay.bottom { bottom: 8%; }
.overlay.left { text-align: left; left: 0; }
.overlay.center { left: 0; right: 0; }
.overlay.right { text-align: right; right: 0; }

.reviewer-name { font-size: 1.8rem; font-size: clamp(1.2rem, 3.5vw, 2.4rem); font-weight: 700; margin: 0; }
.review-time { font-size: 1.1rem; font-size: clamp(.9rem, 2.5vw, 1.4rem); opacity: .75; margin: .2em 0 0; }
.review-comment { font-size: 1.5rem; font-size: clamp(1rem, 3.2vw, 2rem); font-style: italic; line-height: 1.35; text-align: center; margin-top: 3vh; padding: 0 5%; }
.star-rating { font-size: 1.4rem; font-size: clamp(1rem, 2.8vw, 1.8rem); letter-spacing: .12em; color: #f5a623; }
.review-source-logo img { max-height: 48px; max-width: 48px; }

.infuse-grid { width: 96%; margin: 0 auto; }
.infuse-reviews-review {
	background: rgba(255,255,255,.95);
	color: #222;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
	width: 360px;
	box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.Review-slide.inverted .infuse-reviews-review { background: rgba(30,30,30,.95); color: #eee; }

/* QR Tips slide — modern dark background, content centered and large. */
.QRtips-slide {
	width: 100%;
	height: 100%;
	background: #1c2740;
	/* Glows anchored at all four corners + a clearly-navy base so every edge,
	   including the bottom, is visibly colored — no black dead zone. */
	background:
		radial-gradient(90% 90% at 12% 100%, rgba(29,185,84,.40), transparent 62%),
		radial-gradient(90% 90% at 100% 100%, rgba(56,120,255,.45), transparent 62%),
		radial-gradient(95% 95% at 50% 0%, rgba(168,85,247,.34), transparent 64%),
		linear-gradient(180deg, #223052 0%, #1a2238 60%, #161d31 100%);
	color: #fff;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* Extra bottom padding clears the overlaying tip bar so content centers
	   symmetrically in the visible area (not behind the bar). */
	padding: 3vmin 3vmin calc(3vmin + 8vh);
	box-sizing: border-box;
	/* NOTE: do NOT set position here — .slide is position:absolute and stacks all
	   slides on top of each other. Overriding it (e.g. relative) drops this slide
	   into normal flow, pushing the 2nd+ QR Tips slide off-screen (black frame). */
	overflow: hidden;
}
.QRtips-slide.inverted {
	background: #1c2740;
	background:
		radial-gradient(90% 90% at 12% 100%, rgba(29,185,84,.40), transparent 62%),
		radial-gradient(90% 90% at 100% 100%, rgba(56,120,255,.45), transparent 62%),
		radial-gradient(95% 95% at 50% 0%, rgba(168,85,247,.34), transparent 64%),
		linear-gradient(180deg, #223052 0%, #1a2238 60%, #161d31 100%);
}
/* Decorative dotted texture overlay. */
.QRtips-slide::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: radial-gradient(rgba(255,255,255,.09) 2px, transparent 2px);
	background-size: 30px 30px;
	opacity: .6;
	pointer-events: none;
}
/* Soft diagonal sheen across the slide. */
.QRtips-slide::after {
	content: "";
	position: absolute;
	top: -30%;
	left: -10%;
	width: 60%;
	height: 160%;
	background: linear-gradient(115deg, rgba(255,255,255,.07), rgba(255,255,255,0) 70%);
	transform: rotate(8deg);
	pointer-events: none;
}
.qrtips-inner {
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	text-align: center;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.qrtips-heading {
	font-size: 48px; /* fallback for old iOS */
	font-size: 8.5vmin;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 4vmin;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.qrtips-grid {
	display: flex;
	justify-content: center;
	align-items: stretch;
	flex-wrap: nowrap;
	width: 100%;
}
.qrtips-card {
	margin: 0 2vmin;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 20px;
	padding: 2.4vmin;
	box-shadow: 0 18px 50px rgba(0,0,0,.55);
	display: flex;
	flex-direction: column;
	align-items: center;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
/* Large square sized so two codes fill most of the screen. Capped by viewport
   width too (min) so a third/narrow screen never overflows sideways. */
.qrtips-qr {
	width: 300px;  /* fallback for very old iOS */
	height: 300px; /* fallback */
	width: 44vmin;
	height: 44vmin;
	background: #fff;
	border-radius: 14px;
	padding: 2.2vmin;
	box-sizing: border-box;
}
.qrtips-qr img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.qrtips-label {
	color: #fff;
	font-weight: 800;
	font-size: 22px; /* fallback */
	font-size: 3.4vmin;
	margin-top: 2vmin;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.qrtips-sub {
	margin-top: 3vmin;
	font-size: 18px; /* fallback */
	font-size: 3vmin;
	color: rgba(255,255,255,.7);
}

/* Scrolling tip bar */
#tipBar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60px; /* fallback for older iOS without clamp() */
	height: clamp(44px, 7vh, 72px);
	background: #000;
	color: #fff;
	z-index: 9999;
	overflow: hidden;
	display: flex;
	align-items: center;
	cursor: pointer;
	box-shadow: 0 -4px 24px rgba(0,0,0,.35);
}

#tipBar .tip-track {
	display: inline-block;
	white-space: nowrap;
	padding-left: 100%;
	animation: tip-scroll 18s linear infinite;
	font-size: 1.5rem; /* fallback for older iOS without clamp() */
	font-size: clamp(1.1rem, 3.2vw, 2rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}

@keyframes tip-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-100%); }
}

/* Tip bar overlays the slides (fixed, high z-index) so images/videos stay
   full-screen behind it instead of being pushed up. */

.preloader {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 1.2rem;
	z-index: 50;
}
