/**
 * Feurst Testimonials – Pro v6.3
 * 4'lü responsive grid + avatar/isim/pozisyon/şirket + rating
 */

/* === GRID CONTAINER (4-3-2-1) === */
.feurst-testimonial-grid{
  display:grid;
  gap:28px;
  max-width:1600px;
  margin:60px auto;
  padding:0 20px;
}
@media (min-width:1280px){ .feurst-testimonial-grid{ grid-template-columns:repeat(4,1fr); } }
@media (min-width:992px) and (max-width:1279.98px){ .feurst-testimonial-grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:768px) and (max-width:991.98px){ .feurst-testimonial-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:767.98px){ .feurst-testimonial-grid{ grid-template-columns:1fr; } }

/* === CARD === */
.feurst-testimonial-card{
  position:relative; background:#fff; border-radius:14px;
  box-shadow:0 12px 30px rgba(0,26,56,.08);
  width:auto;                 /* was 520px */
  min-height:320px;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}
.feurst-testimonial-card:hover{ transform:translateY(-6px); box-shadow:0 18px 42px rgba(0,83,155,.18); }
.feurst-testimonial-card::after{
  content:""; position:absolute; inset:0 0 auto 0; height:6px; z-index:2;
  background:linear-gradient(90deg,#00539b 0%,#0aa5d8 100%);
}
.feurst-testimonial-card::before{
  content:""; position:absolute; inset:0; z-index:0; opacity:.05;
  background:url('https://new.feurst.fr/wp-content/uploads/2025/10/subtle-prism.svg') repeat;
}
.feurst-card-inner{ position:relative; z-index:1; padding:26px 28px 30px; }
@media (max-width:991.98px){ .feurst-card-inner{ padding:22px; } }

/* === HEADER === */
.feurst-t-head{ display:flex; align-items:center; gap:16px; margin-bottom:16px; }
.feurst-avatar{
  width:56px; height:56px; border-radius:50%; overflow:hidden; flex:0 0 56px;
  box-shadow:0 6px 14px rgba(0,83,155,.18);
  border:2px solid #eef3f7; background:#eaf2f8;
  display:grid; place-items:center; font-weight:800; color:#00539b; letter-spacing:.3px;
}
.feurst-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.feurst-nameblock{ display:flex; flex-direction:column; gap:2px; }
.feurst-name{ font-size:17px; font-weight:800; color:#0f1720; letter-spacing:.2px; }
.feurst-position{ font-size:13px; line-height:1.2; color:#8a96a3; margin-top:2px; }
.feurst-company{ font-size:14px; color:#6f7b86; }

/* === RATING (tüm varyantları zorunlu görünür) === */
.feurst-head-rating{ margin-left:auto; display:flex; align-items:center; gap:6px; }
.feurst-head-rating .testimonial-rating,
.feurst-head-rating .wpmtst-rating,
.feurst-head-rating .wpmtst-star-rating{
  margin:0; display:inline-flex !important; align-items:center; gap:4px;
}
.testimonial-rating svg, .testimonial-rating i,
.wpmtst-rating svg, .wpmtst-rating i,
.wpmtst-star-rating i, .wpmtst-star-rating svg{
  width:17px; height:17px; fill:#ffb400 !important; color:#ffb400 !important; opacity:1 !important;
}
.wpmtst-star-rating .dashicons,
.wpmtst-rating .dashicons{ font-size:17px; line-height:1; }

/* === BODY === */
.testimonial-title{ font-size:20px; font-weight:800; color:#0f1720; margin:4px 0 6px; }
.testimonial-content{ font-size:16px; line-height:1.75; color:#2a2f36; margin:8px 0 14px; }

/* === FOOTER (varsayılan: ŞİRKET + isim) === */
.testimonial-footer{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:14px; padding-top:12px; border-top:1px dashed #e8edf2;
}
.feurst-footer-left{ display:flex; flex-direction:column; }
.feurst-footer-company{ font-size:15px; font-weight:800; color:#10212b; }
.feurst-footer-name{ font-size:13.5px; color:#6f7b86; margin-top:2px; }
.feurst-footer-avatar{
  width:28px; height:28px; border-radius:50%; object-fit:cover; display:block;
  box-shadow:0 2px 6px rgba(0,83,155,.18);
  border:1px solid #e8edf2; background:#eef3f7;
}

/* === BADGE (opsiyonel) === */
.feurst-badge{
  position:absolute; right:18px; top:16px; z-index:3;
  font-size:11px; font-weight:800; letter-spacing:.6px; text-transform:uppercase;
  padding:6px 8px; border-radius:999px; background:#eef6fb; color:#00539b;
  box-shadow:inset 0 0 0 1px rgba(0,83,155,.18);
}

/* === DARK MODE === */
@media (prefers-color-scheme:dark){
  .feurst-testimonial-card{ background:#0e1217; box-shadow:0 12px 28px rgba(0,83,155,.25); }
  .feurst-card-inner{ color:#e8eef5; }
  .feurst-name, .testimonial-title{ color:#eef4fa; }
  .testimonial-content{ color:#cfd8e3; }
  .feurst-company, .feurst-position, .feurst-footer-name{ color:#a6b3c2; }
  .feurst-footer-company{ color:#eaf2fb; }
  .testimonial-footer{ border-top-color:#1f2a35; }
  .feurst-avatar{ border-color:#17212a; background:#0f1a23; }
}

/* === OPSİYONEL: Footer’da sadece rating göster (kart div’ine .feurst-footer--rating-only ekle) === */
.feurst-footer--rating-only .feurst-footer-left{ display:none !important; }
.feurst-footer--rating-only .testimonial-footer{ justify-content:flex-end; }
.feurst-footer--rating-only .testimonial-footer .testimonial-rating,
.feurst-footer--rating-only .testimonial-footer .wpmtst-rating,
.feurst-footer--rating-only .testimonial-footer .wpmtst-star-rating{ display:inline-flex !important; }
