/* ============================================
   SECTION E: Sticky Footer
   Sources & Methodology
   Final Responsive Adjustments
   ============================================ */

/* Sticky Footer */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to top, var(--bg-primary) 60%, rgba(10, 14, 23, 0.95));
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.sticky-footer.is-visible {
  transform: translateY(0);
}

.sticky-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-footer__text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sticky-footer__text strong {
  color: var(--red-debt);
  font-weight: 600;
}

.sticky-footer__text .amber {
  color: var(--amber-warning);
  font-weight: 600;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--blue-accent);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.share-btn:hover {
  background: #2563eb;
}

.share-btn svg {
  width: 14px;
  height: 14px;
}

/* Five Reasons Section */
.reasons {
  background: var(--bg-secondary);
}

.reasons-list {
  list-style: none;
  counter-reset: reasons;
  display: grid;
  gap: 1rem;
}

.reason-item {
  counter-increment: reasons;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  position: relative;
  transition: border-color var(--transition-fast);
}

.reason-item:hover {
  border-color: var(--border-accent);
}

.reason-item::before {
  content: counter(reasons);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red-debt);
  opacity: 0.6;
}

.reason-item__title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.reason-item__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sources & Methodology */
.sources-section {
  border-top: 1px solid var(--border-subtle);
  padding-bottom: 6rem; /* Space for sticky footer */
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.source-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.source-card__id {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--blue-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.375rem;
}

.source-card__title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.source-card__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Methodology */
.methodology {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

.methodology__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.methodology p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.methodology p:last-child {
  margin-bottom: 0;
}

/* Page Footer */
.page-footer {
  text-align: center;
  padding: 2rem 0 6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* Responsive: Tablet */
@media (max-width: 768px) {
  .sticky-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .sources-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
  .sticky-footer {
    padding: 0.625rem 0;
  }

  .sticky-footer__text {
    font-size: 0.6875rem;
  }

  .reason-item {
    padding-left: 3.5rem;
  }

  .sources-grid {
    grid-template-columns: 1fr;
  }
}
