/* ===================================
   FIRED UP BBQ - Testimonials Styles
   =================================== */

/* Testimonials Section */
.testimonials-section {
  background: var(--white);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(214, 105, 30, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translateY(-50%);
}

.testimonials-section::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(178, 34, 34, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Rating Summary */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
  color: #ffd700;
  font-size: 1.25rem;
}

.stars i {
  transition: all 0.3s ease;
  animation: starTwinkle 3s ease-in-out infinite;
}

.stars i:nth-child(1) {
  animation-delay: 0s;
}
.stars i:nth-child(2) {
  animation-delay: 0.2s;
}
.stars i:nth-child(3) {
  animation-delay: 0.4s;
}
.stars i:nth-child(4) {
  animation-delay: 0.6s;
}
.stars i:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes starTwinkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.rating-text {
  color: var(--smoke-gray);
  font-weight: 600;
  font-size: 1rem;
}

/* Testimonials Carousel Container */
.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 60px;
}

@media (max-width: 768px) {
  .testimonials-carousel {
    padding: 0 16px;
  }
}

/* Testimonial Track */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 2rem;
  padding: 1rem 0;
}

/* Testimonial Card */
.testimonial-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-base);
  transition: all 0.3s ease;
  cursor: grab;
}

.testimonial-card:active {
  cursor: grabbing;
}

@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 100%;
  }
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--ember-orange);
  opacity: 0.2;
  font-family: var(--accent-font);
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  background: var(--white);
}

/* Testimonial Stars */
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.testimonial-stars i {
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-stars i {
  animation: starBounce 0.5s ease;
}

@keyframes starBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Testimonial Text */
.testimonial-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--smoke-gray);
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  padding: 0 1rem;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 1px;
  background: var(--ember-orange);
  top: 50%;
  opacity: 0.3;
}

.testimonial-text::before {
  left: -10px;
  transform: translateY(-50%);
}

.testimonial-text::after {
  right: -10px;
  transform: translateY(-50%);
}

/* Testimonial Author */
.testimonial-author {
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid var(--ash-gray);
}

.testimonial-author strong {
  display: block;
  color: var(--charcoal-black);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-author strong {
  color: var(--ember-orange);
}

.testimonial-author span {
  color: var(--ember-orange);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Testimonial Controls */
.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .testimonial-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    justify-content: center; /* no space-between here */
    pointer-events: none; /* allow only buttons to be clickable */
  }

  .testimonial-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all; /* clickable */
  }

  .testimonial-prev {
    left: 6px;
  }
  .testimonial-next {
    right: 6px;
  }

  /* Remove track gap on mobile to avoid translate misalignment due to gap */
  .testimonial-track {
    gap: 0;
  }
}

.testimonial-prev,
.testimonial-next {
  position: relative;
  overflow: hidden;
  width: 44px; /* lock button size */
  height: 44px; /* lock button size */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-prev::before,
.testimonial-next::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--ember-orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: -1;
}

.testimonial-prev:hover::before,
.testimonial-next:hover::before {
  width: 100%;
  height: 100%;
}

/* Dots Indicator */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ash-gray);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot:hover {
  background: var(--smoke-gray);
  transform: scale(1.2);
}

.dot.active {
  background: var(--ember-orange);
  width: 30px;
  border-radius: 5px;
}

/* Testimonial CTA */
.testimonial-cta {
  text-align: center;
  margin-top: 2rem;
  animation: fadeIn 0.8s ease;
}

/* Auto-scroll Progress Bar */
.testimonial-progress {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ash-gray);
  border-radius: 3px;
  overflow: hidden;
}

.testimonial-progress-bar {
  height: 100%;
  background: var(--ember-orange);
  width: 0;
  transition: width 5s linear;
  border-radius: 3px;
}

.testimonial-progress-bar.active {
  width: 100%;
}

/* Review Card Variant */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-base);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.review-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--ember-orange), var(--flame-red));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.review-card:hover::after {
  transform: scaleX(1);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ash-gray);
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ember-orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.review-info {
  flex: 1;
}

.review-name {
  font-weight: 700;
  color: var(--charcoal-black);
  margin-bottom: 0.25rem;
}

.review-date {
  font-size: 0.875rem;
  color: var(--smoke-gray);
}

.review-rating {
  color: #ffd700;
}

.review-text {
  color: var(--smoke-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.review-event {
  display: inline-block;
  background: var(--warm-white);
  color: var(--ember-orange);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-round);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Loading Animation */
.testimonial-skeleton {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
}

.skeleton-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  height: 300px;
  background: var(--ash-gray);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .skeleton-card {
    flex: 0 0 100%;
  }
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: skeletonShimmer 2s infinite;
}

@keyframes skeletonShimmer {
  100% {
    left: 100%;
  }
}

/* Floating Review Badges */
.floating-badge {
  position: absolute;
  background: var(--flame-red);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-round);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: floatBadge 6s ease-in-out infinite;
  z-index: 5;
}

.floating-badge.top-left {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.floating-badge.top-right {
  top: 20px;
  right: 20px;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
    padding: 0;
  }

  .testimonial-text::before,
  .testimonial-text::after {
    display: none;
  }

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

/* Accessibility */
.testimonial-card:focus,
.testimonial-prev:focus,
.testimonial-next:focus,
.dot:focus {
  outline: 2px solid var(--ember-orange);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .testimonials-carousel {
    padding: 0;
  }

  .testimonial-track {
    display: block;
  }

  .testimonial-card {
    page-break-inside: avoid;
    margin-bottom: 2rem;
    box-shadow: none !important;
    border: 1px solid #000;
  }

  .testimonial-controls,
  .testimonial-dots,
  .testimonial-progress,
  .floating-badge {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .testimonial-controls button i {
    display: block;
    line-height: 1;
    margin: 0;
  }
}
/* --- Stop inherited hover movement from global button styles --- */
.testimonials-section .testimonial-controls button {
  box-sizing: border-box;
  border: 0; /* prevent border-thickness jumps */
  transform: none; /* desktop: no hover translate */
  transition: background-color 0.2s ease, box-shadow 0.2s ease; /* avoid transform-based animations */
}

.testimonials-section .testimonial-controls button:hover {
  transform: none; /* lock position on hover */
}

/* Mobile: keep the Y-centering translate even on hover */
@media (max-width: 768px) {
  .testimonials-section .testimonial-controls button {
    top: 50%;
    transform: translateY(-50%); /* base position */
  }
  .testimonials-section .testimonial-controls button:hover {
    transform: translateY(-50%); /* same position on hover */
  }
}

/* Lock icon sizing so chevrons never reflow */
.testimonials-section .testimonial-controls button i {
  display: inline-block;
  line-height: 1;
  font-size: 18px; /* lock icon size */
  vertical-align: middle;
}

/* Keep your pulse effect purely visual—no layout shift */
.testimonials-section .testimonial-controls .testimonial-prev::before,
.testimonials-section .testimonial-controls .testimonial-next::before {
  pointer-events: none; /* make sure overlay can't affect clicks */
}
