/* =========================================================
   Hyplux Slider — osnovni styli
   Barve/dimenzije/overlay se urejajo prek Elementor Style taba
   (glej selectors v class-hyplux-slider-widget.php) — tu je le
   struktura, layout in animacije.
========================================================= */

.hyplux-slider-wrap {
	position: relative;
	width: 100%;
}

.hyplux-slider-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hyplux-slider-row .hyplux-slider {
	flex: 0 1 auto;
	min-width: 0;
}

.hyplux-slider {
	position: relative;
	width: 100%;
	height: 400px;
	overflow: hidden;
	border-radius: 4px;
}

.hyplux-slider-viewport {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.hyplux-slider-track {
	display: flex;
	/* Vsaka "stran" (skupina slik enega slida) je natanko 100% širine
	   viewporta - JS jih group v .hyplux-slide-page, zato med stranmi
	   ni dodatnega gapa in translateX(-100%) vedno natanko pristane. */
	height: 100%;
	transition: transform 0.5s ease;
}

.hyplux-slider-track > .hyplux-slide-page {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.hyplux-slide-page {
	display: flex;
	height: 100%;
	/* razmik med slikami ZNOTRAJ ene strani - nastavi ga Elementor
	   slide_gap control (glej class-hyplux-slider-widget.php) */
}

.hyplux-slide-page > .hyplux-slide {
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
}

.hyplux-slide {
	position: relative;
	height: 100%;
	overflow: hidden;
}

.hyplux-slide-image {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.hyplux-slide-image img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* privzeto, nastavljivo prek Elementor Select controla */
	display: block;
	transition: transform 0.4s ease, filter 0.4s ease;
}

.hyplux-slide-overlay {
	position: absolute;
	inset: 0;
	background-color: #000000;
	opacity: 0.3;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

/* ---- Hover efekti ---- */
.hyplux-hover-zoom .hyplux-slide-image:hover img {
	transform: scale(1.08);
}

.hyplux-hover-darken .hyplux-slide-image:hover .hyplux-slide-overlay {
	opacity: 0.55;
}

.hyplux-hover-lighten .hyplux-slide-image:hover img {
	filter: brightness(1.2);
}

/* ---- Fade transition varianta ---- */
.hyplux-slider[data-transition="fade"] .hyplux-slider-track {
	transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ---- Tekst čez sliko ---- */
.hyplux-slide-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 24px;
	color: #ffffff;
	z-index: 2;
}

.hyplux-slide-title {
	margin: 0 0 8px;
	font-size: 1.6em;
	font-family: var(--hplx-font-heading, serif);
}

.hyplux-slide-text {
	margin: 0 0 14px;
	max-width: 480px;
	font-family: var(--hplx-font-body, sans-serif);
}

.hyplux-slide-button {
	display: inline-block;
	padding: 10px 22px;
	border: 2px solid currentColor;
	color: inherit;
	text-decoration: none;
	border-radius: 4px;
	font-family: var(--hplx-font-body, sans-serif);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.hyplux-slide-button:hover {
	background-color: var(--hplx-bg, #ffffff);
	color: var(--hplx-primary, #000000);
}

/* Pozicije teksta */
.hyplux-text-top-left      { justify-content: flex-start; align-items: flex-start; text-align: left; }
.hyplux-text-top-center    { justify-content: flex-start; align-items: center; }
.hyplux-text-center        { justify-content: center; align-items: center; }
.hyplux-text-bottom-left   { justify-content: flex-end; align-items: flex-start; text-align: left; }
.hyplux-text-bottom-center { justify-content: flex-end; align-items: center; }

/* ---- Puščice ---- */
.hyplux-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.35);
	border: none;
	color: #ffffff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

.hyplux-slider-arrow:hover {
	background: rgba(0, 0, 0, 0.6);
}

.hyplux-arrow-prev { left: 16px; }
.hyplux-arrow-next { right: 16px; }

/* ---- Pikice ---- */
.hyplux-slider-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 3;
}

.hyplux-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.hyplux-dot.is-active {
	background-color: #ffffff;
	transform: scale(1.2);
}

@media (max-width: 767px) {
	.hyplux-slider-arrow {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}
}

/* ---- Controls Position: Outside ----
   Kadar sta puščici direktna otroka .hyplux-slider-row (ne .hyplux-slider),
   sedita zraven slike namesto čeznjo. Enako za pikice pod sliko namesto na njej. */
.hyplux-slider-row > .hyplux-slider-arrow {
	position: static;
	transform: none;
	flex-shrink: 0;
}

.hyplux-slider-wrap > .hyplux-slider-dots {
	position: static;
	transform: none;
	justify-content: center;
	margin-top: 14px;
}
