/**
 * Beauty Hero Banner - Frontend Styles
 */

.beauty-hero-banner {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.beauty-hero-banner.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
}

.beauty-hero-banner.alignwide {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto;
	margin-right: auto;
}

.beauty-hero-container {
	position: relative;
	width: 100%;
	min-height: var(--beauty-hero-min-height, 100vh);
	overflow: hidden;
}

.beauty-hero-slider {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* Desktop and Mobile slider containers */
.beauty-hero-slider-desktop,
.beauty-hero-slider-mobile {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Default: Show desktop images, hide mobile images */
.beauty-hero-slider-desktop {
	display: block;
}

.beauty-hero-slider-mobile {
	display: none;
}

.beauty-hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
	z-index: 1;
}

.beauty-hero-slide.is-active {
	opacity: 1;
	z-index: 2;
}

.beauty-hero-image {
	width: 100%;
	height: 100%;
	object-fit: var(--beauty-hero-image-fit, cover);
	object-position: center;
	display: block;
}

.beauty-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	pointer-events: none;
}

.beauty-hero-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 4;
	pointer-events: none;
}

.beauty-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.beauty-hero-arrow:hover {
	background: rgba(255, 255, 255, 1);
	transform: translateY(-50%) scale(1.1);
}

.beauty-hero-arrow:active {
	transform: translateY(-50%) scale(0.95);
}

.beauty-hero-arrow-prev {
	left: 20px;
}

.beauty-hero-arrow-next {
	right: 20px;
}

.beauty-hero-arrow svg {
	width: 24px;
	height: 24px;
	fill: #333;
}

.beauty-hero-dots {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.beauty-hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.beauty-hero-dot:hover {
	background: rgba(255, 255, 255, 0.8);
}

.beauty-hero-dot.is-active {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.3);
	transform: scale(1.2);
}

.beauty-hero-content {
	position: relative;
	z-index: 5;
	width: 100%;
	height: 100%;
	min-height: inherit;
	display: flex;
	padding: 40px;
	box-sizing: border-box;
}

/* Tablet */
@media (max-width: 1024px) {
	.beauty-hero-arrow {
		width: 44px;
		height: 44px;
	}
	
	.beauty-hero-arrow-prev {
		left: 15px;
	}
	
	.beauty-hero-arrow-next {
		right: 15px;
	}
	
	.beauty-hero-content {
		padding: 30px;
	}
}

/* Mobile - Show mobile images, hide desktop images */
@media (max-width: 768px) {
	.beauty-hero-container {
		min-height: var(--beauty-hero-min-height-mobile, auto);
	}
	
	/* Hide desktop images on mobile */
	.beauty-hero-slider-desktop {
		display: none;
	}
	
	/* Show mobile images on mobile */
	.beauty-hero-slider-mobile {
		display: block;
	}
	
	.beauty-hero-image {
		object-fit: var(--beauty-hero-image-fit-mobile, contain);
		object-position: center center;
	}
	
	.beauty-hero-arrow {
		width: 40px;
		height: 40px;
	}
	
	.beauty-hero-arrow-prev {
		left: 10px;
	}
	
	.beauty-hero-arrow-next {
		right: 10px;
	}
	
	.beauty-hero-dots {
		bottom: 20px;
		gap: 8px;
	}
	
	.beauty-hero-dot {
		width: 10px;
		height: 10px;
	}
	
	.beauty-hero-content {
		padding: 20px;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.beauty-hero-arrow {
		width: 36px;
		height: 36px;
	}
	
	.beauty-hero-arrow svg {
		width: 20px;
		height: 20px;
	}
	
	.beauty-hero-content {
		padding: 15px;
	}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.beauty-hero-slide {
		transition: none;
	}
	
	.beauty-hero-arrow,
	.beauty-hero-dot {
		transition: none;
	}
}

/* Print */
@media print {
	.beauty-hero-canvas,
	.beauty-hero-arrow,
	.beauty-hero-dots {
		display: none !important;
	}
	
	.beauty-hero-slide {
		position: relative;
		opacity: 1 !important;
	}
}
