/* =====================================================================
 * Reviews & Ratings — Standalone styles
 * Used only on pages that include the reviews section
 * ===================================================================== */

/* ---------- Summary block ---------- */
.review-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 1rem;
}

.review-summary-avg {
  text-align: center;
  flex-shrink: 0;
}

.review-big-num {
  font-size: 3rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1;
}

.review-big-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin: .35rem 0;
  letter-spacing: 2px;
}

.review-big-count {
  font-size: .82rem;
  color: #78716c;
  font-weight: 500;
}

/* ---------- Review list ---------- */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  border: 1px solid #e6e9ef;
  border-radius: .85rem;
  padding: 1rem 1.15rem;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.review-item:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  border-color: #fde68a;
}

.review-item-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-item-meta { flex: 1; min-width: 0; }

.review-item-name {
  font-weight: 700;
  font-size: .95rem;
  color: #1e3c72;
  line-height: 1.2;
}

.review-item-date {
  font-size: .78rem;
  color: #6b7280;
}

.review-item-stars {
  color: #f59e0b;
  font-size: .9rem;
  white-space: nowrap;
}

.review-item-title {
  font-weight: 700;
  font-size: .96rem;
  color: #111827;
  margin-bottom: .35rem;
}

.review-item-text {
  color: #4b5563;
  font-size: .92rem;
  line-height: 1.65;
}

/* ---------- Empty state ---------- */
.review-empty {
  border: 1px dashed #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
}

/* ---------- Review form ---------- */
.review-form-wrap {
  background: #f8fafc;
  border: 1px solid #e6e9ef;
  border-radius: 1rem;
  padding: 1.25rem;
}

.review-form .form-control,
.review-form textarea {
  border-radius: .55rem;
  font-size: .94rem;
}
.review-form .form-control:focus {
  border-color: #1e3c72;
  box-shadow: 0 0 0 .2rem rgba(30, 60, 114, .15);
}

/* ---------- Star rating input (pure CSS) ---------- */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: .2rem;
  font-size: 1.8rem;
  cursor: pointer;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  color: #d1d5db;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
  margin: 0;
  line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #f59e0b;
}

.star-rating label:hover {
  transform: scale(1.15);
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
  .review-summary {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .review-big-num { font-size: 2.5rem; }
  .review-item-head { gap: .5rem; }
  .review-avatar { width: 36px; height: 36px; font-size: .95rem; }
  .star-rating { font-size: 1.6rem; }
  .review-form-wrap { padding: 1rem; }
}

@media (max-width: 400px) {
  .review-item { padding: .85rem .9rem; }
  .review-item-text { font-size: .88rem; }
}