/* Reviews page */
.reviews-page {
  background: #0b1326;
  color: #e8edff;
}

.reviews-hero {
  padding: calc(clamp(28px, 6vw, 52px) + 20px) 0 calc(clamp(28px, 6vw, 52px) - 20px);
  background: linear-gradient(180deg, rgba(9, 14, 28, 0.95), rgba(11, 16, 30, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reviews-hero__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(16px, 4vw, 28px);
  align-items: center;
}

.reviews-bars {
  background: linear-gradient(135deg, rgba(18, 27, 48, 0.94), rgba(12, 18, 36, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rating-row {
  display: grid;
  grid-template-columns: 70px 1fr 54px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.rating-row:first-of-type {
  margin-top: 4px;
}

.rating-label {
  color: #cbd7ff;
}

.rating-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.rating-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #93c5fd, #60a5fa);
  border-radius: inherit;
}

.rating-count {
  text-align: right;
  color: #e8edff;
  font-variant-numeric: tabular-nums;
}

.ratings-note {
  margin: 12px 0 0;
  color: #9fb1db;
  font-size: 12px;
}

.reviews-score {
  background: linear-gradient(145deg, rgba(20, 32, 62, 0.9), rgba(12, 18, 36, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 22px);
  display: grid;
  gap: 8px;
  text-align: center;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.score-value {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  color: #fefefe;
}

.score-stars {
  --score-star-fill: #ffffff;
  --score-star-empty: rgba(255, 255, 255, 0.3);
  letter-spacing: 3px;
  color: var(--score-star-fill);
  font-size: 20px;
  display: flex;
  gap: 4px;
  justify-content: center;
  width: 100%;
}

.score-star {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.score-star--half {
  color: var(--score-star-empty);
}

.score-star--half::after {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  display: block;
  color: var(--score-star-fill);
}

.score-count {
  margin: 0;
  color: #cbd7ff;
}

.score-disclaimer {
  margin: 0;
  color: #9fb1db;
  font-size: 13px;
}

.reviews-body {
  padding: calc(clamp(24px, 6vw, 52px) - 20px) 0 clamp(32px, 6vw, 64px);
}

.reviews-body__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(18px, 4vw, 32px);
  align-items: start;
}

.reviews-list {
  display: grid;
  gap: 14px;
}

.feedback-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 24, 46, 0.92), rgba(12, 18, 36, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feedback-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(68, 106, 173, 0.9), rgba(40, 68, 124, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #f7f9ff;
}

.feedback-content header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feedback-name {
  margin: 0;
  font-weight: 700;
}

.feedback-stars {
  margin: 0;
  color: #ffffff;
  letter-spacing: 2px;
}

.feedback-role {
  margin: 0;
  color: #9fb1db;
  font-size: 13px;
}

.feedback-quote {
  margin: 6px 0 0 0;
  color: #cdd8f5;
  line-height: 1.5;
}

.reviews-form {
  background: linear-gradient(180deg, rgba(16, 24, 46, 0.9), rgba(10, 16, 32, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: clamp(14px, 3vw, 18px);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 12px;
}

.review-form {
  display: grid;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
}

.rating-input {
  display: inline-flex;
  gap: 8px;
}

.rating-star {
  cursor: pointer;
  font-size: 22px;
  color: #bfcff5;
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease, transform 0.12s ease;
}

.rating-star.is-filled {
  color: #ffffff;
}

.rating-star:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.8);
  outline-offset: 2px;
}

.rating-star:hover {
  transform: translateY(-1px);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e8edff;
  padding: 12px 14px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(232, 237, 255, 0.65);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.review-submit {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #93c5fd, #60a5fa);
  color: #0c1326;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.reviews-vetting,
.reviews-privacy {
  margin: 6px 0 0 0;
  color: #9fb1db;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .reviews-hero__grid,
  .reviews-body__grid {
    grid-template-columns: 1fr;
  }
}

body.light-ui .reviews-page {
  background: #f8fafc;
  color: #0f172a;
}

body.light-ui .reviews-hero {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.9), rgba(241, 245, 249, 0.95));
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

body.light-ui .reviews-bars,
body.light-ui .reviews-score,
body.light-ui .feedback-card,
body.light-ui .reviews-form {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

body.light-ui .rating-label {
  color: #475569;
}

body.light-ui .rating-bar {
  background: rgba(15, 23, 42, 0.08);
}

body.light-ui .rating-bar span {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

body.light-ui .rating-count {
  color: #0f172a;
}

body.light-ui .ratings-note,
body.light-ui .score-disclaimer,
body.light-ui .feedback-role,
body.light-ui .reviews-vetting,
body.light-ui .reviews-privacy {
  color: #64748b;
}

body.light-ui .score-value {
  color: #0f172a;
}

body.light-ui .score-stars,
body.light-ui .feedback-stars,
body.light-ui .rating-star.is-filled {
  --score-star-fill: #f59e0b;
  --score-star-empty: rgba(245, 158, 11, 0.35);
  color: var(--score-star-fill);
}

body.light-ui .score-count {
  color: #475569;
}

body.light-ui .feedback-avatar {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}

body.light-ui .feedback-quote {
  color: #475569;
}

body.light-ui .rating-star {
  color: #cbd5e1;
}

body.light-ui .form-field input,
body.light-ui .form-field textarea {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-ui .form-field input::placeholder,
body.light-ui .form-field textarea::placeholder {
  color: #94a3b8;
}

body.light-ui .review-submit {
  background: linear-gradient(145deg, #2563eb, #3b82f6);
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.25);
}
