/* ==========================================================================
   NextKat — video coverflow (ported 1:1 from the Mirumi Shopify theme)
   Source: theme/snippets/pp-lamp-coverflow.liquid + assets/pp-lamp-coverflow.css
   Structure and behaviour are unchanged; only the colour variables were
   re-pointed at the NextKat palette.
   ========================================================================== */

.nk-reels {
	--nk-reel-width: 210px;
	--nk-reel-heading: 1.6rem;
	--nk-reel-caption: .8rem;
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	margin: 0;
	color: var(--dgz-ink);
}

.nk-reels__heading {
	text-align: center;
	padding: 0 8px;
	margin-bottom: 14px;
}

.nk-reels__heading h2 {
	margin: 0 0 6px;
	color: var(--dgz-ink);
	font-size: var(--nk-reel-heading);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.nk-reels__heading p {
	margin: 0;
	color: var(--dgz-muted);
	font-size: .86rem;
	line-height: 1.55;
}

/* The perspective + depth is what makes it read as a coverflow rather than a
   plain slider. Do not remove. */
.nk-reels__swiper {
	width: 100%;
	overflow: hidden;
	padding: 14px 0;
	perspective: 1200px;
}

.nk-reels .swiper-wrapper { align-items: center; }

.nk-reels .nk-reel-slide {
	width: var(--nk-reel-width);
	max-width: 64cqw;
	height: auto;
	aspect-ratio: 9 / 16;
	background: none;
	opacity: .5;
	transition: opacity 300ms ease;
}

.nk-reels .swiper-slide-active,
.nk-reels .swiper-slide-prev,
.nk-reels .swiper-slide-next { opacity: 1; }

.nk-reels .nk-reel-card {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #161511;
	box-shadow: 0 18px 40px -20px rgba(21, 21, 21, .55);
}

/* Bottom scrim so the caption stays readable over any frame. */
.nk-reels .nk-reel-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent 40%);
}

.nk-reels .nk-reel-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nk-reels .nk-reel-card figcaption {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 6px;
	margin: 0;
	padding: 10px;
	color: #fff;
	line-height: 1.15;
	text-align: left;
	background: none;
}

.nk-reels .nk-reel-card figcaption span {
	font-size: var(--nk-reel-caption);
	font-weight: 700;
	color: inherit;
	overflow-wrap: anywhere;
}

.nk-reels button {
	box-sizing: border-box;
	margin: 0 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	font: inherit;
	cursor: pointer;
}

.nk-reels button:focus-visible {
	outline: 3px solid var(--dgz-orange);
	outline-offset: 3px;
}

.nk-reels .nk-reel-toggle,
.nk-reels .nk-reel-sound {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	color: #fff;
	background: rgba(21, 21, 21, .45);
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 8px;
	backdrop-filter: blur(4px);
}

.nk-reels[data-ready] .nk-reel-toggle,
.nk-reels[data-ready] .nk-reel-sound { display: flex; }

.nk-reels .nk-reel-sound {
	position: absolute;
	z-index: 3;
	top: 8px;
	right: 8px;
}

.nk-reels .nk-reel-toggle svg,
.nk-reels .nk-reel-sound svg { width: 21px; height: 21px; }

.nk-reels .nk-reel-play,
.nk-reels .nk-sound-on { display: block; }
.nk-reels .nk-reel-pause,
.nk-reels .nk-sound-off { display: none; }

.nk-reels .is-playing .nk-reel-play,
.nk-reels .is-audible .nk-sound-off { display: none; }

.nk-reels .is-playing .nk-reel-pause,
.nk-reels .is-audible .nk-sound-on { display: block; }

/* Nav arrows */
.nk-reels .nk-reel-nav {
	display: none;
	position: absolute;
	z-index: 10;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	color: var(--dgz-orange);
	background: #fff;
	border: 1px solid rgba(255, 90, 31, .24);
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(255, 90, 31, .18);
}

.nk-reels[data-ready] .nk-reel-nav { display: flex; }

.nk-reels .nk-reel-prev { left: 8px; }
.nk-reels .nk-reel-next { right: 8px; }
.nk-reels .nk-reel-nav svg { width: 20px; height: 20px; }

.nk-reels .swiper-slide-shadow-left,
.nk-reels .swiper-slide-shadow-right { background-image: none; }

/* Counter + pause-all */
.nk-reels__tools {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 6px;
	font-size: .72rem;
	color: var(--dgz-muted);
}

.nk-reels[data-ready] .nk-reels__tools { display: flex; }

.nk-reels__tools button {
	padding: 10px !important;
	color: var(--dgz-orange);
	text-decoration: underline;
	background: none;
	border: 0;
}

/* No-JS / Swiper-not-loaded fallback: a plain horizontal snap scroller. */
.nk-reels:not([data-ready]) .swiper-wrapper {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.nk-reels:not([data-ready]) .nk-reel-slide {
	flex-shrink: 0;
	opacity: 1;
	scroll-snap-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.nk-reels * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media (min-width: 750px) {
	.nk-reels { --nk-reel-width: 230px; --nk-reel-heading: 2rem; }
}

@media (max-width: 640px) {
	.nk-reels { --nk-reel-width: 176px; --nk-reel-heading: 1.45rem; --nk-reel-caption: .74rem; }
	.nk-reels .nk-reel-nav { width: 36px; height: 36px; }
	.nk-reels .nk-reel-prev { left: 2px; }
	.nk-reels .nk-reel-next { right: 2px; }
}

/* ==========================================================================
   Mobil düzeltmeleri (02.10.2026)
   Sorun: oynat butonu başlığın içinde, kartın en altında duruyordu. Mobilde
   sabit alt menü (.mobile-bottom-nav, 64px) tam orayı kestiği için buton
   görünmez oluyordu. Ses butonu üstte, oynat butonu altta kalınca da
   asimetrik bir görüntü çıkıyordu.
   Çözüm: oynat butonu da üst köşeye alındı, başlık tam genişliğe çıktı.
   ========================================================================== */

.nk-reels .nk-reel-card figcaption {
	/* The play button is absolutely positioned now, so the caption no longer
	   has to share its row with it. */
	justify-content: flex-start;
	padding-right: 10px;
}

/* Play/pause moves to the top-left, mirroring the sound button on the right. */
.nk-reels .nk-reel-card .nk-reel-toggle {
	position: absolute;
	z-index: 3;
	top: 8px;
	left: 8px;
}

/* Slightly stronger scrim so the caption stays readable now that it runs the
   full width of the card. */
.nk-reels .nk-reel-card::after {
	background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .35) 28%, transparent 46%);
}

@media (max-width: 640px) {
	/* Arrows sit on top of the partly visible side cards. Lighter and a touch
	   smaller so they read as controls rather than clutter. */
	.nk-reels .nk-reel-nav {
		width: 34px;
		height: 34px;
		background: rgba(255, 255, 255, .88);
		box-shadow: 0 1px 6px rgba(21, 21, 21, .16);
	}

	.nk-reels .nk-reel-nav svg { width: 17px; height: 17px; }

	/* The fixed bottom nav is 64px tall; keep the counter/pause row clear of it. */
	.nk-reels__tools {
		margin-bottom: 6px;
		padding-bottom: 4px;
	}

	.nk-reels .nk-reel-toggle,
	.nk-reels .nk-reel-sound {
		width: 34px;
		height: 34px;
	}

	.nk-reels .nk-reel-toggle svg,
	.nk-reels .nk-reel-sound svg { width: 18px; height: 18px; }
}
