/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS - PHASE B: PRODUCTION CSS
   PyStatR+ Futuristic Design System
   
   Colors: Cyan (#22d3ee), Gold (#FFD700), Teal (#06b6d4)
   Style: Futuristic, geometric, luminous
   ═══════════════════════════════════════════════════════════════════════════ */

/* Grid Container */
#featured-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  #featured-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  #featured-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIAL CARD - Futuristic Glass Morphism
   ═══════════════════════════════════════════════════════════════════════════ */

#featured-testimonials-grid .testimonial-card-modern {
  position: relative;
  opacity: 1;
  visibility: visible;
  animation: testimonialReveal 0.6s ease-out backwards;
}

/* Staggered entrance animation */
#featured-testimonials-grid .testimonial-card-modern:nth-child(1) { animation-delay: 0.05s; }
#featured-testimonials-grid .testimonial-card-modern:nth-child(2) { animation-delay: 0.1s; }
#featured-testimonials-grid .testimonial-card-modern:nth-child(3) { animation-delay: 0.15s; }
#featured-testimonials-grid .testimonial-card-modern:nth-child(4) { animation-delay: 0.2s; }
#featured-testimonials-grid .testimonial-card-modern:nth-child(5) { animation-delay: 0.25s; }
#featured-testimonials-grid .testimonial-card-modern:nth-child(6) { animation-delay: 0.3s; }

@keyframes testimonialReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Glow Effect Layer */
#featured-testimonials-grid .testimonial-glow {
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.3) 0%,
    rgba(6, 182, 212, 0.1) 50%,
    rgba(255, 215, 0, 0.2) 100%
  );
  filter: blur(8px);
  pointer-events: none;
}

#featured-testimonials-grid .testimonial-card-modern:hover .testimonial-glow {
  opacity: 1;
}

/* Card Inner - Glass morphism effect */
#featured-testimonials-grid .testimonial-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 16px;
  
  /* Glass morphism background */
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.85) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Geometric border - cyan accent */
  border: 1px solid rgba(34, 211, 238, 0.15);
  
  /* Subtle inner glow */
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.3);
  
  transition: all 0.3s ease;
}

#featured-testimonials-grid .testimonial-card-modern:hover .testimonial-card-inner {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-4px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(34, 211, 238, 0.1);
}

/* Corner accent - geometric touch */
#featured-testimonials-grid .testimonial-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(34, 211, 238, 0.08) 50%
  );
  border-radius: 0 16px 0 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUOTE STYLING
   ═══════════════════════════════════════════════════════════════════════════ */

/* Quote Icon - Large decorative */
#featured-testimonials-grid .testimonial-quote-icon {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  color: rgba(34, 211, 238, 0.12);
  pointer-events: none;
  z-index: 0;
}

/* Star Rating */
#featured-testimonials-grid .testimonial-stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* Quote Text */
#featured-testimonials-grid .testimonial-text-modern {
  position: relative;
  z-index: 1;
  color: #cbd5e1;
  font-size: 0.925rem;
  line-height: 1.7;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 1.25rem;
  
  /* Gradient text fade for long quotes */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICE BADGE - Pill style with glow
   ═══════════════════════════════════════════════════════════════════════════ */

#featured-testimonials-grid .testimonial-service-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 1.25rem;
  width: fit-content;
  border: 1px solid currentColor;
  opacity: 0.9;
  transition: all 0.3s ease;
}

#featured-testimonials-grid .testimonial-card-modern:hover .testimonial-service-badge {
  opacity: 1;
  box-shadow: 0 0 12px currentColor;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTHOR SECTION - Modern layout with avatar
   ═══════════════════════════════════════════════════════════════════════════ */

#featured-testimonials-grid .testimonial-author-modern {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* Avatar - Gradient circle with initials */
#featured-testimonials-grid .author-avatar-modern {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  
  /* Outer ring effect */
  box-shadow: 
    0 0 0 2px rgba(15, 23, 42, 1),
    0 0 0 3px currentColor;
  
  transition: all 0.3s ease;
}

#featured-testimonials-grid .testimonial-card-modern:hover .author-avatar-modern {
  box-shadow: 
    0 0 0 2px rgba(15, 23, 42, 1),
    0 0 0 3px currentColor,
    0 0 15px currentColor;
}

/* Author Info */
#featured-testimonials-grid .author-info-modern {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

#featured-testimonials-grid .author-info-modern strong {
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#featured-testimonials-grid .author-info-modern span {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.4;
}

#featured-testimonials-grid .author-info-modern .author-location {
  font-size: 0.7rem;
  color: #64748b;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  #featured-testimonials-grid .testimonial-card-inner {
    padding: 1.25rem;
    min-height: 280px;
  }
  
  #featured-testimonials-grid .testimonial-quote-icon {
    font-size: 3rem;
    top: 0.75rem;
    right: 1rem;
  }
  
  #featured-testimonials-grid .testimonial-text-modern {
    font-size: 0.875rem;
    -webkit-line-clamp: 5;
  }
  
  #featured-testimonials-grid .author-avatar-modern {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════════════════ */

#featured-testimonials-grid .testimonials-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 16px;
  border: 1px dashed rgba(34, 211, 238, 0.2);
}

#featured-testimonials-grid .testimonials-empty-state p {
  color: #64748b;
  font-size: 1rem;
}
