/* Trip Review for WP Travel Engine - Frontend Styles (Free Version) */

/* Tab Content Wrapper */
.trpre-tab-content-wrapper {
	padding: 20px 0;
}

.trpre-tab-content-wrapper .trpre-reviews-container {
	margin-bottom: 40px;
}

.trpre-tab-content-wrapper .trpre-review-form {
	margin-top: 40px;
}

/* Review Form Styles */
.trpre-review-form {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

.trpre-form-header h3 {
	margin: 0 0 15px 0;
	color: #333;
	font-size: 1.2em;
}

.trpre-login-notice {
	background: #f0f8ff;
	border: 1px solid #b3d9ff;
	border-radius: 4px;
	padding: 10px;
	margin-bottom: 15px;
	color: #0066cc;
}

.trpre-form-field {
	margin-bottom: 15px;
}

.trpre-form-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
}

.trpre-form-field .required {
	color: #e74c3c;
}

.trpre-input,
.trpre-textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s ease;
}

.trpre-input:focus,
.trpre-textarea:focus {
	outline: none;
	border-color: #007cba;
	box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.trpre-textarea {
	resize: vertical;
	min-height: 100px;
}

/* Star Rating Input */
.trpre-star-input {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
	align-items: center;
}

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

.trpre-form-field.trpre-rating-field label.star-label,
.trpre-star-input label.star-label {
	cursor: pointer;
	user-select: none;
	display: inline-block;
	position: relative;
}

.trpre-star-input .star-svg {
	width: 32px;
	height: 32px;
	transition: color 0.3s ease;
}

.trpre-star-input .star-line {
	color: #ddd;
	display: block;
}

.trpre-star-input .star-fill {
	color: #ffd700;
	display: none;
}

.trpre-star-input .star-label.trpre-star-hover .star-line {
	display: none !important;
}

.trpre-star-input .star-label.trpre-star-hover .star-fill {
	display: block !important;
	color: #ffd700;
}

.trpre-star-input .star-label.trpre-star-selected .star-line {
	display: none !important;
}

.trpre-star-input .star-label.trpre-star-selected .star-fill {
	display: block !important;
	color: #ffd700;
}

.trpre-rating-text {
	font-size: 14px;
	color: #666;
	font-style: italic;
}

/* Submit Button */
.trpre-submit-btn {
	background: #007cba;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.trpre-submit-btn:hover {
	background: #005a87;
}

.trpre-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Form Messages */
.trpre-form-messages {
	margin-top: 15px;
}

.trpre-message {
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.trpre-message.trpre-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.trpre-message.trpre-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* Reviews Container */
.trpre-reviews-container {
	margin: 20px 0;
}

.trpre-reviews-header {
	margin-bottom: 20px;
}

.trpre-reviews-title {
	margin: 0;
	color: #333;
	font-size: 1.5em;
}

/* Rating Summary */
.trpre-rating-summary {
	background: #fff;
	border: none;
	border-radius: 0;
	padding: 2rem;
	margin-bottom: 20px;
}

.trpre-rating-summary-content {
	display: flex;
	gap: 10px;
	align-items: center;
}

.trpre-rating-left-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex: 0 0 auto;
	min-width: 300px;
}

.trpre-rating-summary .trpre-rating-left-column .trpre-reviews-title {
	margin: 0 !important;
	color: #000;
	font-size: 1.5em;
	font-weight: bold;
	font-family: sans-serif;
}

.trpre-rating-number {
	margin-bottom: 5px;
}

.trpre-rating-number .trpre-average-rating {
	font-size: 3.5em;
	font-weight: bold;
	color: #000;
	font-family: sans-serif;
	line-height: 1;
}

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

.trpre-rating-left-column .trpre-rating-count {
	color: #000;
	font-size: 0.8em;
	margin-bottom: 20px;
	font-family: sans-serif;
}

.trpre-rating-right-column {
	flex: 1;
}

.trpre-breakdown-title {
	margin: 0 0 20px 0;
	color: #666;
	font-size: 14px;
	font-weight: normal;
	font-family: sans-serif;
}

.trpre-rating-overview {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
}

.trpre-rating-out-of {
	font-size: 0.6em;
	color: #666;
}

.trpre-rating-breakdown {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.trpre-rating-bar {
	display: flex;
	align-items: center;
	gap: 0;
}

.trpre-rating-label {
	min-width: 60px;
	font-size: 14px;
	color: #000;
	font-family: sans-serif;
}

.trpre-rating-bar-fill {
	flex: 1;
	height: 16px;
	background: #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}

.trpre-rating-bar-progress {
	background-color: var(--wpte-primary-color, var(--primary-color));
	height: 100%;
	border-radius: 8px;
	transition: width 0.3s ease;
}

.trpre-rating-bar .trpre-rating-count {
	min-width: 30px;
	text-align: right;
	font-size: 14px;
	color: #000;
	font-family: sans-serif;
	font-weight: normal;
}

/* Reviews List */
.trpre-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Single Review */
.trpre-review-item {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 20px;
	position: relative;
	overflow: hidden;
}

.trpre-review-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

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

.trpre-reviewer-avatar img {
	border-radius: 50%;
	width: 50px;
	height: 50px;
	box-shadow: none;
	border: 1px solid #d4edda;
}

.trpre-reviewer-name {
	font-weight: 600;
	color: #333;
	margin-bottom: -2px;
}

.trpre-review-date {
	font-size: 12px;
	color: #666;
}

.trpre-review-rating {
	display: flex;
	align-items: center;
}

/* Review Content */
.trpre-review-content {
	margin-bottom: 15px;
}

.trpre-review-title {
	margin: 0 0 10px 0;
	color: #333;
	font-size: 1.1em;
	font-weight: 600;
}

.trpre-review-text {
	color: #555;
	line-height: 1.6;
}

/* Load More Reviews */
.trpre-reviews-load-more {
	margin-top: 40px;
	text-align: center;
}

.trpre-load-more-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.trpre-load-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 32px;
	background: var(--wpte-primary-color, var(--primary-color));
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
	min-width: 250px;
}

.trpre-load-more-btn:hover:not(:disabled) {
	background: var(--wpte-primary-color, var(--primary-color));
	filter: brightness(130%);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.trpre-load-more-btn:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
}

.trpre-load-more-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.trpre-load-more-spinner {
	display: flex;
	align-items: center;
	gap: 8px;
}

.trpre-spinner {
	animation: trpre-spin 1s linear infinite;
}

@keyframes trpre-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.trpre-load-more-info {
	font-size: 14px;
	color: #666;
	font-weight: 500;
	padding: 8px 16px;
	background: #f8f9fa;
	border-radius: 4px;
	border: 1px solid #e9ecef;
}

/* No Reviews */
.trpre-no-reviews {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
}

/* Rating Display */
.trpre-rating-display {
	display: flex;
	align-items: center;
	gap: 10px;
}

.trpre-star-rating {
	display: inline-flex;
	gap: 2px;
	align-items: center;
}

.trpre-star-rating .star {
	display: inline-block;
	line-height: 1;
}

.trpre-star-rating .star .star-svg {
	width: 16px;
	height: 16px;
	transition: color 0.2s ease;
}

.trpre-star-rating .star-full .star-svg {
	color: var(--wpte-primary-color, var(--primary-color));
}

.trpre-star-rating .star-half .star-svg {
	color: var(--wpte-primary-color, var(--primary-color));
}

.trpre-star-rating .star-empty .star-svg {
	color: #ddd;
}

.trpre-numeric-rating {
	background-color: #ffffff;
	border: 1px solid var(--wpte-primary-color, var(--primary-color));
	color: var(--wpte-primary-color, var(--primary-color));
	padding: 6px 8px;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1em;
}

/* Responsive Design */
@media (max-width: 768px) {
	.trpre-rating-summary-content {
		flex-direction: column;
		gap: 30px;
	}

	.trpre-rating-left-column {
		min-width: auto;
	}

	.trpre-rating-overview {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.trpre-review-header {
		flex-direction: column;
		justify-content: space-between;
		align-items: flex-start;
		gap: 10px;
	}

	.trpre-load-more-btn {
		width: 100%;
		min-width: auto;
		padding: 12px 24px;
		font-size: 15px;
	}

	.trpre-load-more-info {
		font-size: 13px;
	}
}
