/**
 * Customer Stories Long Scroll Stylesheet
 *
 * @package iTradeAIMS
 */

.customer-stories-main {
  min-height: 100vh;
}

.customer-stories-section {
  padding: 40px 0 90px;
  background: radial-gradient(circle at 50% 10%, rgba(0, 102, 255, 0.04) 0%, transparent 60%);
}

.stories-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. Stories Feed (1 Image Per Row)
   ========================================================================== */
.stories-feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.story-card {
  background: rgba(18, 24, 38, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.story-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 102, 255, 0.32);
  box-shadow: 0 16px 36px -10px rgba(0, 102, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.story-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(10, 14, 23, 0.6);
}

.story-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.story-image-wrap:hover .story-img {
  transform: scale(1.008);
}

/* Zoom overlay indicator */
.story-zoom-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 18, 0.35);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.story-image-wrap:hover .story-zoom-overlay {
  opacity: 1;
}

.zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(18, 24, 38, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(4px);
  transition: transform 0.22s ease;
}

.story-image-wrap:hover .zoom-badge {
  transform: translateY(0);
}

/* ==========================================================================
   2. High-Converting Bottom CTA Banner
   ========================================================================== */
.stories-cta-banner {
  margin-top: 56px;
  padding: 44px 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.9) 0%, rgba(14, 19, 29, 0.95) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 14px 40px -10px rgba(0, 102, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cta-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary, #0066ff);
  margin-bottom: 8px;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary, #94a3b8);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-stories-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background-color: var(--accent-primary, #0066ff);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 102, 255, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-stories-primary:hover {
  background-color: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 102, 255, 0.5);
  color: #ffffff;
}

.btn-stories-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-stories-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   3. Fullscreen Lightbox Modal
   ========================================================================== */
.stories-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInStoriesLightbox 0.2s ease-out forwards;
}

@keyframes fadeInStoriesLightbox {
  from { opacity: 0; }
  to { opacity: 1; }
}

.stories-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stories-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
}

.stories-lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 12px;
  padding: 0 10px;
}

.stories-lightbox-counter {
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.btn-stories-lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stories-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.stories-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.stories-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stories-lightbox-nav:hover:not(:disabled) {
  background: var(--accent-primary, #0066ff);
  border-color: var(--accent-primary, #0066ff);
  transform: translateY(-50%) scale(1.08);
}

.stories-lightbox-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.btn-lightbox-prev {
  left: 10px;
}

.btn-lightbox-next {
  right: 10px;
}

.stories-lightbox-img-wrap {
  max-width: 90vw;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease;
}

/* ==========================================================================
   4. Mobile Adjustments
   ========================================================================== */
@media (max-width: 640px) {
  .stories-container {
    padding: 0 14px;
  }

  .stories-feed {
    gap: 18px;
  }

  .story-card {
    padding: 8px;
    border-radius: 14px;
  }

  .stories-cta-banner {
    padding: 32px 20px;
    margin-top: 40px;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-stories-primary,
  .btn-stories-secondary {
    width: 100%;
  }

  .stories-lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .btn-lightbox-prev {
    left: 2px;
  }

  .btn-lightbox-next {
    right: 2px;
  }
}
