/* ============================================================
   Reviews section — #reviews
   Follows the site's design system:
     Primary color : #1B4626
     Font          : Geologica
     Btn radius    : 32px
     Card radius   : 16px
   ============================================================ */



/* ── Rating bar ───────────────────────────────────────────── */

.reviews-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 18px 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;

  margin-top:32px;
}

.reviews-bar__left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  flex: 1;
}

/* Overall score block */
.reviews-bar__overall {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.reviews-bar__score {
  font-size: 22px;
  font-weight: 600;
  color: #000;
  line-height: 1;
}

.reviews-bar__star {
  font-size: 20px;
  color: #FFB800;
  line-height: 1;
}

.reviews-bar__divider {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.reviews-bar__count {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

/* Platform list */
.reviews-bar__platforms {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.reviews-bar__platform {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Logo placeholder — user drops their image/SVG inside */
.reviews-bar__platform-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reviews-bar__platform-logo img,
.reviews-bar__platform-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reviews-bar__platform-logo img{
  max-height:24px;
  width:auto;
}

.reviews-bar__platform-name {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
}

.reviews-bar__platform-score {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

/* CTA button — reuses .btn .btn_white from styles.css */
.reviews-bar__cta {
  flex-shrink: 0;
}


/* ── Review card ──────────────────────────────────────────── */

.review-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 65px 100px 0 rgba(0, 0, 0, 0.06), 0 19.596px 30.147px 0 rgba(0, 0, 0, 0.04), 0 8.139px 12.522px 0 rgba(0, 0, 0, 0.03), 0 2.944px 4.529px 0 rgba(0, 0, 0, 0.02);
}

/* Header row: avatar + name + source */
.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
}

/* Colour variants — one per review */
.review-card__avatar--blue   { background: #3B82F6; }
.review-card__avatar--purple { background: #8B5CF6; }
.review-card__avatar--orange { background: #F59E0B; }
.review-card__avatar--teal   { background: #14B8A6; }
.review-card__avatar--red    { background: #EF4444; }
.review-card__avatar--pink   { background: #EC4899; }
.review-card__avatar--green   { background: rgb(56, 140, 77); }

/* Avatar can also be an <img> (user adds real photos later) */
.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

.review-card__name {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card__source {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
}

.review-card__source a {
  color: #1B4626;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.review-card__source a:hover {
  opacity: 0.7;
}

/* Stars */
.review-card__stars {
  font-size: 18px;
  color: #FFB800;
  letter-spacing: 2px;
  line-height: 1;
}

/* Review text */
.review-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.72);
  flex: 1;
}


/* ── Splide carousel overrides ────────────────────────────── */

/* Equal-height slides */
.splide_reviews .splide__slide {
  height: auto;
}

/* Pagination dots */
.splide_reviews .splide__pagination {
  margin-top: 24px;
  position: static;
  padding: 0;
  bottom: auto;
}

.splide_reviews .splide__pagination__page {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.15);
  opacity: 1;
  transition: background 0.25s ease;
  border-radius: 50%;
  margin: 0 4px;
}

.splide_reviews .splide__pagination__page.is-active {
  background: #1B4626;
  transform: scale(1.25);
}

/* Arrows */
.splide_reviews .splide__arrow {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  opacity: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
  top: 50%;
  transform: translateY(-50%);
}

.splide_reviews .splide__arrow:hover {
  background: #1B4626;
  border-color: #1B4626;
}


.splide_reviews .splide__arrow svg path{
  fill: #000;
  width: 14px;
  height: 14px;
  transition: fill 0.2s ease;
}

.splide_reviews .splide__arrow:hover svg  path{
  fill: #ffffff;
}

.splide_reviews .splide__arrow--prev { left: -22px; }
.splide_reviews .splide__arrow--next { right: -22px; }


/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 991px) {
  .reviews-bar {
    padding: 16px 20px;
    gap: 16px;
  }

  .reviews-bar__left {
    gap: 16px;
  }

  .reviews-bar__platforms {
    gap: 12px;
  }

  .splide_reviews .splide__arrow--prev { left: 0; }
  .splide_reviews .splide__arrow--next { right: 0; }
}

@media (max-width: 767px) {
  .reviews-bar__overall {
    width: 100%;
  }

  .reviews-bar__cta {
    width: 100%;
    justify-content: center;
  }

  .review-card {
    padding: 20px;
  }
}
