/* ============================================================
   examples.css  –  Scrolling news/article page
   Inherits all CSS variables from styles.css
   ============================================================ */

/* ── Compact Page Header ─────────────────────────────────── */
.page-header {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp .5s forwards .1s;
}
.breadcrumb .fira   { font-family: 'Fira Code', monospace; letter-spacing: .05em; }
.breadcrumb .sep    { opacity: .3; }
.breadcrumb .active { color: var(--text); }

.page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: .9rem;
  opacity: 0;
  animation: fadeUp .55s forwards .2s;
}

.page-sub {
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  max-width: 520px;
  opacity: 0;
  animation: fadeUp .55s forwards .32s;
}

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .5s forwards .42s;
}
.filter-label {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-right: .3rem;
}
.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  padding: .35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.22);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  border-color: transparent;
  color: #fff;
}

/* ── Articles Feed ───────────────────────────────────────── */
.articles-feed {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 3rem auto 6rem;
  padding: 0 2rem;
}

/* Separator line between articles */
.article-sep {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 3rem 0;
}

/* ── Individual Article ──────────────────────────────────── */
.news-article {
  position: relative;
  padding-left: 1.5rem;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}

/* Left accent line */
.news-article::before {
  content: '';
  position: absolute;
  left: 0;
  top: .2rem;
  bottom: .2rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--grad-a), var(--grad-b));
  opacity: .5;
  transition: opacity var(--transition);
}
.news-article:hover::before { opacity: 1; }

.news-article.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Meta row */
.article-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
}
.article-date {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .05em;
}

/* Category tags */
.case-tag {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .22rem .7rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.tag-social    { background: rgba(0,198,255,0.1);  color: #00c6ff; border-color: rgba(0,198,255,0.2);  }
.tag-location  { background: rgba(124,58,237,0.1); color: #a78bfa; border-color: rgba(124,58,237,0.2); }
.tag-biometric { background: rgba(255,64,129,0.1); color: #ff80ab; border-color: rgba(255,64,129,0.2); }
.tag-data      { background: rgba(255,183,0,0.1);  color: #ffd54f; border-color: rgba(255,183,0,0.2);  }

/* Title */
.article-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -.3px;
}

/* Body copy */
.article-body {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
}

/* Footer row */
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  gap: .6rem;
}
.impact-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .73rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: .22rem .75rem;
  border-radius: 999px;
}
.impact-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--grad-b);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(.75); }
}
.learn-link {
  font-family: 'Fira Code', monospace;
  font-size: .73rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color var(--transition);
}
.learn-link:hover { color: var(--grad-a); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .page-header { padding: 2rem 1.2rem 1.5rem; }
  .filter-bar  { padding: 0 1.2rem; }
  .articles-feed { padding: 0 1.2rem; margin-top: 2rem; }
  .news-article { padding-left: 1rem; }
  .article-title { font-size: 1.1rem; }
}
