/* ==========================================================================
   Pulp House Publishing - Testimonials Page Stylesheet
   ========================================================================== */

:root {
  --ph-trust-green: #00b67a;
  --ph-purple-dark: #341E36;
  --ph-magenta: #9E27A9;
}

/* 1. Hero / Header Banner Section */
.ph-testimonials-hero {
  background-color: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid rgba(158, 39, 169, 0.15);
  color: #341E36;
}

.ph-hero-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #9E27A9;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ph-hero-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 2.5rem;
  font-weight: 800;
  color: #341E36;
  line-height: 1.25;
  margin-bottom: 16px;
}

.ph-hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #341E36;
  opacity: 0.9;
  max-width: 650px;
  margin-bottom: 0;
}

/* 2. Real Client Video Testimonials Section */
.ph-video-testimonials-section {
  background: linear-gradient(135deg, #1f0c29 0%, #2a1133 100%);
  padding: 65px 16px 80px;
  color: #ffffff;
}

.ph-sec-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.ph-sec-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ff9cf8;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ph-sec-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.ph-sec-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.ph-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1220px;
  margin: 0 auto;
}

.ph-video-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ph-video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 156, 248, 0.4);
  box-shadow: 0 24px 50px rgba(158, 39, 169, 0.35);
}

.ph-video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 9 / 14;
  max-height: 480px;
}

.ph-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 0;
}

.ph-video-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ph-video-author i {
  color: #ff9cf8;
}

.ph-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #00b67a;
  background: rgba(0, 182, 122, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 182, 122, 0.3);
}

/* 3. Written Reviews & Ratings Section */
.ph-written-reviews-section {
  background: #ffffff;
  padding: 70px 16px;
  color: #341E36;
}

.ph-trust-score-bar {
  max-width: 1220px;
  margin: 0 auto 40px;
  background: #fdf5ff;
  border: 1px solid rgba(158, 39, 169, 0.2);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(52, 30, 54, 0.05);
  flex-wrap: wrap;
}

.ph-trust-score-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ph-trust-score-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: #341E36;
  line-height: 1;
}

.ph-trust-stars {
  color: #00b67a;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.ph-trust-score-text {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.ph-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto;
}

.ph-review-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(52, 30, 54, 0.06);
  border: 1px solid rgba(158, 39, 169, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ph-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(158, 39, 169, 0.15);
  border-color: rgba(158, 39, 169, 0.35);
}

.ph-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ph-stars {
  color: #00b67a;
  font-size: 1rem;
}

.ph-review-date {
  font-size: 0.8rem;
  color: #888888;
}

.ph-review-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #341E36;
  margin-bottom: 10px;
  line-height: 1.35;
}

.ph-review-preview {
  font-size: 0.92rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ph-see-more {
  color: #9E27A9;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: inline-block;
}

.ph-see-more:hover {
  color: #341E36;
}

.ph-reviewer-info {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0e4f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph-reviewer-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #341E36;
}

.ph-reviewer-verified {
  font-size: 0.78rem;
  color: #00b67a;
  font-weight: 600;
}

/* 4. Interactive Review Modal Popup */
.ph-review-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 10, 38, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ph-review-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.ph-review-modal-card {
  background-color: #ffffff;
  padding: 36px 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid rgba(158, 39, 169, 0.2);
}

.ph-review-modal-overlay.active .ph-review-modal-card {
  transform: scale(1);
}

.ph-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 24px;
  color: #888888;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}

.ph-modal-close-btn:hover {
  color: #341E36;
}

.ph-modal-stars {
  color: #00b67a;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.ph-modal-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #341E36;
}

.ph-modal-body {
  font-size: 0.98rem;
  color: #444444;
  line-height: 1.65;
  margin-bottom: 20px;
}

.ph-modal-author {
  font-weight: 800;
  font-size: 0.95rem;
  color: #341E36;
  border-top: 1px solid #f0e4f5;
  padding-top: 12px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .ph-hero-title {
    font-size: 2rem;
  }

  .ph-sec-title {
    font-size: 1.8rem;
  }

  .ph-trust-score-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .ph-video-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 24px;
    padding-left: 8px;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ff9cf8 rgba(255, 255, 255, 0.1);
  }

  .ph-video-grid::-webkit-scrollbar {
    height: 8px;
  }

  .ph-video-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
  }

  .ph-video-grid::-webkit-scrollbar-thumb {
    background: #ff9cf8;
    border-radius: 10px;
  }

  .ph-video-card {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center;
  }

  .ph-video-wrapper {
    max-height: 420px;
  }

  .ph-review-modal-card {
    padding: 24px 20px;
  }
}
