/**
 * New Roots Client — Frontend Styles
 *
 * Covers: .nrsk-section-wrap, .nrsk-geo-slider and all sub-elements.
 */

/* =========================================================================
   Section Wrapper
   ========================================================================= */

.nrsk-section-wrap {
	width: 100%;
	position: relative;
}

/* =========================================================================
   Geo Slider
   ========================================================================= */

.nrsk-geo-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #000;
	-webkit-user-select: none;
	user-select: none;
}

/* Track — all slides in a row, transformed by JS */
.nrsk-geo-slider__track {
	display: flex;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

/* Individual slide */
.nrsk-geo-slider__slide {
	min-width: 100%;
	position: relative;
	flex-shrink: 0;
}

.nrsk-geo-slider__link {
	display: block;
	text-decoration: none;
}

.nrsk-geo-slider__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Caption overlay */
.nrsk-geo-slider__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px 24px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
	color: #fff;
}

.nrsk-geo-slider__title {
	margin: 0 0 4px;
	font-size: 1.3em;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
}

.nrsk-geo-slider__text {
	margin: 0;
	font-size: 0.95em;
	opacity: 0.9;
	color: inherit;
}

/* =========================================================================
   Prev / Next buttons
   ========================================================================= */

.nrsk-geo-slider__prev,
.nrsk-geo-slider__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.18);
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 10;
	padding: 0;
}

.nrsk-geo-slider__prev:hover,
.nrsk-geo-slider__next:hover {
	background: rgba(255, 255, 255, 0.35);
}

.nrsk-geo-slider__prev { left: 12px; }
.nrsk-geo-slider__next { right: 12px; }

/* =========================================================================
   Dots
   ========================================================================= */

.nrsk-geo-slider__dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.nrsk-geo-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.7);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, border-color 0.2s;
}

.nrsk-geo-slider__dot--active {
	background: #fff;
	border-color: #fff;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 600px) {
	.nrsk-geo-slider__prev,
	.nrsk-geo-slider__next {
		width: 34px;
		height: 34px;
		font-size: 20px;
	}

	.nrsk-geo-slider__title {
		font-size: 1em;
	}

	.nrsk-geo-slider__caption {
		padding: 14px 16px;
	}
}

/* =============================================================================
   NR YouTube Cards
   (Slider/carousel handled by Elementor — these are just the cards)
   ============================================================================= */

.nrsk-yt-cards-wrap {
	display: contents; /* Transparent wrapper — Elementor carousel controls layout */
}

/* Card */
.nrsk-yt-card {
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	width: 100%;
}

/* Thumbnail */
.nrsk-yt-thumb-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.nrsk-yt-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.nrsk-yt-card:hover .nrsk-yt-thumb {
	transform: scale(1.04);
}

/* Play button overlay */
.nrsk-yt-play-btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.nrsk-yt-play-btn svg {
	width: 64px;
	height: auto;
	filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
	transition: transform 0.2s ease;
}

.nrsk-yt-play-btn:hover svg {
	transform: scale(1.12);
}

/* Title */
.nrsk-yt-title {
	margin: 8px 12px 10px;
	font-size: 13px;
	color: #fff;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* =============================================================================
   NR YouTube Lightbox
   ============================================================================= */

.nrsk-yt-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nrsk-yt-lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.nrsk-yt-lightbox-inner {
	position: relative;
	z-index: 1;
	width: 92vw;
	max-width: 960px;
}

.nrsk-yt-lightbox-close {
	position: absolute;
	top: -44px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	opacity: 0.85;
	transition: opacity 0.2s;
}

.nrsk-yt-lightbox-close:hover {
	opacity: 1;
}

.nrsk-yt-lightbox-embed iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: none;
	border-radius: 8px;
	display: block;
}

@media (max-width: 600px) {
	.nrsk-yt-play-btn svg { width: 48px; }
	.nrsk-yt-lightbox-inner { width: 98vw; }
	.nrsk-yt-lightbox-close { font-size: 28px; top: -36px; }
}
