/**
 * Neteuro Mega Hero Slider – frontend styles (Part B).
 */

/* Full-width hero wrapper */
.nmh-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* Swiper container height (CSS variables set by Elementor Layout controls; fallbacks match previous default) */
.nmh-swiper {
	width: 100%;
	height: var(--nmh-height, 70vh);
	min-height: var(--nmh-min-height, 320px);
}

.nmh-swiper .swiper-wrapper {
	height: 100%;
}

/* Slide: relative for overlay positioning */
.nmh-slide {
	position: relative;
	height: 100%;
	overflow: hidden;
}

/* Background: image or YouTube thumbnail – absolute cover */
.nmh-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.nmh-bg--youtube-thumb {
	/* Same as .nmh-bg; optional overrides for YouTube thumb */
}

/* YouTube placeholder (Part C will use this for iframe/API) */
.nmh-youtube {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* Local video: cover slide (Phase 2) */
.nmh-local-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

/* Overlay: above background, readable */
.nmh-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2rem;
	box-sizing: border-box;
}

.nmh-title {
	margin: 0 0 0.5em;
	color: #fff;
	font-size: 2rem;
	line-height: 1.2;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nmh-subtitle {
	margin: 0 0 1em;
	color: #fff;
	font-size: 1rem;
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	max-width: 600px;
}

.nmh-btn {
	display: inline-block;
	padding: 0.6em 1.2em;
	background: #fff;
	color: #1d2327;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: opacity 0.2s;
}

.nmh-btn:hover {
	opacity: 0.9;
}

/* Arrows: neutral baseline */
.nmh-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	z-index: 3;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.3);
	border: none;
	border-radius: 50%;
	transition: background 0.2s;
}

.nmh-arrow:hover {
	background: rgba(255, 255, 255, 0.6);
}

.nmh-arrow::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	border-top: 2px solid #1d2327;
	border-right: 2px solid #1d2327;
}

.nmh-arrow-prev {
	left: 16px;
}

.nmh-arrow-prev::after {
	left: 50%;
	margin-left: -4px;
	transform: translateY(-50%) rotate(-135deg);
}

.nmh-arrow-next {
	right: 16px;
}

.nmh-arrow-next::after {
	right: 50%;
	margin-right: -6px;
	transform: translateY(-50%) rotate(45deg);
}

/* Pagination dots */
.nmh-pagination {
	position: absolute;
	bottom: 16px;
	left: 0;
	width: 100%;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.nmh-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: rgba(255, 255, 255, 0.5);
	opacity: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s;
}

.nmh-pagination .swiper-pagination-bullet:hover,
.nmh-pagination .swiper-pagination-bullet-active {
	background: #fff;
}

/* Part C: YouTube "Click to play" overlay (autoplay blocked); does not cover arrows/dots (they are outside slide) */
.nmh-yt-play-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.4);
	pointer-events: auto;
}

.nmh-yt-play-btn {
	padding: 0.6em 1.2em;
	background: #fff;
	color: #1d2327;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	pointer-events: auto;
	transition: opacity 0.2s;
}

.nmh-yt-play-btn:hover {
	opacity: 0.9;
}

/* Hide slide overlay when data-hide-overlay="1" */
.nmh-hero[data-hide-overlay="1"] .nmh-overlay {
	display: none !important;
}

/* TV Mode: disable interaction with YouTube iframe */
.nmh-tv-mode .nmh-youtube iframe {
	pointer-events: none !important;
}

/* TV Mode: best-effort hide YouTube chrome (not guaranteed) */
.nmh-tv-mode .ytp-chrome-top,
.nmh-tv-mode .ytp-chrome-bottom,
.nmh-tv-mode .ytp-overlays,
.nmh-tv-mode .ytp-gradient-top,
.nmh-tv-mode .ytp-gradient-bottom,
.nmh-tv-mode .ytp-watermark,
.nmh-tv-mode .ytp-ce-element,
.nmh-tv-mode .ytp-pause-overlay,
.nmh-tv-mode .ytp-show-cards-title,
.nmh-tv-mode .ytp-iv-player-content {
	visibility: hidden !important;
	opacity: 0 !important;
	display: none !important;
}

/* TV Mode: blocked message overlay (non-interactive) */
.nmh-yt-blocked-message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	pointer-events: none;
	color: #fff;
	font-size: 1rem;
}
