/* reviews-style.css — Styles for review carousel and homepage feed */

/* Outer section wrapper used in HTML */
.reviews-section {
  padding: 80px 0;
  background: #0a0a0a;
  color: #fff;
}

.reviews-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.reviews-section-head {
  text-align: center;
  margin-bottom: 48px;
}

.reviews-section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff7a3d;
  font-weight: 600;
  margin-bottom: 12px;
}

.reviews-section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}

.reviews-section-head p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 0 auto;
}

/* Attribution row */
.reviews-attribution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.reviews-attribution-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.reviews-attribution-badge strong {
  color: #fff;
  font-weight: 600;
}

.reviews-attribution-link {
  font-size: 14px;
  color: #ff7a3d;
  text-decoration: none;
  font-weight: 500;
}

.reviews-attribution-link:hover {
  text-decoration: underline;
}

/* Single review card */
.review-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 122, 61, 0.15);
  flex-shrink: 0;
}

.review-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff7a3d;
  font-weight: 600;
  font-size: 18px;
}

.review-card-meta {
  flex: 1;
  min-width: 0;
}

.review-card-author {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
  margin-bottom: 2px;
}

.review-card-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.review-stars {
  color: #ffb84d;
  letter-spacing: 1px;
  font-size: 14px;
}

.review-time {
  color: rgba(255, 255, 255, 0.5);
}

.review-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  /* Cap height with a soft fade if very long */
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
  margin-top: auto;
}

.review-officer-tag {
  color: rgba(255, 255, 255, 0.5);
}

.review-source-link {
  color: #ff7a3d;
  text-decoration: none;
  font-weight: 500;
  margin-left: auto;
}

.review-source-link:hover {
  text-decoration: underline;
}

/* Carousel-specific styles */
[data-review-carousel] {
  max-width: 720px;
  margin: 0 auto;
}

.reviews-track {
  min-height: 280px;
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.reviews-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.reviews-arrow:hover {
  background: rgba(255, 122, 61, 0.15);
  border-color: rgba(255, 122, 61, 0.5);
}

.reviews-dots {
  display: flex;
  gap: 8px;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.reviews-dot:hover {
  background: rgba(255, 255, 255, 0.35);
}

.reviews-dot.is-active {
  background: #ff7a3d;
  transform: scale(1.2);
}

/* Homepage feed grid */
.reviews-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Empty/loading states */
.reviews-empty {
  text-align: center;
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 600px) {
  .reviews-section { padding: 56px 0; }
  .review-card { padding: 22px; }
  .reviews-feed-grid { grid-template-columns: 1fr; }
  .reviews-controls { gap: 16px; }
  .reviews-arrow { width: 38px; height: 38px; font-size: 16px; }
}
