/* ===== MINIMAL TESTIMONIALS SECTION ===== */

.testimonials {
  padding: 10rem 0 8rem;
  overflow: hidden;
}

.testimonials-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Two Column Layout */
.testimonials-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 6rem;
  align-items: center;
}

.testimonials-header {
  text-align: left;
  margin-bottom: 0;
}

/* Override centered alignment for testimonials section */
.testimonials .section-title-center {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.testimonials .section-subtitle-center {
  text-align: left;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 400;
  max-width: 100%;
}

/* Minimal Testimonial Content */
.testimonial-minimal-wrapper {
  width: 100%;
  max-width: 700px;
  padding: 0;
}

/* Quote Area with Crossfade */
.testimonial-quote-area {
  position: relative;
  min-height: 160px;
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-start;
}

.testimonial-quote-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(1rem);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 500ms cubic-bezier(0.4, 0, 0.2, 1),
              filter 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-quote-item.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.testimonial-quote-text {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .testimonial-quote-text {
    font-size: 1.25rem;
  }
}

/* Author Row */
.testimonial-author-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Avatar Stack */
.testimonial-avatars {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.testimonial-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
              filter 300ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 300ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.testimonial-avatar img,
.testimonial-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(1) opacity(0.6);
  transition: filter 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Avatar states */
.testimonial-avatar.active {
  transform: scale(1.05);
  border-color: var(--signal-orange);
  box-shadow: 0 8px 20px rgba(230, 99, 0, 0.2);
  border-width: 3px;
}

.testimonial-avatar.active img,
.testimonial-avatar.active svg {
  filter: grayscale(0) opacity(1);
}

.testimonial-avatar:not(.active):hover {
  transform: scale(1.02);
  border-color: var(--signal-orange);
  border-width: 3px;
}

.testimonial-avatar:not(.active):hover img,
.testimonial-avatar:not(.active):hover svg {
  filter: grayscale(0) opacity(0.8);
}

/* Divider */
.testimonial-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  flex-shrink: 0;
}

/* Author Info Area */
.testimonial-author-info {
  position: relative;
  flex: 1;
  min-height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-author-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  min-height: 28px;
  opacity: 0;
  transform: translateX(-0.5rem);
  pointer-events: none;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-author-item.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-author-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .testimonials-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .testimonials-header {
    text-align: center;
  }

  .testimonial-minimal-wrapper {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .testimonials {
    padding: 6rem 0 4rem;
  }

  .testimonials-container {
    padding: 0 1rem;
  }

  .testimonials-layout {
    gap: 2rem;
  }

  .testimonial-quote-area {
    min-height: 140px;
    margin-bottom: 2rem;
  }

  .testimonial-author-row {
    gap: 1.5rem;
  }

  .testimonial-avatars {
    gap: 1rem;
  }

  .testimonial-avatar {
    width: 64px;
    height: 64px;
    padding: 8px;
    border-radius: 10px;
  }

  .testimonial-quote-text {
    font-size: 1.125rem;
  }

  .testimonial-author-name {
    font-size: 1rem;
  }
}

/* Animation enhancements */
@media (prefers-reduced-motion: reduce) {
  .testimonial-quote-item,
  .testimonial-author-item,
  .testimonial-avatar {
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .testimonial-avatar {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .testimonial-avatar.active {
  border-color: var(--signal-orange);
  background: white;
}

[data-theme="dark"] .testimonial-quote-text {
  color: var(--text-primary);
}
