/**
 * Star Reviews Block Styles
 * Homepage customer reviews with star ratings
 *
 * @package Kloira
 * @since 1.0.0
 */

/* ==========================================================================
   Section Container
   ========================================================================== */

.star-reviews {
	width: 100%;
	padding: 80px 0;
	background: #FFFFFF;
}

.star-reviews__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	max-width: 1490px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   Title
   ========================================================================== */

.star-reviews__title {
	width: 100%;
	margin: 0;
	font-family: 'DM Serif Display', Georgia, serif;
	font-style: normal;
	font-weight: 400;
	font-size: 44px;
	line-height: 60px;
	text-align: center;
	color: #111111;
}

/* ==========================================================================
   Slider
   ========================================================================== */

.star-reviews__slider-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

.star-reviews__slider-container {
	position: relative;
	width: 100%;
	max-width: 1440px;
	overflow: hidden;
}

.star-reviews__slider-track {
	display: flex;
	gap: 24px;
	transition: transform 0.4s ease;
}

/* ==========================================================================
   Fade Overlays (White shadows on sides)
   ========================================================================== */

.star-reviews__fade {
	position: absolute;
	top: 0;
	width: 246px;
	height: 100%;
	z-index: 5;
	pointer-events: none;
}

.star-reviews__fade--left {
	left: 0;
	background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.star-reviews__fade--right {
	right: 0;
	background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

/* ==========================================================================
   Navigation Arrows
   ========================================================================== */

.star-reviews__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 1.5px solid #888888;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
	color: #888888;
}

.star-reviews__nav:hover:not(:disabled) {
	border-color: #111111;
	color: #111111;
}

/* Infinite loop - buttons are always active */

.star-reviews__nav--prev {
	left: -25px;
}

.star-reviews__nav--next {
	right: -25px;
}

/* ==========================================================================
   Review Card
   ========================================================================== */

.star-reviews__card {
	flex: 0 0 900px;
	width: 900px;
	height: 309px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 50px 140px;
	box-sizing: border-box;
}

.star-reviews__card-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: 620px;
}

/* ==========================================================================
   Trust Stars
   ========================================================================== */

.star-reviews__stars {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
}

.star-reviews__star {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.star-reviews__star svg {
	width: 32px;
	height: 32px;
}

/* ==========================================================================
   Review Text
   ========================================================================== */

.star-reviews__text {
	margin: 0;
	font-family: 'Roboto Flex', sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 24px;
	line-height: 34px;
	text-align: center;
	color: #111111;
}

/* ==========================================================================
   Author
   ========================================================================== */

.star-reviews__author {
	margin: 32px 0 0;
	font-family: 'Roboto Flex', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 19px;
	text-align: center;
	color: #888888;
}

.star-reviews__author a,
.star-reviews__source {
	text-decoration: underline;
	color: #888888;
	transition: color 0.3s ease;
}

.star-reviews__author a:hover {
	color: #111111;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1500px) {
	.star-reviews__nav--prev {
		left: 10px;
	}
	
	.star-reviews__nav--next {
		right: 10px;
	}
	
	.star-reviews__fade {
		width: 150px;
	}
}

@media (max-width: 1200px) {
	.star-reviews {
		padding: 60px 0;
	}
	
	.star-reviews__container {
		gap: 40px;
	}
	
	.star-reviews__title {
		font-size: 38px;
		line-height: 52px;
	}
	
	.star-reviews__card {
		flex: 0 0 700px;
		width: 700px;
		height: 280px;
		padding: 40px 80px;
	}
	
	.star-reviews__text {
		font-size: 22px;
		line-height: 32px;
	}
	
	.star-reviews__fade {
		width: 120px;
	}
}

@media (max-width: 992px) {
	.star-reviews {
		padding: 50px 0;
	}
	
	.star-reviews__container {
		gap: 32px;
	}
	
	.star-reviews__title {
		font-size: 32px;
		line-height: 44px;
	}
	
	.star-reviews__card {
		flex: 0 0 500px;
		width: 500px;
		height: 260px;
		padding: 32px 40px;
	}
	
	.star-reviews__text {
		font-size: 18px;
		line-height: 28px;
	}
	
	.star-reviews__star {
		width: 28px;
		height: 28px;
	}
	
	.star-reviews__star svg {
		width: 28px;
		height: 28px;
	}
	
	.star-reviews__nav {
		width: 44px;
		height: 44px;
	}
	
	.star-reviews__nav--prev {
		left: 5px;
	}
	
	.star-reviews__nav--next {
		right: 5px;
	}
	
	.star-reviews__fade {
		width: 80px;
	}
}

@media (max-width: 768px) {
	.star-reviews {
		padding: 40px 0;
	}
	
	.star-reviews__container {
		gap: 28px;
		padding: 0 16px;
	}
	
	.star-reviews__title {
		font-size: 26px;
		line-height: 36px;
	}
	
	.star-reviews__card {
		flex: 0 0 320px;
		width: 320px;
		height: auto;
		min-height: 240px;
		padding: 28px 24px;
	}
	
	.star-reviews__card-content {
		gap: 16px;
	}
	
	.star-reviews__text {
		font-size: 16px;
		line-height: 24px;
	}
	
	.star-reviews__star {
		width: 24px;
		height: 24px;
	}
	
	.star-reviews__star svg {
		width: 24px;
		height: 24px;
	}
	
	.star-reviews__author {
		margin-top: 20px;
		font-size: 14px;
	}
	
	.star-reviews__nav {
		width: 40px;
		height: 40px;
	}
	
	.star-reviews__fade {
		width: 50px;
	}
}

@media (max-width: 576px) {
	.star-reviews {
		padding: 32px 0;
	}
	
	.star-reviews__container {
		gap: 24px;
	}
	
	.star-reviews__title {
		font-size: 22px;
		line-height: 30px;
	}
	
	.star-reviews__card {
		flex: 0 0 280px;
		width: 280px;
		min-height: 220px;
		padding: 24px 20px;
	}
	
	.star-reviews__text {
		font-size: 14px;
		line-height: 22px;
	}
	
	.star-reviews__star {
		width: 20px;
		height: 20px;
	}
	
	.star-reviews__star svg {
		width: 20px;
		height: 20px;
	}
	
	.star-reviews__nav {
		width: 36px;
		height: 36px;
	}
	
	.star-reviews__nav svg {
		width: 12px;
		height: 10px;
	}
	
	.star-reviews__fade {
		width: 40px;
	}
}
