/* ===========================
   NoirStack Footer
   =========================== */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--ns-bg, #0a0a0a), #0b0d0f);
  color: var(--ns-muted, #9ca3af);
  font-family: var(--font-primary, "Inter", sans-serif);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

/* faint animated grid background */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px) 0 0/30px 100%,
    linear-gradient(to bottom, rgba(255,255,255,.02) 1px, transparent 1px) 0 0/100% 30px;
  opacity: .25;
  pointer-events: none;
  animation: ns-footer-grid 55s linear infinite;
}
@keyframes ns-footer-grid { to { background-position: 30px 30px; } }

/* glowing accent line */
.site-footer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ns-primary, #0001FF), #5a7bff, transparent);
  filter: blur(.4px);
  opacity: .7;
}

/* footer layout */
.footer-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* nav grid */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

.footer-column {
  min-width: 180px;
  text-align: left;
  padding-right: 1rem;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.footer-column:last-child {
  border-right: none;
  padding-right: 0;
}

.footer-column h4 {
  color: var(--ns-text, #e2edff);
  font-size: 1rem;
  margin-bottom: .6rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0,1,255,.35);
}

.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin: .35rem 0; }

/* links */
.footer-column a {
  color: var(--ns-primary, #0001FF);
  text-decoration: none;
  font-weight: 500;
  transition: color .25s ease, text-shadow .25s ease;
}
.footer-column a i {
  margin-right: .4rem;
  min-width: 1.25rem;
  text-align: center;
  color: #5a7bff;
  transition: color .25s ease;
}

.footer-column a[target="_blank"]::after {
  content: "↗";
  margin-left: .25rem;
  font-size: .75rem;
  opacity: .65;
  color: var(--ns-primary);
}

/* hover effects */
.footer-column a:hover {
  color: #ffffff;
  text-shadow:
    0 0 6px var(--ns-primary),
    0 0 10px #5a7bff,
    0 0 14px rgba(255,230,0,.25);
}
.footer-column a:hover i { color: var(--ns-accent, #ffe600); }

/* credits */
.footer-credits {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--ns-muted);
}
.footer-credits i { color: var(--ns-primary); }

/* responsive */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .footer-column {
    border-right: none;
    padding-right: 0;
    min-width: unset;
  }
  .footer-column h4 { margin-top: 1rem; }
}
