/* Story Template Styles */

/* Story Hero */
.story-hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.05));
  text-align: center;
}

.story-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-hero .story-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.story-hero .story-category {
  background: var(--gradient-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
}

.story-hero .story-date,
.story-hero .story-read-time {
  color: var(--muted);
  font-size: 0.85rem;
}

.story-hero .story-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-hero .story-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Image */
.story-featured-image {
  margin: 2rem 0;
}

.story-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* Behind the Scenes */
.behind-scenes {
  padding: 4rem 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.behind-scenes h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--ink);
}

.behind-scenes-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.behind-scenes-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 2rem;
}

.photographer-note {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.photographer-note h3 {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 600;
}

.photographer-note blockquote {
  margin: 0;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
}

.behind-scenes-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* Story Gallery - Pinterest-style Masonry Layout */
.story-gallery {
  display: block !important;
  column-count: 2 !important;
  column-gap: 1.5rem !important;
  margin: 2rem 0 !important;
  break-inside: avoid;
  grid-template-columns: none !important;
  grid-auto-rows: none !important;
}

.story-gallery img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: auto !important;
  display: block !important;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
  object-fit: contain !important;
  object-position: center;
  max-width: 100% !important;
}

.story-gallery img:hover {
  transform: scale(1.02);
}

/* Why This Matters */
.why-this-matters {
  padding: 4rem 0;
}

.why-this-matters h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--ink);
}

.matters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.matter-item {
  text-align: center;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.matter-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.matter-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.matter-item h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: var(--ink);
}

.matter-item p {
  color: var(--muted);
  line-height: 1.6;
}

/* Story CTA */
.story-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.05));
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.cta-incentives {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.incentive {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--ink);
}

.incentive-icon {
  font-size: 1.2rem;
}

/* Related Stories */
.related-stories {
  padding: 4rem 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.related-stories h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--ink);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-story-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.related-story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.related-story-image {
  height: 200px;
  overflow: hidden;
}

.related-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-story-card:hover .related-story-image img {
  transform: scale(1.05);
}

.related-story-content {
  padding: 1.5rem;
}

.related-story-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.related-story-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Footer CTA */
.footer-cta {
  padding: 4rem 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.footer-cta-content h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
}

.footer-cta-content p {
  font-size: 1.2rem;
  margin: 0 0 2rem;
  opacity: 0.9;
}

.footer-cta .btn {
  background: white;
  color: var(--brand);
  border: none;
}

.footer-cta .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand img {
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--muted);
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--brand);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.copy {
  color: var(--muted);
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .story-hero {
    padding: 3rem 0 1.5rem;
  }
  
  .story-hero .story-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  
  .story-hero .story-subtitle {
    font-size: 1rem;
  }
  
  .behind-scenes-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .matters-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-incentives {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .story-gallery {
    display: block !important;
    column-count: 1 !important;
    column-gap: 0.75rem !important;
    grid-template-columns: none !important;
  }
  
  .story-gallery img {
    height: auto !important;
    max-height: none !important;
    margin-bottom: 0.75rem;
  }
}
