﻿/* ==========================================================================
   STYLE LIBRARY (image switcher)
   Markup lives in: page-templates/home.php (section "6. STYLE LIBRARY")
   Switcher behavior lives in: assets/js/main.js
   ========================================================================== */

.style-library__head { margin-bottom: var(--space-lg); }

.style-library__stage {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	min-height: 480px;
}

.style-library__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease;
	z-index: 1;
}

.style-library__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.style-library__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(var(--color-primary-rgb, 61, 94, 142), 0.85) 0%, rgba(var(--color-primary-rgb, 61, 94, 142), 0.85) 35%, transparent 70%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--space-2xl);
	max-width: 480px;
	color: var(--color-white);
}

.style-library__tag {
	color: var(--color-accent, #FE5C08);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	font-size: 13px;
	border-bottom: 2px solid var(--color-accent, #FE5C08);
	display: inline-block;
	padding-bottom: 4px;
	margin-bottom: var(--space-sm);
	width: fit-content;
}

.style-library__overlay h3 { color: var(--color-white); }
.style-library__overlay p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-md); }
.style-library__ctas {
	display: flex;
	gap: var(--space-sm);
}

.style-library__ctas .btn {
	flex: 1;
	text-align: center;
}

.style-library__thumbs {
	position: absolute;
	bottom: var(--space-md);
	right: var(--space-md);
	display: flex;
	gap: 8px;
	z-index: 2;
}

.style-library__thumb {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: none;
}

.style-library__thumb.is-active { border-color: var(--color-accent, #FE5C08); }

.style-library__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
	.style-library__stage { min-height: 570px; }
	.style-library__overlay {
		max-width: 100%;
		padding: var(--space-lg);
		/* Keep the copy and button clear of the circle thumbs. */
		padding-bottom: 116px;
	}
	.style-library__thumbs {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 16px;
		z-index: 5;
		justify-content: center;
		padding: 0;
		margin: 0;
		background: transparent;
	}
}

@media (max-width: 768px) {
	.style-library__thumbs {
		display: flex;
		position: absolute;
		left: 0;
		right: 0;
		bottom: 16px;
		z-index: 5;
		justify-content: center;
		align-items: center;
		gap: 12px;
		margin: 0;
		padding: 0;
		background: transparent;
	}

	.style-library__thumb {
		width: 58px;
		height: 58px;
		min-width: 58px;
		min-height: 58px;
		flex-shrink: 0;
		border-radius: 50%;
		overflow: hidden;
		border: 2px solid transparent;
		padding: 0;
		background: none;
	}

	.style-library__thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 50%;
		display: block;
	}

	.style-library__thumb.is-active {
		border-color: var(--color-accent, #FE5C08);
		transform: scale(1.08);
	}

	.style-library__ctas {
		margin-top: 10px;
	}
}