/* =============================================================
   Yadu Yoga – Video Hero Widget | frontend.css
   All selectors are scoped to .yyvh-wrap so nothing leaks out.
   ============================================================= */

/* ── Wrap / Container ── */
.yyvh-wrap {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 560px;
	overflow: hidden;
	display: flex;
	align-items: center;
}

/* ── Video Background ── */
.yyvh-video-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.yyvh-video-bg .yyvh-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ── Overlay ── */
.yyvh-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* ── Corner Accents ── */
.yyvh-corner-tr {
	position: absolute;
	top: 0;
	right: 0;
	width: 320px;
	height: 320px;
	border-left: 2px solid rgba(76, 175, 80, 0.25);
	border-bottom: 2px solid rgba(76, 175, 80, 0.25);
	border-radius: 0 0 0 320px;
	z-index: 2;
	pointer-events: none;
}
.yyvh-corner-bl {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 200px;
	height: 200px;
	border-right: 2px solid rgba(76, 175, 80, 0.2);
	border-top: 2px solid rgba(76, 175, 80, 0.2);
	border-radius: 0 200px 0 0;
	z-index: 2;
	pointer-events: none;
}

/* ── Bottom Line ── */
.yyvh-bottom-line {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(to right, #4caf50, transparent 70%);
	z-index: 3;
	pointer-events: none;
}

/* ── Hero Content ── */
.yyvh-content {
	position: relative;
	z-index: 4;
	padding: 88px 88px 0;
	max-width: 700px;
}

/* ── Eyebrow ── */
.yyvh-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #4caf50;
	margin-bottom: 22px;
	animation: yyvh-fade-up 0.8s ease 0.2s both;
}
.yyvh-eyebrow.yyvh-eyebrow--line::before {
	content: '';
	width: 36px;
	height: 2px;
	background: #4caf50;
	border-radius: 2px;
	flex-shrink: 0;
}

/* ── Heading ── */
.yyvh-title {
	font-size: clamp(2.4rem, 6vw, 4.8rem);
	font-weight: 900;
	color: #ffffff;
	line-height: 1.08;
	margin-bottom: 20px;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
	animation: yyvh-fade-up 0.85s ease 0.35s both;
}
.yyvh-title em {
	font-style: normal;
	color: #4caf50;
}

/* ── Divider ── */
.yyvh-divider {
	width: 64px;
	height: 3px;
	background: linear-gradient(to right, #4caf50, #6cb259);
	border-radius: 3px;
	margin-bottom: 20px;
	animation: yyvh-fade-up 0.85s ease 0.45s both;
}

/* ── Description ── */
.yyvh-desc {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.78;
	margin-bottom: 38px;
	max-width: 500px;
	font-weight: 300;
	animation: yyvh-fade-up 0.85s ease 0.55s both;
}

/* ── CTA Buttons ── */
.yyvh-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	animation: yyvh-fade-up 0.85s ease 0.65s both;
}

.yyvh-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #4caf50;
	color: #ffffff;
	padding: 15px 32px;
	border-radius: 30px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.5px;
	border: 2px solid #4caf50;
	transition: all 0.25s ease;
	cursor: pointer;
}
.yyvh-btn-primary:hover {
	background: transparent;
	color: #ffffff;
	border-color: #ffffff;
}
.yyvh-btn-primary i,
.yyvh-btn-primary svg {
	font-size: 0.8rem;
	transition: transform 0.2s;
}
.yyvh-btn-primary:hover i,
.yyvh-btn-primary:hover svg {
	transform: translateX(4px);
}

.yyvh-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	color: rgba(255, 255, 255, 0.88);
	padding: 15px 28px;
	border-radius: 30px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.5px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	transition: all 0.25s ease;
	cursor: pointer;
}
.yyvh-btn-secondary:hover {
	border-color: rgba(255, 255, 255, 0.85);
	color: #ffffff;
}
.yyvh-btn-secondary .yyvh-sec-icon i,
.yyvh-btn-secondary .yyvh-sec-icon svg {
	font-size: 0.75rem;
}

/* ── Stats – Desktop ── */
.yyvh-stats {
	position: absolute;
	bottom: 50px;
	right: 80px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 24px;
	animation: yyvh-fade-in 1s ease 0.9s both;
}
.yyvh-stat-item {
	text-align: right;
}
.yyvh-stat-num {
	display: block;
	font-size: 2rem;
	font-weight: 900;
	color: #ffffff;
	line-height: 1;
}
.yyvh-stat-num span {
	color: #4caf50;
}
.yyvh-stat-label {
	font-size: 0.72rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.yyvh-stat-divider {
	width: 40px;
	height: 1px;
	background: rgba(255, 255, 255, 0.15);
	margin-left: auto;
	margin-top: 8px;
}

/* Stats – Mobile bar (hidden by default, shown via media query) */
.yyvh-stats-mobile {
	display: none;
}

/* ── Video Controls ── */
.yyvh-controls {
	position: absolute;
	bottom: 50px;
	left: 88px;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 14px;
	animation: yyvh-fade-in 1s ease 1s both;
}
.yyvh-mute-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	transition: all 0.22s;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.yyvh-mute-btn:hover {
	background: #4caf50;
	border-color: #4caf50;
}
.yyvh-video-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

/* ── Scroll Indicator ── */
.yyvh-scroll-indicator {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	animation: yyvh-fade-in 1.2s ease 1.2s both;
}
.yyvh-scroll-line {
	width: 1px;
	height: 40px;
	background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
	animation: yyvh-scroll-pulse 2s ease-in-out infinite;
}
.yyvh-scroll-text {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	writing-mode: vertical-lr;
}

/* ── Keyframes ── */
@keyframes yyvh-fade-up {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes yyvh-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes yyvh-scroll-pulse {
	0%, 100% { opacity: 0.4; transform: scaleY(1); }
	50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* ── Tablet: ≤ 1024px ── */
@media (max-width: 1024px) {
	.yyvh-content {
		padding-left: 40px;
		padding-right: 40px;
	}
	.yyvh-stats {
		right: 36px;
		bottom: 42px;
	}
	.yyvh-controls {
		left: 40px;
		bottom: 42px;
	}
}

/* ── Tablet / small laptop: ≤ 900px ── */
@media (max-width: 900px) {
	.yyvh-stats {
		display: none;
	}
	.yyvh-content {
		padding-left: 28px;
		padding-right: 28px;
		padding-top: 100px;
		max-width: 100%;
	}
	.yyvh-controls {
		left: 28px;
		bottom: 100px;
	}
	.yyvh-scroll-indicator {
		bottom: 60px;
	}
}

/* ── Mobile: ≤ 600px ── */
@media (max-width: 600px) {
	.yyvh-wrap {
		min-height: 100svh;
	}

	/* Stronger overlay on mobile */
	.yyvh-overlay {
		background: linear-gradient(
			to bottom,
			rgba(20, 18, 48, 0.75) 0%,
			rgba(20, 18, 48, 0.45) 40%,
			rgba(20, 18, 48, 0.72) 100%
		) !important;
	}

	/* Smaller corner accents */
	.yyvh-corner-tr { width: 140px; height: 140px; }
	.yyvh-corner-bl { width: 90px;  height: 90px;  }

	.yyvh-content {
		padding: 88px 22px 0;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		max-width: 100%;
	}

	.yyvh-eyebrow {
		font-size: 0.68rem;
		letter-spacing: 3px;
		margin-bottom: 16px;
	}
	.yyvh-eyebrow.yyvh-eyebrow--line::before {
		width: 24px;
	}

	.yyvh-title {
		font-size: clamp(2rem, 9vw, 2.8rem);
		margin-bottom: 16px;
	}

	.yyvh-divider {
		margin-bottom: 16px;
	}

	.yyvh-desc {
		font-size: 0.92rem;
		line-height: 1.7;
		margin-bottom: 28px;
		max-width: 100%;
	}

	.yyvh-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		width: 100%;
	}
	.yyvh-btn-primary,
	.yyvh-btn-secondary {
		justify-content: center;
		width: 100%;
	}
	.yyvh-btn-primary  { padding: 16px 24px; }
	.yyvh-btn-secondary { padding: 14px 24px; }

	/* Mobile stats bar */
	.yyvh-stats-mobile {
		display: flex;
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 4;
		justify-content: space-around;
		align-items: center;
		padding: 16px 20px 18px;
		background: rgba(20, 18, 48, 0.75);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		animation: yyvh-fade-in 1s ease 0.9s both;
	}
	.yyvh-stat-item-m {
		text-align: center;
		flex: 1;
	}
	.yyvh-stat-item-m + .yyvh-stat-item-m {
		border-left: 1px solid rgba(255, 255, 255, 0.12);
	}
	.yyvh-stat-num-m {
		display: block;
		font-size: 1.4rem;
		font-weight: 900;
		color: #ffffff;
		line-height: 1;
	}
	.yyvh-stat-num-m span {
		color: #4caf50;
	}
	.yyvh-stat-label-m {
		font-size: 0.6rem;
		font-weight: 400;
		color: rgba(255, 255, 255, 0.5);
		letter-spacing: 1px;
		text-transform: uppercase;
		margin-top: 4px;
		display: block;
	}

	/* Mute button repositioned top-right */
	.yyvh-controls {
		left: auto;
		right: 20px;
		bottom: auto;
		top: 80px;
		flex-direction: row-reverse;
	}
	.yyvh-video-label { display: none; }
	.yyvh-mute-btn    { width: 38px; height: 38px; font-size: 0.85rem; }

	/* Hide scroll indicator — mobile stats bar occupies bottom */
	.yyvh-scroll-indicator { display: none; }
}

/* ── Very small: ≤ 380px ── */
@media (max-width: 380px) {
	.yyvh-content { padding: 80px 18px 0; }
	.yyvh-title   { font-size: clamp(1.75rem, 10vw, 2.4rem); }
	.yyvh-desc    { font-size: 0.88rem; }
	.yyvh-stat-num-m { font-size: 1.2rem; }
}

/* =============================================================
   ELEMENTOR EDITOR — Keep widget visible/usable in preview
   ============================================================= */
.elementor-editor-active .yyvh-wrap {
	min-height: 500px;
}
