/* ── ZKL Testimonials Plugin Styles ─────────────────────── */

:root {
  --zkl-accent:  #0F6E56;
  --zkl-dk:      #085041;
  --zkl-bg:      #F7F5F0;
  --zkl-white:   #FFFFFF;
  --zkl-text:    #1C1C1A;
  --zkl-muted:   #6B6B67;
  --zkl-faint:   #B0AFA8;
  --zkl-border:  #E2E0D8;
  --zkl-star:    #F0B429;
  --zkl-radius:  8px;
}

/* ── Stars ───────────────────────────────────────────────── */
.zkl-stars { display: flex; gap: 2px; margin-bottom: 0.75rem; }
.zkl-star { font-size: 18px; color: var(--zkl-border); line-height: 1; }
.zkl-star.filled { color: var(--zkl-star); }

/* ── Shortcode grid layout ───────────────────────────────── */
.zkl-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.zkl-testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

/* ── Testimonial card ────────────────────────────────────── */
.zkl-testimonial-card {
  background: var(--zkl-white);
  border: 1px solid var(--zkl-border);
  border-radius: var(--zkl-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.zkl-testimonial-card:hover {
  border-color: var(--zkl-accent);
  transform: translateY(-2px);
}

.zkl-testimonial-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--zkl-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.zkl-testimonial-body {
  font-size: 0.9375rem;
  color: var(--zkl-muted);
  line-height: 1.7;
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
  font-style: italic;
  flex: 1;
}
.zkl-testimonial-body p { margin-bottom: 0; }
.zkl-testimonial-body p + p { margin-top: 0.75rem; }

/* ── Author row ──────────────────────────────────────────── */
.zkl-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--zkl-border);
  margin-top: auto;
}

.zkl-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--zkl-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.zkl-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.zkl-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--zkl-text);
}

.zkl-author-role {
  font-size: 0.775rem;
  color: var(--zkl-faint);
}

/* ── No testimonials message ─────────────────────────────── */
.zkl-no-testimonials {
  color: var(--zkl-muted);
  font-style: italic;
  padding: 2rem;
  border: 1px dashed var(--zkl-border);
  border-radius: var(--zkl-radius);
  text-align: center;
}

/* ── Sidebar widget ──────────────────────────────────────── */
.zkl-widget-testimonials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zkl-widget-testimonial {
  padding: 1rem;
  background: var(--zkl-bg);
  border-radius: var(--zkl-radius);
  border-left: 3px solid var(--zkl-accent);
}

.zkl-widget-testimonial .zkl-stars { margin-bottom: 0.5rem; }
.zkl-widget-testimonial .zkl-star { font-size: 14px; }

.zkl-widget-quote {
  font-size: 0.85rem;
  color: var(--zkl-muted);
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 0.75rem;
}

.zkl-widget-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.zkl-widget-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--zkl-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.zkl-widget-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--zkl-text);
}

.zkl-widget-role {
  display: block;
  font-size: 0.72rem;
  color: var(--zkl-faint);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .zkl-testimonials-grid { grid-template-columns: 1fr; }
}
