/* ==========================================================
   Excellent Slider Addon — Frontend Styles
   Reference: left-aligned content, bottom tab bar, right controls
   ========================================================== */

/* ── Wrapper ──────────────────────────────────────────────── */
.esa-slider-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #000;
	user-select: none;
}

/* ── Slides container ─────────────────────────────────────── */
.esa-slides-container {
	position: relative;
	width: 100%;
	flex: 1 0 auto;
}

/* ── Individual slide ─────────────────────────────────────── */
.esa-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.7s ease;
	z-index: 0;
}

.esa-slide.active {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
	position: relative; /* makes the container adopt its height */
}

/* ── Image area ───────────────────────────────────────────── */
.esa-slide-image-area {
	position: relative;
	width: 100%;
	height: 580px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;   /* content sits near bottom-left like the reference */
	justify-content: flex-start;
	box-sizing: border-box;
	padding-bottom: 52px;     /* space above the tab bar */
}

/* ── Overlay ──────────────────────────────────────────────── */
.esa-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(0,0,0,0.72) 0%,
		rgba(0,0,0,0.30) 60%,
		rgba(0,0,0,0.08) 100%
	);
	z-index: 1;
}

/* ── Text content ─────────────────────────────────────────── */
.esa-slide-content {
	position: relative;
	z-index: 2;
	max-width: 600px;
	padding: 0 40px 0 60px;
	box-sizing: border-box;
}

/* Label */
.esa-slide-label {
	display: block;
	color: #f5c518;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 10px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.45s ease 0.15s, transform 0.45s ease 0.15s;
}

/* Heading */
.esa-slide-heading {
	color: #fff;
	font-size: clamp(22px, 3.2vw, 42px);
	font-weight: 700;
	line-height: 1.22;
	margin: 0 0 14px;
	letter-spacing: -0.01em;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease 0.28s, transform 0.5s ease 0.28s;
}

/* Description with yellow left border */
.esa-slide-description {
	color: rgba(255,255,255,0.82);
	font-size: clamp(13px, 1.3vw, 16px);
	line-height: 1.6;
	margin: 0;
	padding-left: 14px;
	border-left: 3px solid #f5c518;
	box-sizing: border-box;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease 0.42s, transform 0.5s ease 0.42s;
}

/* Animate in when slide is active */
.esa-slide.active .esa-slide-label,
.esa-slide.active .esa-slide-heading,
.esa-slide.active .esa-slide-description {
	opacity: 1;
	transform: translateY(0);
}

/* ── Bottom Tab Bar ───────────────────────────────────────── */
.esa-tab-bar {
	position: relative;
	z-index: 10;
	width: 100%;
	height: 56px;
	background-color: rgba(10,10,10,0.85);
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	flex-shrink: 0;
	box-sizing: border-box;
}

/* Tab nav — scrollable row on the left */
.esa-tabs-nav {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.esa-tabs-nav::-webkit-scrollbar { display: none; }

/* Individual tab button */
.esa-tab-item {
	/* Hard reset */
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: none;
	outline: none;
	margin: 0;
	box-sizing: border-box;

	/* Layout */
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0 22px;
	white-space: nowrap;
	flex-shrink: 0;

	/* Text */
	color: rgba(255,255,255,0.50);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: color 0.25s ease;
}

.esa-tab-item:hover {
	color: rgba(255,255,255,0.80);
}

/* Active tab underline */
.esa-tab-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: transparent;
	transition: background-color 0.25s ease;
}

.esa-tab-item.active {
	color: #ffffff;
	font-weight: 600;
}

.esa-tab-item.active::after {
	background-color: #f5c518;
}

/* ── Controls (prev / next / pause) ───────────────────────── */
.esa-controls {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 16px;
	flex-shrink: 0;
}

/* Control button */
.esa-ctrl-btn {
	/* Hard reset */
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	outline: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-size: 0;   /* kill any text-induced sizing */
	line-height: 1;

	/* Sizing */
	width: 38px;
	height: 38px;
	flex-shrink: 0;

	/* Style */
	border: 1.5px solid rgba(255,255,255,0.40);
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.esa-ctrl-btn:hover {
	background-color: rgba(255,255,255,0.15);
	border-color: rgba(255,255,255,0.70);
}

.esa-ctrl-btn:active {
	transform: scale(0.93);
}

.esa-ctrl-btn svg {
	display: block;
	width: 14px;
	height: 14px;
	pointer-events: none;
	flex-shrink: 0;
}

/* Pause btn is slightly larger icon visually */
.esa-ctrl-pause svg {
	width: 12px;
	height: 12px;
}

/* ── Transition helpers ────────────────────────────────────── */
/* Fade is the default; slide/zoom/flip below */
.esa-slide {
	transition: opacity 0.7s ease;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
	.esa-slide-content {
		padding: 0 20px 0 24px;
		max-width: 100%;
	}

	.esa-slide-image-area {
		padding-bottom: 48px;
	}

	.esa-tab-item {
		padding: 0 14px;
		font-size: 12px;
	}

	.esa-ctrl-btn {
		width: 32px;
		height: 32px;
	}

	.esa-controls {
		padding: 0 10px;
		gap: 4px;
	}
}

@media (max-width: 480px) {
	.esa-slide-content {
		padding: 0 16px;
	}

	.esa-tab-bar {
		flex-direction: column;
		height: auto;
	}

	.esa-tabs-nav {
		order: 1;
		border-top: 1px solid rgba(255,255,255,0.08);
	}

	.esa-controls {
		order: 0;
		justify-content: flex-end;
		padding: 8px 12px;
		width: 100%;
		box-sizing: border-box;
	}
}
