/**
 * Testimonials Section Component Styles
 * Custom animations and effects
 */

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* Testimonial Card Hover Effects */
.testimonial-card:hover .fas.fa-quote-left {
  transform: scale(1.2);
  color: #3b82f6;
  transition: all 0.3s ease;
}

/* Reviews Ticker Animation */
.reviews-ticker {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: inline-block;
  margin-right: 3rem;
  white-space: nowrap;
}

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

/* Star Rating Hover Effect */
.testimonial-card .fa-star {
  transition: all 0.2s ease;
}

.testimonial-card:hover .fa-star {
  transform: scale(1.1);
}

/* Badge Animations */
.testimonial-card .absolute.top-4.right-4 > div {
  transition: all 0.3s ease;
}

.testimonial-card:hover .absolute.top-4.right-4 > div {
  transform: scale(1.05);
}

/* Progress Bar Animation */
.bg-yellow-400 {
  transition: width 1s ease-in-out;
}

/* Focus States for Accessibility */
.testimonial-card:focus-within {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .ticker-content {
    animation-duration: 20s;
  }

  .ticker-item {
    margin-right: 2rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-fade-in-up,
  .ticker-content {
    animation: none;
  }

  .testimonial-card,
  .testimonial-card * {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .testimonials-section {
    background: white !important;
  }

  .absolute {
    display: none !important;
  }

  .shadow-lg,
  .shadow-xl,
  .shadow-2xl {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
  }

  .animate-float,
  .animate-fade-in-up {
    animation: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
  .testimonial-card {
    border: 2px solid #000;
  }

  .bg-gradient-to-br {
    background: white !important;
  }

  .text-gray-600,
  .text-gray-700 {
    color: #000 !important;
  }
}

