/**
 * DW250 Carousel Block - Styles
 *
 * @package DW250_Carousel_Block
 * @since 1.0.0
 */

/* ===========================================
   Carousel Wrapper & Container
   =========================================== */

.dw250-carousel-wrapper {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 0;
}

.dw250-carousel-header {
	text-align: center;
	margin-bottom: 3rem;
}

.dw250-carousel-title {
	font-family: 'Jost', sans-serif;
	font-size: 2.5rem;
	font-weight: 600;
	color: #1B3B6F;
	margin: 0 0 1rem 0;
}

.dw250-carousel-description {
	font-family: 'Roboto', sans-serif;
	font-size: 1.125rem;
	color: #666666;
	margin: 0;
}

.dw250-carousel-container {
	position: relative;
	padding: 0 60px;
}

/* ===========================================
   Carousel Track & Slides
   =========================================== */

.dw250-carousel-track-container {
	overflow: hidden;
	position: relative;
}

.dw250-carousel-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
	will-change: transform;
}

.dw250-carousel-slide {
	flex: 0 0 auto;
	flex-shrink: 0;
	padding: 0 15px;
	box-sizing: border-box;
	/* Width is set dynamically via JavaScript */
}

.dw250-carousel-slide-inner {
	background: #FFFFFF;
	border: 1px solid #E0E0E0;
	border-radius: 8px;
	padding: 2rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dw250-carousel-slide-inner:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   Slide Content
   =========================================== */

.dw250-carousel-slide-image {
	margin-bottom: 1.5rem;
	width: 96px;
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dw250-carousel-slide-image img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.dw250-carousel-slide-title {
	font-family: 'Jost', sans-serif;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1B3B6F;
	margin: 0 0 1rem 0;
}

.dw250-carousel-slide-content {
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #666666;
	margin: 0 0 1rem 0;
	flex-grow: 1;
}

.dw250-carousel-slide-content p {
	margin: 0 0 1rem 0;
}

.dw250-carousel-slide-content p:last-child {
	margin-bottom: 0;
}

.dw250-carousel-slide-branch {
	font-family: 'Jost', sans-serif;
	color: #1B3B6F;
	text-align: center;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #E0E0E0;
}

.dw250-carousel-slide-branch-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-bottom: 0.75rem;
}

.dw250-carousel-branch-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.dw250-carousel-branch-icon:hover {
	transform: scale(1.1);
	opacity: 0.8;
}

.dw250-carousel-branch-icon img {
	width: 48px;
	height: 48px;
	display: block;
}

.dw250-carousel-slide-branch-text {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dw250-carousel-slide-rating {
	font-size: 1.5rem;
	color: #F0A202;
	margin-top: 0.75rem;
}

.dw250-carousel-slide-link {
	display: inline-block;
	padding: 0.5rem 1.5rem;
	background-color: #8B0000;
	color: #FFFFFF;
	text-decoration: none;
	border-radius: 4px;
	font-family: 'Jost', sans-serif;
	font-weight: 500;
	transition: background-color 0.3s ease;
	margin-top: auto;
}

.dw250-carousel-slide-link:hover {
	background-color: #9d0208;
}

/* ===========================================
   Navigation Arrows
   =========================================== */

.dw250-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	background-color: #FFFFFF;
	border: 2px solid #1B3B6F;
	border-radius: 50%;
	color: #1B3B6F;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
	outline: none;
}

.dw250-carousel-arrow:hover,
.dw250-carousel-arrow:focus {
	background-color: #1B3B6F;
	color: #FFFFFF;
	box-shadow: 0 4px 12px rgba(27, 59, 111, 0.3);
}

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

.dw250-carousel-arrow--prev {
	left: 0;
}

.dw250-carousel-arrow--next {
	right: 0;
}

.dw250-carousel-arrow svg {
	width: 24px;
	height: 24px;
}

/* ===========================================
   Dots Navigation
   =========================================== */

.dw250-carousel-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 2rem;
}

.dw250-carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #CCCCCC;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
	outline: none;
}

.dw250-carousel-dot:hover,
.dw250-carousel-dot:focus {
	background-color: #8B0000;
	transform: scale(1.2);
}

.dw250-carousel-dot.active {
	background-color: #1B3B6F;
	width: 32px;
	border-radius: 6px;
}

/* ===========================================
   Empty State
   =========================================== */

.dw250-carousel-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #666666;
	font-family: 'Roboto', sans-serif;
}

/* ===========================================
   Editor Preview
   =========================================== */

.dw250-carousel-editor-preview {
	border: 2px dashed #CCCCCC;
	border-radius: 8px;
	padding: 1rem;
	background-color: #F5F5F5;
	min-height: 200px;
}

/* ===========================================
   Responsive Design
   =========================================== */

/* Tablet */
@media screen and (max-width: 992px) {
	.dw250-carousel-title {
		font-size: 2rem;
	}

	.dw250-carousel-container {
		padding: 0 50px;
	}

	.dw250-carousel-arrow {
		width: 40px;
		height: 40px;
	}

	.dw250-carousel-arrow svg {
		width: 20px;
		height: 20px;
	}
}

/* Mobile */
@media screen and (max-width: 768px) {
	.dw250-carousel-wrapper {
		padding: 1.5rem 0;
	}

	.dw250-carousel-header {
		margin-bottom: 2rem;
	}

	.dw250-carousel-title {
		font-size: 1.75rem;
	}

	.dw250-carousel-description {
		font-size: 1rem;
	}

	.dw250-carousel-container {
		padding: 0 45px;
	}

	.dw250-carousel-slide {
		padding: 0 10px;
	}

	.dw250-carousel-slide-inner {
		padding: 1.5rem;
	}

	.dw250-carousel-arrow {
		width: 36px;
		height: 36px;
	}

	.dw250-carousel-arrow svg {
		width: 18px;
		height: 18px;
	}

	.dw250-carousel-dots {
		gap: 8px;
		margin-top: 1.5rem;
	}

	.dw250-carousel-dot {
		width: 10px;
		height: 10px;
	}

	.dw250-carousel-dot.active {
		width: 24px;
	}

	.dw250-carousel-branch-icon img {
		width: 40px;
		height: 40px;
	}

	.dw250-carousel-slide-branch-icons {
		gap: 10px;
	}

	.dw250-carousel-slide-branch-text {
		font-size: 0.8125rem;
	}
}

/* Small mobile */
@media screen and (max-width: 480px) {
	.dw250-carousel-title {
		font-size: 1.5rem;
	}

	.dw250-carousel-container {
		padding: 0 40px;
	}

	.dw250-carousel-slide-title {
		font-size: 1.125rem;
	}

	.dw250-carousel-slide-content {
		font-size: 0.9375rem;
	}
}

/* ===========================================
   Testimonials Disclaimer
   =========================================== */

.dw250-carousel-disclaimer {
	text-align: center;
	margin-top: 1.5rem;
	position: relative;
}

.dw250-carousel-disclaimer__preview {
	font-size: 12px;
	color: #999999;
	font-style: italic;
	cursor: pointer;
	margin: 0;
	padding: 4px 8px;
	display: inline-block;
	transition: color 0.2s ease;
	background: none;
	border: none;
}

.dw250-carousel-disclaimer__preview:hover,
.dw250-carousel-disclaimer__preview:focus {
	color: #555555;
	text-decoration: underline;
	outline: none;
}

.dw250-carousel-disclaimer__popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.5);
	align-items: center;
	justify-content: center;
}

.dw250-carousel-disclaimer__popup.active {
	display: flex;
}

.dw250-carousel-disclaimer__popup-content {
	background: #FFFFFF;
	border-radius: 8px;
	padding: 2rem;
	max-width: 540px;
	width: 90%;
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dw250-carousel-disclaimer__popup-content p {
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	color: #555555;
	line-height: 1.6;
	margin: 0;
}

.dw250-carousel-disclaimer__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	color: #999999;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
}

.dw250-carousel-disclaimer__close:hover {
	color: #333333;
}

.dw250-carousel-disclaimer--full p {
	font-size: 12px;
	color: #999999;
	font-style: italic;
	margin: 0;
	padding: 4px 8px;
	line-height: 1.6;
}

/* ===========================================
   Accessibility
   =========================================== */

.dw250-carousel-arrow:focus-visible,
.dw250-carousel-dot:focus-visible {
	outline: 2px solid #F0A202;
	outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.dw250-carousel-track,
	.dw250-carousel-slide-inner,
	.dw250-carousel-arrow,
	.dw250-carousel-dot {
		transition: none !important;
	}
}
