/* Review Section Styles with Helpful Votes */
/* TriValley Vine Color Palette */

.bd-reviews-section {
	margin: 60px 0;
}

.bd-reviews-section h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 32px;
	font-weight: 700;
	color: #1a3a4a;
	margin-bottom: 24px;
}

.bd-rating-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
	padding: 20px;
	background: #f0f5f8;
	border-radius: 12px;
	border-left: 4px solid #7a9eb8;
}

.bd-rating-summary .bd-stars {
	font-size: 24px;
	color: #7a9eb8;
}

.bd-rating-summary span {
	font-size: 18px;
	font-weight: 600;
	color: #1a3a4a;
}

/* Reviews List */
.bd-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 48px;
}

.bd-review-card {
	background: white;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 12px rgba(26, 58, 74, 0.08);
	border-left: 3px solid #7a9eb8;
	transition: all 0.3s ease;
}

.bd-review-card:hover {
	box-shadow: 0 8px 24px rgba(26, 58, 74, 0.12);
	transform: translateY(-2px);
}

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

.bd-review-author-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bd-review-author-info img {
	border-radius: 50%;
	border: 2px solid #a8c4d4;
}

.bd-review-author-info strong {
	font-size: 16px;
	font-weight: 600;
	color: #1a3a4a;
}

.bd-review-date {
	font-size: 13px;
	color: #5d7a8c;
	margin-top: 2px;
}

.bd-review-header .bd-stars {
	font-size: 18px;
	color: #7a9eb8;
}

.bd-review-title {
	font-size: 18px;
	font-weight: 700;
	color: #1a3a4a;
	margin: 0 0 12px 0;
}

.bd-review-content {
	font-size: 15px;
	line-height: 1.7;
	color: #1a1a1a;
	margin: 0 0 16px 0;
}

.bd-review-photos {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.bd-review-photos img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.2s;
}

.bd-review-photos img:hover {
	transform: scale(1.05);
}

/* ============================================================================
	HELPFUL VOTE BUTTON
	========================================================================= */

.bd-review-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid #a8c4d4;
}

.bd-helpful-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: white;
	border: 2px solid #7a9eb8;
	border-radius: 8px;
	color: #1a3a4a;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bd-helpful-btn:hover {
	background: #f0f5f8;
	border-color: #5d7a8c;
	color: #2CB1BC;
	transform: translateY(-2px);
}

.bd-helpful-btn:hover svg {
	stroke: white;
}

.bd-helpful-btn svg {
	width: 16px;
	height: 16px;
	stroke: #7a9eb8;
	transition: all 0.2s ease;
}

.bd-helpful-btn:hover svg {
	stroke: #5d7a8c;
}

.bd-helpful-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	background: #f0f5f8;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	color: #1a3a4a;
}

/* Voted State */
.bd-helpful-btn.bd-helpful-voted {
	background: linear-gradient(135deg, #1a3a4a 0%, #1e4258 100%);
	border-color: #1a3a4a;
	color: #a8c4d4;
	cursor: default;
}

.bd-helpful-btn.bd-helpful-voted:hover {
	transform: none;
}

.bd-helpful-btn.bd-helpful-voted svg {
	fill: #a8c4d4;
	stroke: #a8c4d4;
}

.bd-helpful-btn.bd-helpful-voted .bd-helpful-count {
	background: rgba(168, 196, 212, 0.2);
	color: #a8c4d4;
}

/* Animation when clicked */
@keyframes helpful-pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

.bd-helpful-btn.bd-helpful-animate {
	animation: helpful-pulse 0.6s ease;
}

/* No Reviews State */
.bd-no-reviews {
	text-align: center;
	padding: 48px 24px;
	background: var(--global-palette1);
	border-radius: 12px;
	color: #5d7a8c;
	font-size: 16px;
	font-style: italic;
}

/* Write Review Section */
.bd-write-review-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	font-weight: 700;
	color: #1a3a4a;
	margin: 48px 0 24px 0;
}

/* Form Styles */
.bd-form {
	background: white;
	padding: 32px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(26, 58, 74, 0.08);
	border-top: 3px solid #7a9eb8;
}

.bd-form-row {
	margin-bottom: 24px;
}

.bd-form-row label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1a3a4a;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bd-form-row .required {
	color: #1e4258;
}

.bd-form-row input[type="text"],
.bd-form-row input[type="email"],
.bd-form-row textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #a8c4d4;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	transition: all 0.2s ease;
}

.bd-form-row input:focus,
.bd-form-row textarea:focus {
	outline: none;
	border-color: #7a9eb8;
	box-shadow: 0 0 0 3px rgba(122, 158, 184, 0.15);
}

.bd-form-row textarea {
	resize: vertical;
	min-height: 120px;
}

.bd-form-row .description {
	font-size: 13px;
	color: #5d7a8c;
	margin-top: 6px;
	font-style: italic;
}

/* Star Rating */
.bd-star-rating {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
}

.bd-star-rating input {
	display: none;
}

.bd-star-rating label {
	font-size: 32px;
	color: #a8c4d4;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bd-star-rating label:hover,
.bd-star-rating label:hover ~ label,
.bd-star-rating input:checked ~ label {
	color: #7a9eb8;
}

/* Submit Button */
.bd-btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
}

.bd-btn-primary {
	background: linear-gradient(135deg, #1a3a4a 0%, #1e4258 100%);
	color: #a8c4d4;
	box-shadow: 0 4px 12px rgba(26, 58, 74, 0.3);
}

.bd-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(26, 58, 74, 0.4);
}

.bd-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Messages */
#bd-review-message {
	margin-top: 16px;
}

.bd-success {
	padding: 16px;
	background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
	border: 2px solid #4CAF50;
	border-radius: 8px;
	color: #2E7D32;
	font-weight: 600;
}

.bd-error {
	padding: 16px;
	background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%);
	border: 2px solid #F44336;
	border-radius: 8px;
	color: #C62828;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
	.bd-review-header {
		flex-direction: column;
		gap: 12px;
	}

	.bd-form {
		padding: 20px;
	}

	.bd-star-rating label {
		font-size: 28px;
	}
}
