/* ============================================
   NURAYA — insights.css
   Insights (Knowledge Hub) page-specific sections.
   Loaded only on insights.html.
   ============================================ */

/* ============================================
   INSIGHTS HERO
   ============================================ */
.insights-hero {
  background: var(--offwhite);
  min-height: 35vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-2xl) 0 var(--space-md);
}

.insights-hero__content {
  max-width: 580px;
}

.insights-hero__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.insights-hero__lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================
   TOPIC FILTERS
   ============================================ */
.topic-filters {
  background: var(--offwhite);
  padding: var(--space-md) 0 var(--space-lg);
  position: relative;
}

.topic-filters__row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.topic-filters__row::-webkit-scrollbar {
  display: none;
}

.topic-chip {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--forest);
  padding: 0.6rem 1.25rem;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.topic-chip:hover {
  background: var(--dew);
}

.topic-chip[aria-pressed="true"] {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

/* Fade hint for horizontal scroll */
.topic-filters__fade {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3rem;
  background: linear-gradient(to right, transparent, var(--offwhite));
  pointer-events: none;
}

/* ============================================
   FEATURED ARTICLE
   ============================================ */
.featured-article {
  background: var(--cream);
  padding: var(--space-xl) 0;
}

.featured-article--hidden {
  display: none;
}

.featured-article__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-lg);
  align-items: center;
}

.featured-article__image {
  aspect-ratio: 4/3;
  background: var(--dew);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.featured-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-article__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: var(--fs-caption);
}

.featured-article__topic {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.featured-article__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.featured-article__excerpt {
  font-size: var(--fs-lead);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.featured-article__meta {
  font-size: var(--fs-caption);
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.featured-article__meta span {
  margin: 0 0.5rem;
  opacity: 0.4;
}

/* ============================================
   ARTICLES GRID
   ============================================ */
.articles-section {
  background: var(--offwhite);
  padding: var(--space-xl) 0;
}

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

.articles-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-lg) 0;
  font-size: var(--fs-body);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  display: none;
}

.articles-empty--visible {
  display: block;
}

/* Hide cards that don't match filter */
.insight-card--hidden {
  display: none;
}

/* ============================================
   NEWSLETTER BAND
   ============================================ */
.newsletter-band {
  background: var(--forest);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.newsletter-band__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.newsletter-band__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.newsletter-band__lead {
  font-size: var(--fs-body);
  font-weight: 300;
  color: rgba(242, 228, 206, 0.6);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.newsletter-form__input {
  flex: 1;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(242, 228, 206, 0.3);
  padding: 0.75rem 0.25rem;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.newsletter-form__input::placeholder {
  color: rgba(242, 228, 206, 0.4);
}

.newsletter-form__input:focus {
  border-bottom: 2px solid var(--amber);
  padding-bottom: calc(0.75rem - 1px);
}

.newsletter-form__note {
  font-size: var(--fs-caption);
  color: rgba(242, 228, 206, 0.35);
  margin-top: 0.5rem;
}

.newsletter-success {
  display: none;
  font-size: var(--fs-lead);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  padding: var(--space-sm) 0;
}

.newsletter-success--visible {
  display: block;
}

/* ============================================
   RESPONSIVE — INSIGHTS
   ============================================ */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .insights-hero {
    min-height: auto;
    padding: 7rem 0 var(--space-sm);
  }

  .featured-article__grid {
    grid-template-columns: 1fr;
  }

  .featured-article__image {
    aspect-ratio: 16/9;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-chip {
    font-size: 0.78rem;
  }

  .topic-filters__fade {
    display: block;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
  }
}
