/* ============================================
   REVIEWS COMPACT SCROLL — Editorial Redesign
   Matches: Transformation Data Strip, Product Pairing,
   Clinical Proof Grid design language
   ============================================ */

.rcs {
  overflow: hidden;
}


/* ---- Header ---- */
.rcs__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .rcs__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
  }
}

@media (min-width: 1024px) {
  .rcs__header { margin-bottom: 64px; }
}

.rcs__header-left {
  max-width: 600px;
}

.rcs__header-right {
  flex-shrink: 0;
}


/* Eyebrow */
.rcs__eyebrow {
  margin: 0 0 24px;
  font-family: var(--font-primary), sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.3;
  color: inherit;
}

@media (min-width: 768px) {
  .rcs__eyebrow { margin-bottom: 28px; }
}


/* Heading */
.rcs__heading {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: inherit;
}

@media (min-width: 768px) {
  .rcs__heading { font-size: 42px; }
}

@media (min-width: 1200px) {
  .rcs__heading { font-size: 52px; }
}

.rcs__heading-accent {
  font-family: var(--font-primary), sans-serif;
  font-style: normal;
  font-weight: 400;
}


/* Description */
.rcs__description {
  margin: 16px 0 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.45;
  font-weight: 400;
  max-width: 500px;
}

@media (min-width: 768px) {
  .rcs__description { font-size: 16px; margin-top: 20px; }
}


/* Review count */
.rcs__count {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.3;
  color: inherit;
}


/* ---- Scroll Track ---- */
.rcs__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

@media (max-width: 767px) {
  .rcs__track {
    margin-left: calc(-1 * var(--container-padding, 16px));
    margin-right: calc(-1 * var(--container-padding, 16px));
  }
}

.rcs__track::-webkit-scrollbar {
  display: none;
}


/* ---- Review Card ---- */
.rcs__card {
  flex: 0 0 85%;
  min-width: 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 24px;
  transition: background-color 0.25s ease;
}

@media (min-width: 768px) {
  .rcs__card {
    flex: 0 0 45%;
    min-width: 360px;
    padding: 40px 32px;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .rcs__card {
    flex: 0 0 33.333%;
    min-width: 320px;
    padding: 44px 36px;
  }
}

@media (min-width: 1400px) {
  .rcs__card {
    flex: 0 0 25%;
    padding: 48px 40px;
  }
}

.rcs__card:hover {
  background-color: rgba(0,0,0,0.015);
}

/* Dividers between cards */
.rcs__card + .rcs__card {
  border-left: 1px solid rgba(0,0,0,0.08);
}


/* ---- Stars ---- */
.rcs__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #0a0a0a;
}

.rcs__stars svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 768px) {
  .rcs__stars svg {
    width: 16px;
    height: 16px;
  }
}


/* ---- Review Text ---- */
.rcs__review-text {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: inherit;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .rcs__review-text { font-size: 16px; }
}


/* ---- Attribution ---- */
.rcs__attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.rcs__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.rcs__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rcs__avatar-initial {
  font-family: var(--font-primary), sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}

.rcs__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rcs__author-name {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: inherit;
  line-height: 1.3;
}

.rcs__verified {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.4;
  color: inherit;
  line-height: 1.4;
}


/* ---- Progress bar ---- */
.rcs__progress {
  margin-top: 32px;
  height: 2px;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .rcs__progress { margin-top: 40px; }
}

.rcs__progress-bar {
  height: 100%;
  background: #0a0a0a;
  border-radius: 2px;
  width: 25%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ---- Dark variant ---- */
.rcs.bg-black,
.rcs.bg-neutral-dark {
  color: #fff;
}

.rcs.bg-black .rcs__track,
.rcs.bg-neutral-dark .rcs__track {
  border-color: rgba(255,255,255,0.1);
}

.rcs.bg-black .rcs__card + .rcs__card,
.rcs.bg-neutral-dark .rcs__card + .rcs__card {
  border-color: rgba(255,255,255,0.1);
}

.rcs.bg-black .rcs__card:hover,
.rcs.bg-neutral-dark .rcs__card:hover {
  background-color: rgba(255,255,255,0.03);
}

.rcs.bg-black .rcs__stars,
.rcs.bg-neutral-dark .rcs__stars {
  color: #fff;
}

.rcs.bg-black .rcs__avatar,
.rcs.bg-neutral-dark .rcs__avatar {
  background-color: #fff;
}

.rcs.bg-black .rcs__avatar-initial,
.rcs.bg-neutral-dark .rcs__avatar-initial {
  color: #0a0a0a;
}

.rcs.bg-black .rcs__attribution,
.rcs.bg-neutral-dark .rcs__attribution {
  border-color: rgba(255,255,255,0.08);
}

.rcs.bg-black .rcs__progress,
.rcs.bg-neutral-dark .rcs__progress {
  background: rgba(255,255,255,0.08);
}

.rcs.bg-black .rcs__progress-bar,
.rcs.bg-neutral-dark .rcs__progress-bar {
  background: #fff;
}
