/* ══════════════════════════════════════════
   SECTION 6 — REVIEWS / TESTIMONIALS
   Brand: Kodi IPTV 4K | kodiiptv4k.de
   ══════════════════════════════════════════ */

.reviews {
  background: #07090F;
  padding: 52px 0;
  overflow: hidden;
}

/* ── TRUST BAR ── */
.reviews-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  max-width: 660px;
  width: calc(100% - 32px);
  margin: 0 auto 52px;
  background: #0C1220;
  border: 1px solid #1C2A3A;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.06),
    0 12px 40px rgba(0,0,0,0.45);
}

/* ── ROW 1: Trustpilot header — full width ── */
.rtb-block--tp {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid #1C2A3A;
  border-right: none !important;
}
img.rtb-tp-logo {
  height: 44px;
  width: auto;
  display: block;
}
.rtb-block--tp .rtb-label {
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 700;
  color: #00B67A;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── ROW 2: Stat blocks — explicit grid placement ── */
.rtb-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 16px;
  transition: transform 0.2s;
}
/* Force explicit column placement so auto-placement never mis-fires */
.rtb-block--tp + .rtb-block {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid #1C2A3A;
}
.rtb-block--tp + .rtb-block + .rtb-block {
  grid-column: 2;
  grid-row: 2;
}
@media (hover: hover) {
  .rtb-block:hover { transform: translateY(-2px); }
  .rtb-block:hover .rtb-big { color: #00D4FF; }
}

.rtb-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 11vw, 68px);
  line-height: 1;
  color: #F0F4FF;
  letter-spacing: 1px;
  transition: color 0.2s;
  white-space: nowrap;
}
.rtb-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.rtb-star {
  width: 26px;
  height: 26px;
}
.rtb-label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 600;
  color: #B8CAD8;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

.rtb-tp-logo {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* ── SECTION HEADING ── */
.reviews-header {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 24px;
}

.reviews-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 900;
  color: #F0F4FF;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 1.1;
}

.reviews-header h2 span { color: #00D4FF; }

.reviews-header p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #B8CAD8;
  display: inline-block;
  text-align: center;
  background: rgba(245,197,24,0.04);
  border: 1px solid rgba(245,197,24,0.2);
  border-top: 3px solid #F5C518;
  border-radius: 12px;
  padding: 14px 28px;
  max-width: 580px;
  line-height: 1.6;
}
.reviews-header p .gold-accent {
  color: #F5C518;
  font-weight: 600;
}

/* ── CARDS CAROUSEL ── */
.reviews-carousel-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  padding: 12px 0 28px;
}

.reviews-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: reviewsScroll 50s linear infinite;
  will-change: transform;
}

@media (hover: hover) {
  .reviews-carousel-outer:hover .reviews-carousel-track {
    animation-play-state: paused;
  }
}

@keyframes reviewsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── REVIEW CARD ── */
.review-card {
  flex-shrink: 0;
  width: 300px;
  background: #111827;
  border: 1px solid #1C2A3A;
  border-top: 2px solid rgba(245,197,24,0.45);
  border-radius: 12px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

@media (hover: hover) {
  .review-card:hover {
    border-color: rgba(0,212,255,0.3);
    transform: translateY(-6px);
    box-shadow: 0 14px 44px rgba(0,212,255,0.14), 0 4px 16px rgba(0,0,0,0.4);
    background: #131f30;
  }
}

.rc-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #1C2A3A;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.rc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  display: block;
}

.rc-stars { display: flex; gap: 3px; }

.rc-star { width: 18px; height: 18px; }

.rc-author {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: #F0F4FF;
  font-weight: 600;
  line-height: 1.4;
}

.rc-author em {
  font-style: normal;
  font-weight: 500;
  color: #B8CAD8;
}

.rc-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #B8C8D8;
  line-height: 1.65;
  flex: 1;
}

.rc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.rc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #00B67A;
}

.rc-date {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #4A5A6A;
}

/* ── WHATSAPP PROOF STRIP ── */
.wa-section {
  margin-top: 28px;
  padding-bottom: 0;
}

.wa-header {
  text-align: center;
  margin-bottom: 36px;
  padding: 0 24px;
}

.wa-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(37,211,102,0.10);
  border: 1px solid rgba(37,211,102,0.30);
  border-radius: 32px;
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #25D366;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
  .wa-header-pill:hover {
    background: rgba(37,211,102,0.18);
    border-color: rgba(37,211,102,0.55);
    box-shadow: 0 0 20px rgba(37,211,102,0.2);
  }
}

.wa-header-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.wa-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 7vw, 46px);
  font-weight: 900;
  color: #F0F4FF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin-bottom: 20px;
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}

.wa-header h3 span { color: #25D366; }
.wa-h3-cyan { color: #00D4FF !important; }

.wa-header-desc,
.wa-header p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #B8CAD8;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
  text-align: center;
  background: rgba(5, 20, 12, 0.75);
  border: 1px solid rgba(37,211,102,0.22);
  border-top: 2px solid #25D366;
  border-radius: 8px;
  padding: 16px 24px;
  box-shadow: 0 0 24px rgba(37,211,102,0.08), 0 4px 16px rgba(0,0,0,0.45);
}

.wa-strip-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  padding: 8px 0 0;
}

.wa-strip-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: waScroll 80s linear infinite;
  will-change: transform;
}

@media (hover: hover) {
  .wa-strip-outer:hover .wa-strip-track {
    animation-play-state: paused;
  }
}

@keyframes waScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.wa-img-wrap {
  flex-shrink: 0;
  width: 300px;
  height: 530px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1C2A3A;
  background: #0C1220;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .wa-img-wrap:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 48px rgba(37,211,102,0.18);
    border-color: rgba(37,211,102,0.35);
  }
}

.wa-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── SWIPE HINT — mobile only ── */
.reviews-swipe-hint {
  display: none;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--iptv-muted);
  padding: 8px 0 4px;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .reviews-swipe-hint { display: flex; }
}

/* ── TOUCH IMPROVEMENTS ── */
.reviews-carousel-track,
.wa-strip-track {
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

/* ── MOBILE — very small (< 390px) ── */
@media (max-width: 389px) {
  .reviews { padding: 64px 0; }

  /* Trust bar small-mobile overrides */
  .reviews-trust { width: calc(100% - 16px); margin: 0 auto 36px; border-radius: 14px; }
  .rtb-block--tp { padding: 18px 12px 16px; gap: 8px; }
  img.rtb-tp-logo { height: 32px; }
  .rtb-block--tp .rtb-label { font-size: 10px; letter-spacing: 1.5px; }
  .rtb-block { padding: 16px 8px; gap: 6px; }
  .rtb-star { width: 18px; height: 18px; }

  .reviews-header { padding: 0 16px; margin-bottom: 28px; }
  .reviews-header h2 { font-size: 26px; }
  .reviews-header p { font-size: 14px; }

  .review-card { width: 270px; padding: 18px 16px 14px; }
  .rc-text { font-size: 14px; }

  .wa-header { padding: 0 16px; }
  .wa-header-pill { font-size: 13px; padding: 8px 18px; }
  .wa-header h3 { font-size: 24px; }
  .wa-header p { font-size: 14px; }
  .wa-img-wrap { width: 252px; height: 380px; border-radius: 14px; }
}

/* ── MOBILE — normal (390px–600px) ── */
@media (min-width: 390px) and (max-width: 600px) {
  .reviews { padding: 80px 0; }

  /* Trust bar: 2-col grid inside the frame */
  .reviews-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 8px;
    max-width: 100%;
    padding: 22px 18px;
    margin: 0 16px 36px;
    border-radius: 16px;
  }
  .rtb-block { padding: 0; border-right: none !important; min-width: unset; }
  .rtb-block:last-child { grid-column: 1 / -1; align-items: center; border-top: 1px solid #1C2A3A; padding-top: 18px; }
  .rtb-big { font-size: 36px; }
  .rtb-star { width: 19px; height: 19px; }

  .review-card { width: 290px; }
  .rc-text { font-size: 14px; }

  /* WhatsApp screenshots — bigger, better proportioned */
  .wa-img-wrap {
    width: 270px;
    height: 478px;
    border-radius: 16px;
  }

  .wa-header-pill { font-size: 14px; }
  .wa-header h3 { font-size: 28px; }
}

/* ── ENSURE object-position is perfect on all mobile ── */
@media (max-width: 600px) {
  .wa-img-wrap img {
    object-position: center top;
  }
  .reviews-carousel-track { animation-duration: 120s; }
  .wa-strip-track { animation-duration: 160s; }
}

@media (max-width: 389px) {
  .reviews-carousel-track { animation-duration: 150s; }
  .wa-strip-track { animation-duration: 200s; }
}
