/* ==========================================================================
   4TH SECTION: GOOGLE REVIEWS & INSTAGRAM-STYLE STORY VIDEO FEED
   Modeled after Screenshot 2026-09-12 161447.png (Strict 100vh Viewport)
   ========================================================================== */

.story-reviews-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background: transparent;
  color: #0E1326;
  box-sizing: border-box;
  padding: max(84px, 10vh) 14px max(18px, 2.5vh) 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 10;
}

.story-reviews-inner {
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.8vh, 10px);
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .story-reviews-section {
    padding: max(96px, 11vh) 32px max(24px, 3vh) 32px;
  }
  .story-reviews-inner {
    max-width: 520px;
    gap: clamp(8px, 1.2vh, 14px);
  }
}

/* TOP PILL BADGES (MATCHING REFERENCE PILLS) */
.story-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: clamp(2px, 0.4vh, 6px);
  flex-shrink: 0;
}

.story-pill {
  background-color: #FFFFFF;
  color: #C02C58;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-primary);
  font-size: clamp(10.5px, 1.2vh, 12.5px);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: clamp(4px, 0.6vh, 6px) clamp(8px, 1.2vw, 12px);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  user-select: none;
}

.story-pill svg {
  flex-shrink: 0;
}

/* SECTION 4 HEADLINES */
.story-section-title {
  font-family: var(--font-headline, 'Anton', sans-serif);
  font-size: clamp(26px, 4vh, 44px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #0E1326;
  text-align: center;
  margin: 0;
  flex-shrink: 0;
}

.story-section-subline {
  font-family: var(--font-primary);
  font-size: clamp(11px, 1.35vh, 13.5px);
  font-weight: 700;
  color: #3C4458;
  text-align: center;
  margin: 0 0 clamp(4px, 0.8vh, 8px) 0;
  letter-spacing: -0.01em;
  max-width: 480px;
  flex-shrink: 0;
}

/* INSTAGRAM-STYLE STORY VIDEO / MEDIA CARD FRAME */
.story-feed-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  flex: 1;
  min-height: 0;
  border-radius: clamp(20px, 3vh, 32px);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.12);
  background-color: #0E1114;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* STORY BACKGROUND MEDIA CONTAINER */
.story-media-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.story-bg-video,
.story-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: none;
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease;
}

.story-bg-video.active,
.story-bg-image.active {
  display: block;
  opacity: 1;
}

/* GRADIENT SHADOW SCRIMS OVER STORY MEDIA */
.story-scrim-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  z-index: 2;
  pointer-events: none;
}

.story-scrim-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.92) 100%);
  z-index: 2;
  pointer-events: none;
}

/* TOP SEGMENTED PROGRESS BARS (- - - -) */
.story-progress-track {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 20;
}

.story-progress-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.story-progress-fill {
  height: 100%;
  width: 0%;
  background: #FFFFFF;
  border-radius: 9999px;
  transition: width 0.1s linear;
}

.story-progress-segment.completed .story-progress-fill {
  width: 100% !important;
}

/* TAP ZONES FOR STORY SCRUBBING */
.story-tap-zone {
  position: absolute;
  top: 30px;
  bottom: 100px;
  z-index: 10;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.story-tap-left {
  left: 0;
  width: 35%;
}

.story-tap-right {
  right: 0;
  width: 65%;
}

/* FLOATING GOOGLE REVIEW CONTENT OVERLAY */
.story-review-overlay {
  position: relative;
  z-index: 15;
  padding: clamp(12px, 1.8vh, 18px) clamp(14px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
  color: #FFFFFF;
}

.story-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-reviewer-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-reviewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E84D38;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.story-reviewer-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.story-reviewer-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.story-google-rating-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

.story-stars {
  color: #FBBC05;
  letter-spacing: 1.5px;
  font-size: 13px;
}

.story-review-headline {
  font-family: var(--font-primary);
  font-size: clamp(14px, 2vh, 17px);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.story-review-body {
  font-family: var(--font-primary);
  font-size: clamp(11.5px, 1.4vh, 13px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-review-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.story-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.story-cta-pill {
  background-color: #2E3BE6;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(46, 59, 230, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.story-cta-pill:hover {
  background-color: #1a27cc;
  transform: scale(1.03);
}
