/* Modern Testimonials Block Styles */

.wp-block-phearum-testimonials {
  margin: 3rem 0;
}

.phearum-testimonials {
  width: 100%;
  position: relative;
}

/* Grid Layout */

.phearum-testimonials-grid {
  display: grid;
  gap: 2rem;
}

.phearum-testimonials-grid.columns-1 {
  grid-template-columns: 1fr;
}

.phearum-testimonials-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.phearum-testimonials-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.phearum-testimonials-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.phearum-testimonial-profile {
  width: 4.25rem ;
  height: 4.25rem ;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 9999px;
}

/* List Layout */

.phearum-testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Slider Layout */

.phearum-testimonials-slider {
  overflow: hidden;
  padding: 0 2rem;
}

.testimonials-container {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  background: hsl(var(--primary));
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 15px hsl(var(--primary) / 0.3);
}

.slider-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsl(var(--primary) / 0.4);
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Testimonial Card - Modern Professional Design */

.testimonial-card {
  background-color: hsl(var(--card));
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--primary)) 50%, hsl(var(--accent)) 100%);
  opacity: 0.8;
}

/* Border Radius */

.testimonial-card.radius-none {
  border-radius: 0;
}

.testimonial-card.radius-sm {
  border-radius: 8px;
}

.testimonial-card.radius-md {
  border-radius: 12px;
}

.testimonial-card.radius-lg {
  border-radius: 16px;
}

.testimonial-card.radius-xl {
  border-radius: 20px;
}

/* Card Styles */

.testimonial-card.style-flat {
  border: 1px solid hsl(var(--border));
  box-shadow: none;
  background: hsl(var(--card));
}

.testimonial-card.style-bordered {
  border: 2px solid hsl(var(--border));
  box-shadow: 0 4px 6px -1px hsl(var(--foreground) / 0.1);
  background: hsl(var(--card));
}

.testimonial-card.style-elevated {
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card));
}

/* Shadow Intensities - Enhanced */

.testimonial-card.shadow-none {
  box-shadow: none;
}

.testimonial-card.shadow-low {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.testimonial-card.shadow-medium {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.testimonial-card.shadow-high {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Enhanced Hover Effects */

.testimonial-card[data-hover-animation="true"]:hover {
  transform: translateY(-8px) scale(1.02);
}

.testimonial-card[data-hover-animation="true"]:hover.shadow-low {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.testimonial-card[data-hover-animation="true"]:hover.shadow-medium {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 15px 20px -5px rgba(0, 0, 0, 0.1);
}

.testimonial-card[data-hover-animation="true"]:hover.shadow-high {
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3), 0 20px 30px -5px rgba(0, 0, 0, 0.15);
}

/* Card Padding - Optimized */

.testimonial-card.padding-sm {
  padding: 1.5rem;
}

.testimonial-card.padding-md {
  padding: 2rem;
}

.testimonial-card.padding-lg {
  padding: 2.5rem;
}

.testimonial-card.padding-xl {
  padding: 3rem;
}

/* Testimonial Content */

.testimonial-content {
  margin-bottom: 0.5rem;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(102, 126, 234, 0.2);
  line-height: 1;
  z-index: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #374151;
  font-style: italic;
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

/* Enhanced Rating Display */

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  justify-content: flex-start;
}

.star {
  width: 1.2rem;
  height: 1.2rem;
  transition: all 0.2s ease;
}

.star.filled {
  color: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.star.empty {
  color: #d1d5db;
}

/* Client Info - Professional Layout */

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.client-photo {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.testimonial-card[data-hover-animation="true"]:hover .client-photo {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.client-details {
  flex: 1;
  min-width: 0;
}

.client-name {
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.client-position {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.125rem 0;
  font-weight: 500;
}

.client-company {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
  font-weight: 400;
}

/* Responsive Design - Mobile First */

@media (max-width: 768px) {
  .phearum-testimonials-grid.columns-3,
    .phearum-testimonials-grid.columns-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .phearum-testimonials-grid.columns-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonials-container {
    gap: 1rem;
  }

  .testimonial-card.padding-lg,
    .testimonial-card.padding-xl {
    padding: 1.5rem;
  }

  .client-photo {
    width: 3rem;
    height: 3rem;
  }

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

  .testimonial-content::before {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .phearum-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .testimonial-content {
    margin-bottom: 1.5rem;
  }
}

/* Dark Mode Support */

@media (prefers-color-scheme: dark) {
  .testimonial-card {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-color: rgba(75, 85, 99, 0.8);
    color: #f9fafb;
  }

  .testimonial-text {
    color: #d1d5db;
  }

  .client-name {
    color: #f9fafb;
  }

  .client-position {
    color: #9ca3af;
  }

  .client-company {
    color: #6b7280;
  }

  .testimonial-content::before {
    color: rgba(102, 126, 234, 0.3);
  }
}

/* Print Styles */

@media print {
  .slider-controls {
    display: none;
  }

  .testimonial-card {
    -moz-column-break-inside: avoid;
         break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}

/* Custom Card Styling Classes */

.testimonial-card-hover-glow:hover {
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25) !important;
}

.testimonial-card-hover-rotate:hover {
  transform: rotate(1deg);
}

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

.testimonial-card-hover-lift:hover {
  transform: translateY(-4px);
}

/* Hover Shadow Effects - Can combine with animations */

.testimonial-card-hover-shadow-light:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.testimonial-card-hover-shadow-medium:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.testimonial-card-hover-shadow-heavy:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Special case: Glow animation already has shadow, don't override */

.testimonial-card-hover-glow.testimonial-card-hover-shadow-light:hover,
.testimonial-card-hover-glow.testimonial-card-hover-shadow-medium:hover,
.testimonial-card-hover-glow.testimonial-card-hover-shadow-heavy:hover {
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25) !important;
}

/* Card spacing classes */

.spacing-tight {
  gap: 0.5rem;
}

.spacing-normal {
  gap: 1rem;
}

.spacing-relaxed {
  gap: 1.5rem;
}

.spacing-loose {
  gap: 2rem;
}

/* Animation Transitions */

.testimonial-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Adjustments for Animations */

@media (prefers-color-scheme: dark) {
  .testimonial-card-hover-glow:hover {
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.4) !important;
  }
}