/* Feed page shell + desktop multi-column layout (mobile stays single-column) */

.feed-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #101010, #0b0b0b);
  border: 1px solid #00ffcc55;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 18px #00ffcc14;
}

.feed-card .feed-meta {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-card .feed-meta h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--mint, #00ff99);
}

.feed-eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #9aa);
}

.feed-section-title {
  margin: 0 0 12px;
  color: var(--mint, #00ff99);
  font-size: 1.05rem;
  font-weight: 900;
}

.feed-section-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.feed-stream {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feed-personalized {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.feed-personalized > .card {
  margin-bottom: 0;
}

/* Desktop: two-column stream + sticky alerts sidebar */
@media (min-width: 900px) {
  #feedAppContent {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    column-gap: 18px;
    row-gap: 14px;
    align-items: start;
  }

  .feed-tabs {
    grid-column: 1 / -1;
  }

  #feedAlertsSection {
    grid-column: 2;
    grid-row: 2 / span 24;
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 68px);
    align-self: start;
    margin-bottom: 0;
  }

  #feedEmpty,
  #feedCuriosity,
  #feedPersonalizedSections,
  #feedStream,
  #feedSuggestions {
    grid-column: 1;
  }

  .feed-stream {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-section-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 899px) {
  #feedAppContent {
    display: block;
  }

  #feedAlertsSection {
    position: static;
  }

  .feed-stream,
  .feed-section-grid,
  .feed-suggestions-grid {
    grid-template-columns: 1fr;
  }
}
