/**
 * PCTechComVn — Testimonials & Reviews CSS
 * Child Theme CSS Module
 * Version: 1.0.0 (Sprint 11)
 *
 * Testimonials grid, avatar, stars.
 */

/* ═══════════════════════════════════════════════
   1. TESTIMONIALS WRAPPER
   ═══════════════════════════════════════════════ */
.testimonials {
  background: var(--white);
  padding: 80px 0;
}

/* ═══════════════════════════════════════════════
   2. TESTIMONIALS GRID
   ═══════════════════════════════════════════════ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ═══════════════════════════════════════════════
   3. TESTIMONIAL CARD
   ═══════════════════════════════════════════════ */
.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Image on top of card (Optional) */
.testi-photo-wrap {
  height: 160px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}

.testi-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.testi-card:hover .testi-photo {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════
   4. TESTIMONIAL CONTENT
   ═══════════════════════════════════════════════ */
.testi-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.testi-stars {
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testi-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
  flex-grow: 1;
}

/* ═══════════════════════════════════════════════
   5. TESTIMONIAL AUTHOR
   ═══════════════════════════════════════════════ */
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--orange-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: var(--gray-200);
}

.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-dark);
}

.testi-role {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════
   6. VIDEO TESTIMONIAL
   ═══════════════════════════════════════════════ */
.video-testi {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--blue-deeper);
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}

.video-testi-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-testi-poster.hidden {
  display: none;
}

.video-testi iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-testi-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 26, 53, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.video-testi-play:hover {
  background: rgba(4, 26, 53, 0.55);
}

.video-testi-play span {
  width: 72px;
  height: 72px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════════
   7. GOOGLE REVIEWS MARQUEE
   ═══════════════════════════════════════════════ */
.google-reviews {
  margin-bottom: 40px;
}

.google-reviews-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.google-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.google-stars {
  color: var(--orange);
  font-size: 1.2rem;
}

.reviews-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: reviewsScroll 35s linear infinite;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes reviewsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.review-card .review-stars {
  color: var(--orange);
  margin-bottom: 8px;
}

.review-card p {
  font-size: 0.88rem;
  color: var(--gray-700);
  margin-bottom: 12px;
  line-height: 1.5;
}

.review-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-dark);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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