/* ═══════════════════════════════════════════════════════════
   Stato Testimonials — Frontend Styles
   ═══════════════════════════════════════════════════════════ */

:root {
  --st-c1: #7c6af7;
  --st-c2: #f76a6a;
  --st-c3: #34d9a5;
  --st-c4: #f7c26a;
  --st-c5: #6aaff7;
  --st-radius: 16px;
  --st-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* ── Wrapper grid ────────────────────────────────────────────── */
.stato-testi-wrap {
  display: grid;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.stato-testi-layout-grid {
  grid-template-columns: repeat( var(--st-cols, 3), 1fr );
}

.stato-testi-layout-list {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

@media ( max-width: 900px ) {
  .stato-testi-layout-grid {
    grid-template-columns: repeat( 2, 1fr );
  }
}
@media ( max-width: 560px ) {
  .stato-testi-layout-grid,
  .stato-testi-layout-list {
    grid-template-columns: 1fr;
  }
}

/* ── Card ────────────────────────────────────────────────────── */
.st-card {
  background: #fff;
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}

.st-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,.14);
  transform: translateY(-3px);
}

/* ── Single screenshot ───────────────────────────────────────── */
.st-screenshots {
  display: block;
}

.st-screenshot {
  width: 100%;
  line-height: 0;
  background: #f3f3f8;
  overflow: hidden;
}

.st-screenshot img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}

.st-card:hover .st-screenshot img {
  transform: scale( 1.03 );
}

/* ── Multi-image slider ──────────────────────────────────────── */
.st-screenshots--multi {
  position: relative;
  overflow: hidden;
}

/* Hide all slides except active */
.st-screenshots--multi .st-screenshot {
  display: none;
}

.st-screenshots--multi .st-screenshot.st-slide-active {
  display: block;
  animation: st-fade-in .3s ease;
}

@keyframes st-fade-in {
  from { opacity: 0; transform: scale(.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Prev / Next buttons ─────────────────────────────────────── */
.st-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .2s;
  padding: 0;
}

.st-slider-btn:hover {
  background: rgba(0,0,0,.7);
}

.st-slider-prev { left: 8px; }
.st-slider-next { right: 8px; }

/* ── Dot indicators ──────────────────────────────────────────── */
.st-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.st-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.st-slider-dot.st-dot-active {
  background: #fff;
  transform: scale( 1.3 );
}

/* ══════════════════════════════════════════════════
   LIGHTBOX POPUP
   ══════════════════════════════════════════════════ */

.st-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.st-lightbox.st-lb-open {
  display: flex;
}

/* Semi-transparent backdrop */
.st-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  cursor: zoom-out;
}

/* Centred container */
.st-lb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 860px;
  padding: 0 60px;
  box-sizing: border-box;
}

/* Close button */
.st-lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
}

.st-lb-close:hover {
  background: rgba(255,255,255,.25);
}

/* Slides wrapper */
.st-lb-slides {
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  max-height: 75vh;
}

/* Individual slide */
.st-lb-slide {
  display: none;
}

.st-lb-slide.st-lb-slide-active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: st-lb-fadein .25s ease;
}

@keyframes st-lb-fadein {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

.st-lb-slide img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

/* Prev / next arrows */
.st-lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY( -50% );
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
  padding: 0;
}

.st-lb-btn:hover {
  background: rgba(255,255,255,.3);
}

.st-lb-prev { left: -52px; }
.st-lb-next { right: -52px; }

/* Footer: dots + counter */
.st-lb-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

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

.st-lb-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.st-lb-dot.st-lb-dot-active {
  background: #fff;
  transform: scale( 1.3 );
}

.st-lb-counter {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  font-variant-numeric: tabular-nums;
}

/* Responsive: stack arrows inside on small screens */
@media ( max-width: 600px ) {
  .st-lb-inner {
    padding: 0 10px;
  }
  .st-lb-prev, .st-lb-next {
    position: static;
    transform: none;
  }
  .st-lb-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .st-lb-slides {
    order: -1;
    width: 100%;
  }
  .st-lb-footer {
    width: 100%;
    order: 1;
  }
}

/* ── Body ────────────────────────────────────────────────────── */
.st-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* ── Stars ───────────────────────────────────────────────────── */
.st-stars {
  display: flex;
  gap: 2px;
  line-height: 1;
}

.st-star {
  font-size: 18px;
}

.st-star--on  { color: #f5a623; }
.st-star--off { color: #ddd; }

/* ── Quote ───────────────────────────────────────────────────── */
.st-quote {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin: 0;
  flex: 1;
  position: relative;
  padding-left: 18px;
}

.st-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 36px;
  line-height: 1;
  color: var(--st-c1);
  opacity: .35;
  font-family: Georgia, serif;
}

/* ── Author row ──────────────────────────────────────────────── */
.st-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f4;
}

/* Avatar */
.st-avatar-wrap {
  flex-shrink: 0;
}

.st-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
  display: block;
}

.st-avatar-letter {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.st-avatar-letter.a1 { background: var(--st-c1); }
.st-avatar-letter.a2 { background: var(--st-c2); }
.st-avatar-letter.a3 { background: var(--st-c3); color: #1a1a2e; }
.st-avatar-letter.a4 { background: var(--st-c4); color: #1a1a2e; }
.st-avatar-letter.a5 { background: var(--st-c5); }

/* Name + role */
.st-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
}

.st-role {
  font-size: 12px;
  color: #888;
}
