/**
 * Homepage Hero Banner Stylesheet
 *
 * @package Brandalay
 * @subpackage Blocks/PageBanner
 */

.hero-banner-section {
	position: relative;
	width: 100%;
	min-height: clamp(580px, 88vh, 820px);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
}

.hero-banner-section *,
.hero-banner-section *::before,
.hero-banner-section *::after {
	box-sizing: border-box;
}

/* Atmospheric Mountain Gradient Overlay */
.hero-banner-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		180deg,
		rgba(8, 28, 38, 0.6) 0%,
		rgba(9, 34, 46, 0.74) 48%,
		rgba(7, 24, 33, 0.92) 100%
	);
	z-index: 1;
	pointer-events: none;
}

/* Central Hero Container */
.hero-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(4.5rem, 7vw, 7rem) 1.5rem clamp(3.5rem, 5.5vw, 5.5rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* H1 Headline */
.hero-banner-title {
	font-family: inherit;
	font-size: clamp(2.35rem, 5.2vw, 4.35rem);
	font-weight: 800;
	color: #FFFFFF;
	line-height: 1.14;
	letter-spacing: -0.025em;
	max-width: 960px;
	margin: 0 auto clamp(1.25rem, 2.5vw, 1.85rem);
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* Social Proof & Trust Badges */
.hero-social-proof-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: clamp(1.85rem, 3vw, 2.65rem);
}

.hero-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: clamp(0.85rem, 1.1vw, 0.95rem);
	color: rgba(255, 255, 255, 0.92);
	font-weight: 500;
	margin-bottom: 0.95rem;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.trust-badge-icon {
	color: #FBBF24;
	flex-shrink: 0;
	filter: drop-shadow(0 1px 4px rgba(251, 191, 36, 0.4));
}

/* Review Pills Row */
.hero-review-pills-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
}

.hero-review-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: rgba(15, 23, 42, 0.65);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 9999px;
	padding: 0.42rem 1.15rem;
	color: #FFFFFF;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-review-pill:hover {
	transform: translateY(-2px);
	background-color: rgba(15, 23, 42, 0.85);
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	color: #FFFFFF;
}

.review-pill-logo,
.review-pill-svg {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
}

.pill-platform-name {
	font-weight: 700;
	color: #FFFFFF;
}

.pill-star {
	color: #FBBF24;
	font-size: 0.95rem;
	margin-left: 0.1rem;
	line-height: 1;
}

.pill-score {
	color: #FBBF24;
	font-weight: 800;
	font-size: 0.92rem;
}

.pill-score--highlight {
	color: #34D399;
	font-weight: 800;
}

/* Video CTA Watch Button */
.hero-video-cta-wrap {
	margin-top: 0.35rem;
}

.hero-video-pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	background-color: rgba(30, 41, 59, 0.55);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	border-radius: 9999px;
	padding: 0.45rem 1.55rem 0.45rem 0.55rem;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-video-pill-btn:hover {
	transform: translateY(-2px);
	background-color: rgba(30, 41, 59, 0.8);
	border-color: rgba(255, 255, 255, 0.45);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.video-btn-play-circle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	flex-shrink: 0;
	box-shadow: 0 0 16px rgba(5, 150, 105, 0.55);
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-video-pill-btn:hover .video-btn-play-circle {
	transform: scale(1.08);
	background-color: #047857;
}

.play-icon-svg {
	margin-left: 2px;
}

.video-btn-label-text {
	color: #FFFFFF;
	white-space: nowrap;
}

/* Video Lightbox Modal */
.video-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.video-modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(6, 17, 24, 0.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.video-modal-dialog {
	position: relative;
	z-index: 10;
	width: 92%;
	max-width: 960px;
	transform: scale(0.95);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.is-open .video-modal-dialog {
	transform: scale(1);
}

.video-modal-close {
	position: absolute;
	top: -46px;
	right: 0;
	background: none;
	border: none;
	color: #FFFFFF;
	cursor: pointer;
	padding: 8px;
	line-height: 1;
	transition: transform 0.2s ease, color 0.2s ease;
}

.video-modal-close:hover {
	transform: scale(1.15);
	color: #38BDF8;
}

.video-modal-frame-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	background-color: #000000;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-frame-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	margin-left: -22px;
	border: 3.5px solid rgba(255, 255, 255, 0.15);
	border-top-color: #059669;
	border-radius: 50%;
	animation: heroSpinnerSpin 0.75s linear infinite;
	z-index: 1;
}

@keyframes heroSpinnerSpin {
	to {
		transform: rotate(360deg);
	}
}

.video-modal-frame-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 2;
	background: transparent;
}

/* Responsive Rules */
@media (max-width: 768px) {
	.hero-banner-section {
		min-height: clamp(520px, 80vh, 650px);
	}

	.hero-container {
		padding: clamp(3.5rem, 6vw, 4.5rem) 1.25rem clamp(2.5rem, 4vw, 3.5rem);
	}

	.hero-review-pills-row {
		gap: 0.5rem;
	}

	.hero-review-pill {
		padding: 0.35rem 0.85rem;
		font-size: 0.8rem;
	}

	.hero-video-pill-btn {
		padding: 0.4rem 1.25rem 0.4rem 0.5rem;
		font-size: 0.75rem;
		gap: 0.65rem;
	}

	.video-btn-play-circle {
		width: 32px;
		height: 32px;
	}
}
