/* ═══════════════════════════════════════════════════════════
   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);
}

/* ── Screenshots strip ───────────────────────────────────────── */
.st-screenshots {
  display: flex;
  flex-direction: column;
}

.st-screenshots--multi {
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.st-screenshots--multi::-webkit-scrollbar {
  display: none;
}

.st-screenshot {
  width: 100%;
  line-height: 0;
  background: #f3f3f8;
  overflow: hidden;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.st-screenshots--multi .st-screenshot {
  width: 85%;
  min-height: 180px;
}

.st-screenshot img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.st-screenshots--multi .st-screenshot img {
  height: 180px;
}

.st-card:hover .st-screenshot img {
  transform: scale( 1.03 );
}

/* ── 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;
}
