/**
 * TiorAI User Hub — reviews.css
 *
 * Reviews section, star picker, and account reviews page.
 * Canonical version migrated from theme (C-009).
 */

/* ── Reviews section ─────────────────────────────────────────────────────── */

.tiorai-reviews-section {
	margin-top: 48px;
}

/* ── Summary / average ───────────────────────────────────────────────────── */

.tiorai-reviews-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
}

.tiorai-avg-rating {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: #111827;
}

.tiorai-review-count {
	font-size: 0.875rem;
	color: #6b7280;
}

/* ── Stars ───────────────────────────────────────────────────────────────── */

.tiorai-stars {
	display: inline-flex;
	gap: 2px;
}

.tiorai-stars .tiorai-star {
	font-size: 1.125rem;
	color: #d1d5db;
}

.tiorai-stars .tiorai-star.filled {
	color: #f59e0b;
}

/* ── Review list ─────────────────────────────────────────────────────────── */

.tiorai-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
}

.tiorai-review-item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 18px 20px;
}

.tiorai-review-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.tiorai-reviewer-name {
	font-weight: 600;
	color: #111827;
}

.tiorai-review-date {
	font-size: 0.8125rem;
	color: #9ca3af;
	margin-left: auto;
}

.tiorai-review-body {
	font-size: 0.9375rem;
	color: #374151;
	line-height: 1.6;
}

.tiorai-no-reviews {
	color: #6b7280;
	font-style: italic;
}

/* ── Review form ─────────────────────────────────────────────────────────── */

.tiorai-review-form-wrap {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 24px;
}

.tiorai-review-form-wrap h3 {
	margin: 0 0 16px;
	font-size: 1.125rem;
	font-weight: 600;
}

/* ── Star picker ─────────────────────────────────────────────────────────── */

.tiorai-star-picker {
	display: flex;
	gap: 4px;
	margin-bottom: 14px;
}

.tiorai-star-picker .tiorai-star {
	font-size: 1.75rem;
	color: #d1d5db;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.1s;
}

.tiorai-star-picker .tiorai-star:hover,
.tiorai-star-picker .tiorai-star.selected {
	color: #f59e0b;
}

/* ── Textarea ────────────────────────────────────────────────────────────── */

.tiorai-review-text {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.9375rem;
	resize: vertical;
	margin-bottom: 12px;
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.tiorai-review-text:focus {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ── Messages ────────────────────────────────────────────────────────────── */

.tiorai-review-error {
	color: #dc2626;
	font-size: 0.875rem;
	margin-bottom: 10px;
}

.tiorai-review-success {
	color: #16a34a;
	font-size: 0.875rem;
	margin-bottom: 10px;
}

/* ── Submit button ───────────────────────────────────────────────────────── */

.tiorai-review-submit {
	padding: 10px 24px;
	background: #6366f1;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.tiorai-review-submit:hover {
	background: #4f46e5;
}

.tiorai-review-submit:disabled {
	opacity: 0.6;
	pointer-events: none;
}

.tiorai-login-to-review {
	font-size: 0.9375rem;
	color: #6b7280;
}

.tiorai-login-to-review a {
	color: #6366f1;
	text-decoration: underline;
}

/* ── Account reviews page ────────────────────────────────────────────────── */

.tiorai-my-reviews-page {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
}

.tiorai-my-reviews-page h1 {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 32px;
}

.tiorai-my-review-item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 20px;
}

.tiorai-my-review-tool {
	font-weight: 600;
	color: #111827;
	text-decoration: none;
	font-size: 1rem;
}

.tiorai-my-review-tool:hover {
	color: #6366f1;
}

.tiorai-review-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tiorai-review-status.approved {
	background: #dcfce7;
	color: #16a34a;
}

.tiorai-review-status.pending {
	background: #fef9c3;
	color: #ca8a04;
}

.tiorai-no-reviews-msg {
	text-align: center;
	padding: 60px 20px;
	color: #6b7280;
}
