/* css/backpack.css */
/* Page-specific styles for /backpack/
   Requires site.css tokens. */

/* =============================================
   LOGO
   ============================================= */
.logo-row {
  display: block;
  margin: 0 auto 12px auto;
  max-width: 240px;
  height: auto;
}
.logo--dark { display: block; }
.logo--light { display: none; }

html[data-theme="light"] .logo--dark { display: none; }
html[data-theme="light"] .logo--light { display: block; }
html[data-theme="dark"]  .logo--dark  { display: block; }
html[data-theme="dark"]  .logo--light { display: none; }


/* =============================================
   ACCESSIBILITY
   ============================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
  text-align: center;
  display: block;
  margin-bottom: 16px;
}


/* =============================================
   TIMELINE
   ============================================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

/* Source-colored left borders */
.timeline .card { border-left: 4px solid var(--border); }
.timeline .card.twitter { border-left-color: #1DA1F2; }
.timeline .card.discord { border-left-color: #5865F2; }
.timeline .card.pr      { border-left-color: #111111; }
html[data-theme="dark"] .timeline .card.pr { border-left-color: #f2f2f5; }

/* Card header row */
.timeline .card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.timeline .card .platform {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}
.timeline .card .date {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* Bullet lists inside cards */
.highlights {
  margin: 8px 0 8px 16px;
  padding: 0;
}
.highlights li {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.5;
}

/* Italic insight line */
.insight {
  font-style: italic;
  color: var(--muted);
  margin-top: 8px;
}

/* Card hidden when filtered out */
.timeline .card[aria-hidden="true"] {
  display: none;
}


/* =============================================
   FILTER BAR
   ============================================= */
.bp-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
}

.bp-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--menu-bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.bp-filter-btn:hover {
  background: var(--hover);
  transform: translateY(-1px);
}
.bp-filter-btn:active {
  transform: translateY(0);
}
.bp-filter-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.bp-filter-btn.active {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}

/* No results message */
.bp-no-results {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}


/* =============================================
   SHARE BUTTON
   Overrides .btn base to be compact and
   consistent regardless of card source color.
   ============================================= */
.bp-share-btn {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 4px;
}
.bp-share-btn.copied {
  color: #065f46;
  border-color: #a7f3d0;
  background: #ecfdf5;
}
html[data-theme="dark"] .bp-share-btn.copied {
  color: #b6ffe1;
  border-color: #1d5d4b;
  background: #0f2a23;
}


/* =============================================
   JOIN BANNER (sticky)
   ============================================= */
.bp-join-banner {
  position: sticky;
  top: 57px;
  z-index: 200;
  margin: 16px -24px 0;           /* bleed to card edges */
  padding: 10px 24px;
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bp-join-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

.bp-join-banner-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  flex: 1 1 auto;
}

/* The CTA inside the banner is a slim variant of .cta-inline */
.bp-join-banner-cta {
  flex-shrink: 0;
  padding: 7px 12px;
}
.bp-join-banner-cta .cta-logo {
  height: 18px;
}

@media (max-width: 480px) {
  .bp-join-banner {
    margin-left: -16px;
    margin-right: -16px;
    padding: 10px 16px;
  }
  .bp-join-banner-text {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .bp-join-banner {
    top: 110px; /* mobile nav stacks and is taller */
  }
}


/* =============================================
   MIDWAY CTA
   ============================================= */
.bp-midway-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--soft);
  margin: 4px 0;                  /* sits between timeline cards naturally */
}

.bp-midway-cta-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  flex: 1 1 auto;
}

@media (max-width: 560px) {
  .bp-midway-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .bp-filter-btn,
  .bp-join-banner-cta {
    transition: none;
  }
}
