/**
* Clover Reviews Module
*
* @author Cloverfield
* @copyright 2026
* @license MIT
*/

.clover-reviews-container {
	max-width: 1200px;
	margin: 40px auto;
	font-family: 'Google Sans', Roboto, Arial, sans-serif;
	color: #333333;
}

.clover-reviews-main-title {
	font-size: 24px;
	font-weight: 400;
	color: #202124;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #dadce0;
}

/* Top sectie: Reviews summary en formulier naast elkaar */
.clover-top-section {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 48px;
	margin-bottom: 48px;
}

.clover-reviews-header {
	margin-bottom: 0;
	padding-bottom: 24px;
	border-bottom: 1px solid #dadce0;
}

.clover-reviews-summary {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 48px;
	align-items: center;
}

.clover-average-rating {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	min-width: 150px;
}

.rating-number {
	font-size: 56px;
	font-weight: 400;
	line-height: 1;
	color: #202124;
	margin-bottom: 8px;
}

.rating-stars {
	display: flex;
	gap: 2px;
	margin-bottom: 8px;
}

.rating-stars .star {
	font-size: 20px;
	color: #e8eaed;
}

.rating-stars .star.filled {
	color: #F18800;
}

.rating-stars .star.half {
	background: linear-gradient(90deg, #F18800 50%, #e8eaed 50%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.rating-count {
	font-size: 14px;
	color: #5f6368;
}

.rating-breakdown {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rating-bar-container {
	display: block;
	width: 100%;
}

.rating-filter-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 6px 0;
	background: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.rating-filter-btn:hover:not(.disabled) {
	background-color: #f8f9fa;
}

.rating-filter-btn.disabled {
	cursor: default;
	opacity: 0.5;
}

.rating-filter-btn.active {
	background-color: #e8f0fe;
}

.rating-label {
	font-size: 13px;
	color: #75b546;
	min-width: 60px;
	text-align: left;
	text-decoration: none;
}

.rating-filter-btn:hover:not(.disabled) .rating-label {
	text-decoration: underline;
}

.rating-bar-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
}

.rating-bar-bg {
	width: 100%;
	height: 8px;
	background-color: #e8eaed;
	border-radius: 4px;
	overflow: hidden;
}

.rating-bar-fill {
	height: 100%;
	background-color: #F18800;
	transition: width 0.3s ease;
}

.rating-count-label {
	font-size: 13px;
	color: #5f6368;
	min-width: 30px;
	text-align: right;
}

.rating-filter-clear {
	margin-top: 12px;
	padding: 8px 16px;
	background-color: #75b546;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.rating-filter-clear:hover {
	background-color: #f18800;
}

/* Review formulier styling */
.clover-review-form-container {
	background-color: #f1f1f1;
	padding: 24px;
	border-radius: 8px;
	/*border: 1px solid #dadce0;*/
	height: fit-content;
}

.review-form-title {
	font-size: 18px;
	font-weight: 500;
	color: #202124;
	margin-bottom: 20px;
}

.clover-review-form .form-group {
	margin-bottom: 16px;
}

.clover-review-form label {
	font-size: 13px;
	font-weight: 500;
	color: #202124;
	margin-bottom: 6px;
	display: block;
}

.clover-review-form .required {
	color: #d93025;
}

.clover-review-form .form-control {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #dadce0;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.clover-review-form .form-control:focus {
	outline: none;
	border-color: #75b546;
	box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.clover-review-form textarea.form-control {
	resize: vertical;
	min-height: 80px;
}

.clover-review-form .form-text {
	font-size: 11px;
	color: #5f6368;
	margin-top: 4px;
	display: block;
}

/* Star rating input */
.star-rating-input {
	display: flex;
	gap: 4px;
	font-size: 28px;
}

.star-rating-input input[type="radio"] {
	display: none;
}

.star-rating-input label {
	color: #b2b2b2;
	cursor: pointer;
	transition: color 0.2s;
	margin: 0;
	padding: 0;
	line-height: 1;
}

.clover-review-form .btn {
	padding: 10px 24px;
	background-color: #75B546;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
}

.clover-review-form .btn:hover {
	background-color: #f18800;
}

.clover-message {
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 4px;
	font-size: 14px;
}

.clover-message.alert-success {
	background-color: #e6f4ea;
	border: 1px solid #75B546;
	color: #137333;
}

.clover-message.alert-danger {
	background-color: #fce8e6;
	border: 1px solid #d93025;
	color: #c5221f;
}

.clover-message ul {
	margin: 0;
	padding-left: 20px;
}

/* Reviews Carousel - 3 tegelijk */
.clover-reviews-carousel {
	position: relative;
	margin-bottom: 32px;
}

.reviews-carousel-wrapper {
	overflow: hidden;
	position: relative;
}

.reviews-carousel-track {
	display: flex;
	gap: 24px;
	transition: transform 0.4s ease;
	width: 100%;
}

.clover-review-item {
	min-width: calc(33.333% - 16px);
	flex-shrink: 0;
	padding: 24px;
	background: #ffffff;
	border: 1px solid #dadce0;
	border-radius: 8px;
	box-sizing: border-box;
}

.clover-review-item.hidden {
	display: none;
}

.label, label {
  text-align: left !important;
}

.review-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
}

.reviewer-info {
	display: flex;
	align-items: center;
	gap: 16px;
}

.reviewer-photo,
.reviewer-photo-placeholder {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.reviewer-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.reviewer-photo-placeholder {
	background-color: #FF8D00;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	font-weight: 500;
}

.reviewer-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.reviewer-name {
	font-size: 16px;
	font-weight: 500;
	color: #202124;
}

.review-date {
	font-size: 13px;
	color: #5f6368;
}

.review-rating {
	display: flex;
	gap: 2px;
}

.review-rating .star {
	font-size: 18px;
	color: #e8eaed;
}

.review-rating .star.filled {
	color: #FF8D00;
}

.review-content {
	margin-bottom: 16px;
}

.review-text {
	font-size: 15px;
	line-height: 1.6;
	color: #202124;
	margin: 0;
	word-wrap: break-word;
}

.shop-reply {
	background-color: #f8f9fa;
	border-left: 3px solid #75B546;
	padding: 16px;
	margin-top: 16px;
	border-radius: 4px;
}

.shop-reply-header {
	margin-bottom: 8px;
}

.shop-reply-header strong {
	font-size: 13px;
	color: #75B546;
	font-weight: 500;
}

.shop-reply-text {
	font-size: 13px;
	line-height: 1.6;
	color: #5f6368;
	margin: 0;
}

/* Carousel Navigation */
.carousel-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
}

.carousel-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #dadce0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 20px;
	color: #5f6368;
}

.carousel-btn:hover:not(:disabled) {
	background: #f8f9fa;
	border-color: #75B546;
	color: #75B546;
}

.carousel-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.carousel-dots {
	display: flex;
	gap: 8px;
}

.carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #dadce0;
	cursor: pointer;
	transition: background 0.2s;
}

.carousel-dot.active {
	background: #75B546;
	width: 24px;
	border-radius: 4px;
}

.no-reviews,
.no-reviews-filtered {
	text-align: center;
	padding: 60px 20px;
	color: #5f6368;
}

.no-reviews p,
.no-reviews-filtered p {
	font-size: 16px;
	margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
	.clover-top-section {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.clover-review-item {
		min-width: calc(50% - 12px);
	}
}

@media (max-width: 768px) {
	.clover-reviews-container {
		margin: 20px 16px;
	}

	.clover-reviews-summary {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.rating-number {
		font-size: 48px;
	}

	.clover-review-item {
		min-width: 100%;
		padding: 20px;
	}

	.reviewer-photo,
	.reviewer-photo-placeholder {
		width: 40px;
		height: 40px;
	}

	.reviewer-photo-placeholder {
		font-size: 18px;
	}

	.rating-breakdown {
		width: 100%;
	}

	.star-rating-input {
		font-size: 24px;
	}

	.clover-review-form-container {
		padding: 16px;
	}
}
