/* =====================================================================
   assets/css/google-reviews-slider.css
   Self-contained styles for the Google Reviews slider — no Bootstrap or
   any other framework required, but plays nicely if one is present.
   ===================================================================== */

.grs-widget{
  --grs-ink:#1f2430;
  --grs-muted:#6b7280;
  --grs-star:#fbbc04;
  --grs-card-bg:#ffffff;
  --grs-border:#eef0f3;
  --grs-accent:#1a73e8;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  max-width: 100%;
  margin: 0 auto;
}

.grs-header{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-bottom:28px;
  flex-wrap:wrap;
  text-align:center;
}

.grs-google-logo{
  width:28px;
  height:28px;
  flex-shrink:0;
}

.grs-header-text b{
  font-size:1.05rem;
  color: var(--grs-ink);
}

.grs-header-rating{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color: var(--grs-muted);
  font-size:0.92rem;
}

.grs-stars{
  color: var(--grs-star);
  letter-spacing:1px;
}

/* ---------------- Track / viewport ---------------- */
.grs-viewport{
  overflow:hidden;
  position:relative;
}

.grs-track{
  display:flex;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.grs-slide{
  flex: 0 0 100%;
  max-width:100%;
  padding: 4px 10px;
  box-sizing:border-box;
}

@media (min-width: 720px){
  .grs-slide{ flex: 0 0 50%; max-width:50%; }
}
@media (min-width: 1080px){
  .grs-slide{ flex: 0 0 33.3333%; max-width:33.3333%; }
}

/* ---------------- Review card ---------------- */
.grs-card{
  background: var(--grs-card-bg);
  border: 1px solid var(--grs-border);
  border-radius: 16px;
  padding: 26px;
  height:100%;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  display:flex;
  flex-direction:column;
}

.grs-card-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.grs-avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  object-fit:cover;
  background:#e5e7eb;
  flex-shrink:0;
}

.grs-avatar-fallback{
  width:46px;
  height:46px;
  border-radius:50%;
  background: var(--grs-accent);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  flex-shrink:0;
}

.grs-name{
  font-weight:700;
  color: var(--grs-ink);
  font-size:0.98rem;
  line-height:1.2;
}

.grs-time{
  color: var(--grs-muted);
  font-size:0.8rem;
}

.grs-card-stars{
  color: var(--grs-star);
  font-size:0.95rem;
  margin-bottom:10px;
  letter-spacing:1px;
}

.grs-text{
  color:#374151;
  font-size:0.95rem;
  line-height:1.65;
  flex:1;
  display:-webkit-box;
  -webkit-line-clamp:6;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* ---------------- Controls (arrows + dots) ---------------- */
.grs-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin-top:22px;
}

.grs-arrow{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--grs-border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color: var(--grs-ink);
  transition: background .2s, color .2s, transform .15s;
}
.grs-arrow:hover{
  background: var(--grs-accent);
  color:#fff;
  border-color: var(--grs-accent);
}
.grs-arrow:active{ transform: scale(0.94); }
.grs-arrow svg{ width:18px; height:18px; }

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

.grs-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background: var(--grs-border);
  border:none;
  cursor:pointer;
  padding:0;
  transition: background .2s, transform .2s;
}
.grs-dot.is-active{
  background: var(--grs-accent);
  transform: scale(1.3);
}

/* ---------------- States: loading / error / empty ---------------- */
.grs-state{
  text-align:center;
  padding: 50px 20px;
  color: var(--grs-muted);
}
.grs-state i, .grs-state svg{ font-size:2rem; margin-bottom:10px; }

.grs-skeleton{
  background: linear-gradient(90deg, #f0f1f4 25%, #e7e9ee 37%, #f0f1f4 63%);
  background-size: 400% 100%;
  animation: grs-shimmer 1.4s ease infinite;
  border-radius:16px;
  height:220px;
}
@keyframes grs-shimmer{
  0%{ background-position: 100% 50%; }
  100%{ background-position: 0 50%; }
}

.grs-footer-link{
  display:block;
  text-align:center;
  margin-top:22px;
  color: var(--grs-accent);
  font-weight:600;
  font-size:0.9rem;
  text-decoration:none;
}
.grs-footer-link:hover{ text-decoration:underline; }
