/*
 * Feedback Slider Block Styles
 * @author The Goodplace
 * @package The Goodplace
 */

/* Base Styles */
.feedback-slider-block {
  position: relative;
  overflow: hidden;
  background: rgba(var(--color-apricot-rgb), 0.5);
  padding: 4rem 0 4rem 0;
  min-height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 576px) {
  .feedback-slider-block {
    min-height: auto;
  }
}

.feedback-slider-block .slider-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.feedback-slider-block .slider-title {
  font-weight: 700;
  line-height: 1.2;
  color: var(--bs-dark);
}

.feedback-slider-block .slider-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--bs-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Swiper Container */
.feedback-swiper {
  padding: 2rem 0;
  overflow: visible;
}

.feedback-swiper .swiper-wrapper {
  align-items: stretch;
  padding-bottom: 40px;
}

/* Feedback Cards */
.feedback-card {
  background: white;
  border-radius: 4px;
  padding: 2rem;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 4px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 0.5rem;
}

/* Category Badge */
.category-badge {
  display: inline-flex;
  height: 32px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--color-malibu);
  color: var(--color-shark);
}

/* Quote Icon */
.quote-icon {
  font-size: 2rem;
  color: #a8d5ba;
  opacity: 0.7;
}

/* Feedback Text */
.feedback-text {
  color: var(--color-shark);
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 30px; /* 150% */
}

.feedback-text p {
  margin: 0;
}

/* Person Info */
.person-info {
  margin-top: auto;
  padding-top: 1rem;
}

.person-photo {
  flex-shrink: 0;
}

.person-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.person-placeholder {
  width: 50px;
  height: 50px;
  background: #e9ecef;
  color: #6c757d;
  font-size: 1.2rem;
}

.person-name {
  color: var(--color-shark);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 137.5% */
  margin-bottom: 0.25rem;
}

.person-function {
  color: var(--color-shark);
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 22px;
}

.person-company {
  font-weight: 500;
}

/* Slider Styles */
.slider-style-cards .feedback-card {
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.slider-style-minimal .feedback-card {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 1.5rem;
}

.slider-style-bordered .feedback-card {
  border: 2px solid #a8d5ba;
  box-shadow: none;
}

.slider-style-shadow .feedback-card {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.slider-style-gradient .feedback-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Swiper Pagination */
.feedback-swiper .swiper-pagination {
  position: relative;
  margin-top: 3rem;
}

.feedback-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #dee2e6;
  opacity: 1;
  transition: all 0.3s ease;
}

.feedback-swiper .swiper-pagination-bullet-active {
  background: #a8d5ba;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .slides-per-view-4 .feedback-swiper {
    --swiper-slides-per-view: 3;
  }
}

@media (max-width: 991.98px) {
  .feedback-slider-block {
    padding: 3rem 0;
  }

  .slides-per-view-4 .feedback-swiper,
  .slides-per-view-3 .feedback-swiper {
    --swiper-slides-per-view: 2;
  }

  .feedback-swiper .swiper-button-next {
    right: -15px;
  }

  .feedback-swiper .swiper-button-prev {
    left: -15px;
  }
}

@media (max-width: 767.98px) {
  .feedback-slider-block {
    padding: 2rem 0;
  }

  .feedback-slider-block .slider-title {
    font-size: 1.75rem;
  }

  .feedback-slider-block .slider-description {
    font-size: 1rem;
  }

  .slides-per-view-4 .feedback-swiper,
  .slides-per-view-3 .feedback-swiper,
  .slides-per-view-2 .feedback-swiper {
    --swiper-slides-per-view: 1;
  }

  .feedback-card {
    padding: 1.5rem;
    margin: 0;
  }

  .feedback-swiper .swiper-button-next,
  .feedback-swiper .swiper-button-prev {
    display: none;
  }

  .feedback-swiper {
    padding: 1rem 0;
  }
}

@media (max-width: 575.98px) {
  .feedback-card {
    padding: 1.25rem;
  }

  .person-image,
  .person-placeholder {
    width: 40px;
    height: 40px;
  }

  .person-name {
    font-size: 0.9rem;
  }

  .person-function {
    font-size: 0.8rem;
  }
}

/* Animation Enhancements */
.has-animation .feedback-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.has-animation .feedback-card.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Loading States */
.feedback-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.feedback-card.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #a8d5ba;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Focus States for Accessibility */
.feedback-card:focus {
  outline: 2px solid #a8d5ba;
  outline-offset: 2px;
}

.swiper-button-next:focus,
.swiper-button-prev:focus {
  outline: 2px solid #a8d5ba;
  outline-offset: 2px;
}

.swiper-horizontal > .swiper-scrollbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3px;
  z-index: 50;
  height: 5px;
  background-color: white;
}

.swiper-scrollbar-drag {
  background: var(--color-malibu);
}

/* Custom Scrollbar for Swiper */
.feedback-swiper::-webkit-scrollbar {
  height: 4px;
}

.feedback-swiper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.feedback-swiper::-webkit-scrollbar-thumb {
  background: #a8d5ba;
  border-radius: 2px;
}

.feedback-swiper::-webkit-scrollbar-thumb:hover {
  background: #8bc7a0;
}
