/* =========================
   PragOptics Footer (Galactic)
   /css/components/footer.css
   ========================= */

.app-footer{
  position: relative;
  margin-top: 3rem;
  padding: 1.35rem 1rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(8,10,16,0.20) 0%, rgba(8,10,16,0.62) 100%);
  color: rgba(220,230,245,0.74);
  overflow: hidden;
}

/* Nebula haze */
.app-footer::before{
  content:"";
  position:absolute;
  inset:-45% -20%;
  pointer-events:none;
  background:
    radial-gradient(42% 38% at 18% 45%, rgba(70, 175, 255, 0.12), transparent 62%),
    radial-gradient(46% 40% at 78% 35%, rgba(165, 85, 255, 0.12), transparent 63%),
    radial-gradient(50% 46% at 58% 85%, rgba(20, 255, 190, 0.09), transparent 66%);
  filter: blur(18px);
  opacity: 0.92;
}

/* Sparse stars */
.app-footer::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(1px 1px at 10% 30%, rgba(255,255,255,0.38), transparent 55%),
    radial-gradient(1px 1px at 24% 72%, rgba(255,255,255,0.22), transparent 55%),
    radial-gradient(1px 1px at 38% 48%, rgba(255,255,255,0.30), transparent 55%),
    radial-gradient(1px 1px at 56% 65%, rgba(255,255,255,0.18), transparent 55%),
    radial-gradient(1px 1px at 72% 34%, rgba(255,255,255,0.26), transparent 55%),
    radial-gradient(1px 1px at 88% 58%, rgba(255,255,255,0.20), transparent 55%);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: footerTwinkle 7.5s ease-in-out infinite;
}

@keyframes footerTwinkle{
  0%, 100% { opacity: 0.40; }
  50%      { opacity: 0.78; }
}

.footer-inner{
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.75fr;
  gap: 0.75rem 1rem;
  align-items: center;
}

.footer-left{
  display:flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 240px;
}

.footer-brand{
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(28, 164, 144, 0.92);
}

.footer-brand .tm{
  font-size: 0.72em;
  vertical-align: super;
  opacity: 0.9;
}

.footer-tagline{
  font-size: 0.86rem;
  opacity: 0.68;
}

.footer-links{
  display:flex;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.footer-link{
  color: rgba(220, 230, 245, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease, text-shadow 160ms ease;
}

.footer-link:hover{
  color: rgba(255,255,255,0.92);
  border-color: rgba(28, 164, 144, 0.55);
  text-shadow: 0 0 14px rgba(28, 164, 144, 0.18);
}

.footer-right{
  display:flex;
  justify-content: flex-end;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-meta{
  opacity: 0.72;
  font-size: 0.86rem;
}

.footer-sep{
  opacity: 0.35;
}

/* Environment chip */
#footerEnv{
  display:inline-flex;
  align-items:center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

#footerEnv.is-local{
  border-color: rgba(255, 208, 90, 0.25);
  color: rgba(255, 208, 90, 0.88);
  box-shadow: 0 0 18px rgba(255, 208, 90, 0.08);
}

#footerEnv.is-live{
  border-color: rgba(28, 164, 144, 0.22);
  color: rgba(28, 164, 144, 0.90);
  box-shadow: 0 0 18px rgba(28, 164, 144, 0.07);
}

/* Responsive */
@media (max-width: 900px){
  .footer-inner{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-right{
    justify-content: center;
  }
}
