/* ============================================================
   Testimonials Module — testimonials.css
   Uses CSS custom properties from the active theme/core.
   ============================================================ */

/* ── Section ── */
.testimonials-section {
  padding: 5rem 0 6rem;
}

/* ── Header ── */
.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 .75rem;
  color: var(--color-text, #e2e8f0);
  line-height: 1.2;
}

.testimonials-subtitle {
  font-size: 1.0625rem;
  opacity: .65;
  margin: 0;
  color: var(--color-text, #e2e8f0);
}

/* ── Grid ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Card ── */
.testimonial-card {
  background: var(--color-surface, #1e293b);
  border: 1px solid var(--color-border, rgba(255, 255, 255, .07));
  border-radius: var(--radius-xl, 1rem);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.testimonial-card:hover {
  border-color: var(--color-primary, #6366f1);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}

/* ── Opening quote decoration ── */
.testimonial-quote-icon {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-primary, #6366f1);
  opacity: .15;
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

/* ── Quote text ── */
.testimonial-content {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--color-text, #e2e8f0);
  opacity: .9;
  margin: 0;
  flex: 1;
}

/* ── Star rating ── */
.testimonial-rating {
  display: flex;
  gap: .1rem;
  font-size: 1.0625rem;
  letter-spacing: .04em;
}

.tstar-on {
  color: #f59e0b;
}

.tstar-off {
  color: rgba(255, 255, 255, .18);
}

/* ── Author row ── */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-top: .25rem;
}

/* Circular photo */
.testimonial-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-border, rgba(255, 255, 255, .12));
}

/* Initials fallback avatar */
.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.testimonial-name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--color-text, #e2e8f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-role {
  font-size: .8125rem;
  color: var(--color-text, #e2e8f0);
  opacity: .55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Empty state ── */
.testimonials-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--color-text, #e2e8f0);
}

.testimonials-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.testimonials-empty h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 .5rem;
}

.testimonials-empty p {
  font-size: .9375rem;
  opacity: .55;
  margin: 0;
}
