/**
 * Kezza Clinic — Genuine Google Review Card Styles
 * Used by reviews.html (#kz-reviews-grid) and index.html (#testiGrid)
 */

/* ── Review grid ───────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* ── Individual card ───────────────────────────────────────────────── */
.kzr-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: box-shadow .2s, transform .2s;
}
.kzr-card:hover {
  box-shadow: 0 6px 28px rgba(0,175,192,.13);
  transform: translateY(-2px);
}

/* ── Header (avatar + name + date + Google mark) ───────────────────── */
.kzr-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kzr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0;
}
.kzr-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kzr-name {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kzr-date {
  font-size: 12px;
  color: #64748b;
}
.kzr-submeta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kzr-user-badge {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 7px;
  border-radius: 4px;
}
.kzr-google-mark {
  flex-shrink: 0;
  opacity: .8;
}

/* ── Stars + branch tag ─────────────────────────────────────────────── */
.kzr-stars-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.kzr-branch-tag {
  font-size: 11px;
  font-weight: 700;
  color: #008f9c;
  background: #e6f7f9;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Badges (translated / edited) ──────────────────────────────────── */
.kzr-badges-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.kzr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.kzr-badge--translate {
  background: #eff6ff;
  color: #1d4ed8;
}
.kzr-badge--edited {
  background: #fefce8;
  color: #854d0e;
}

/* ── Review text ────────────────────────────────────────────────────── */
.kzr-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

/* ── Owner response block ───────────────────────────────────────────── */
.kzr-owner-response {
  background: #f8fafc;
  border-left: 3px solid #00afc0;
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kzr-owner-label {
  font-size: 12px;
  font-weight: 800;
  color: #0c1a2e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kzr-owner-date {
  font-weight: 500;
  color: #64748b;
}
.kzr-owner-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
  white-space: pre-line;
}
.kzr-truncated-note {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  margin-top: 4px;
}

/* ── Card footer ────────────────────────────────────────────────────── */
.kzr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}
.kzr-source-note {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}
.kzr-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #00afc0;
  text-decoration: none;
  background: #e6f7f9;
  padding: 6px 13px;
  border-radius: 100px;
  transition: background .15s, color .15s;
}
.kzr-view-btn:hover {
  background: #00afc0;
  color: #fff;
}

/* ── Empty / error state ────────────────────────────────────────────── */
.kzr-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
  color: #94a3b8;
  text-align: center;
}
.kzr-empty p { margin: 0; font-size: 14px; }

/* ── Home page translate badge ──────────────────────────────────────── */
.testi-translate-badge {
  font-size: 11px;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 3px 9px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .kzr-card {
    padding: 16px;
  }
}

/* ── Live Reviews — Clinic Branch Tabs (Jaipur, Sikar, Ajmer) ────────── */
.testi-clinic-tabs {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px auto 28px !important;
  padding: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04);
}

.testi-clinic-tab {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #475569;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  outline: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.testi-clinic-tab i {
  font-size: 0.85rem;
  color: #00afc0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.testi-clinic-tab:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 175, 192, 0.3);
  box-shadow: 0 4px 12px rgba(0, 175, 192, 0.12);
  transform: translateY(-1px);
}

.testi-clinic-tab:hover i {
  transform: scale(1.15);
}

.testi-clinic-tab.active {
  background: linear-gradient(135deg, #00afc0 0%, #008f9c 100%) !important;
  color: #ffffff !important;
  border-color: #00afc0 !important;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 175, 192, 0.35);
  transform: translateY(-1px);
}

.testi-clinic-tab.active i {
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .testi-clinic-tabs {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    padding: 5px;
    gap: 6px;
  }
  .testi-clinic-tab {
    flex: 1 1 0;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.825rem;
    gap: 6px;
  }
}

