/* Success Stories Section Styles */
.stories-section {
  padding: 6rem 0;
  background: var(--bg-primary);
  width: 100%;
  overflow: hidden;
}

.stories-section .header {
  text-align: center;
  margin-bottom: 4rem;
}

.stories-section .eyebrow {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title.gradient-text {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--instagram-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 auto;
}

/* Story Grid Container */
.stories-grid {
  display: flex;
  padding: 5%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.stories-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Infinite Wrapper */
.infinite-stories-wrapper {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  width: fit-content;
  position: relative;
}

/* Story Cards */
.story-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  min-width: clamp(280px, 36vw, 380px);
  flex-shrink: 0;
}

.story-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 960px) {
  .story-card.featured {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.story-media {
  position: relative;
  width: 100%;
  padding-top: 75%;
}

.story-media video,
.story-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8));
}

.story-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  color: white;
}

.story-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  padding: 4px;
}

.brand-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.story-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.story-metrics {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--instagram-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.story-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.story-cta:hover {
  transform: translateX(4px);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}