/* Reviews list (vertical, descending) — layout inspired by marketplace review walls */

.reviews-list {
  --reviews-accent: #ff4655;
  max-width: 860px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reviews-loading {
  color: #9299a8;
  text-align: center;
  padding: 40px 0;
}

.review-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--reviews-accent);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(27, 32, 43, 0.98), rgba(16, 19, 29, 0.96));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  animation: review-arrive 260ms ease-out both;
}

/* Left column: avatar with initial (default until real user photos) + stars below */
.review-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4655, #9d4edd);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.review-stars svg {
  width: 14px;
  height: 14px;
  fill: #ffb800;
  filter: drop-shadow(0 1px 3px rgba(255, 184, 0, 0.35));
}

/* Middle column: author, category and text */
.review-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.review-author {
  color: #f4f5f7;
  font-size: 15px;
  font-weight: 700;
}

.review-category {
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px solid rgba(255, 70, 85, 0.35);
  border-radius: 4px;
  background: rgba(255, 70, 85, 0.1);
  color: #ff8790;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.review-quote {
  margin: 4px 0 0;
  color: #e8e9ec;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.review-no-comment {
  color: #9299a8;
  font-style: italic;
}

/* Right column: age at the end */
.review-age {
  color: #9299a8;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 4px;
}

@keyframes review-arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .review-card {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 18px;
  }

  .review-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .review-stars svg {
    width: 12px;
    height: 12px;
  }

  .review-age {
    width: 100%;
    padding-top: 0;
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-card {
    animation: none;
  }
}
