/* Footer: solid, readable, above particle canvas */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100; /* above canvas (canvas z-index: -1) and header */
  background: #020617;
  border-top: 1px solid rgba(148,163,184,0.06);
  box-shadow: 0 -12px 30px rgba(2,6,23,0.6);
  min-height: 72px;
  display: flex;
  align-items: center;
  color: #e6eef8;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-footer.footer-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-footer .footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  /* Use a three-column grid so the social-center is perfectly centered
     and left/right sections stay at the edges */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 6vw;
  box-sizing: border-box;
}

.site-footer .footer-left,
.site-footer .footer-center,
.site-footer .footer-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* position helpers for the grid columns */
.site-footer .footer-left { justify-self: start; }
.site-footer .footer-center { justify-self: center; }
.site-footer .footer-right { justify-self: end; }

.site-footer p { margin: 0; color: rgba(238,241,246,0.9); font-size: 0.95rem; }

.site-footer a { color: rgba(188,197,208,0.9); text-decoration: none; }
.site-footer a:hover { color: #ffffff; }

/* Footer action links (Bewerbung, Impressum) */
.site-footer .footer-right a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.2);
  background: rgba(148,163,184,0.04);
  color: rgba(220,225,232,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.site-footer .footer-right a i {
  font-size: 0.78em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.site-footer .footer-right a:hover {
  background: rgba(148,163,184,0.12);
  border-color: rgba(148,163,184,0.45);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.site-footer .footer-right a:hover i {
  opacity: 1;
}

/* Social icons */
.site-footer .footer-center { gap: 0.45rem; }
.site-footer .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02); /* unified subtle box for all social buttons */
  color: #e6eef8;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  padding: 0.35rem; /* ensure tappable area */
  text-decoration: none; /* anchors behave like buttons */
}
.site-footer .social:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(2,6,23,0.5); }

/* Brand colors (reversible) */
.site-footer .social.discord { color: #7289da; border: 1px solid rgba(114,137,218,0.06); }
.site-footer .social.youtube { color: #ff0000; border: 1px solid rgba(255,0,0,0.06); }
.site-footer .social.tiktok { color: #00f2ea; border: 1px solid rgba(0,242,234,0.06); }

/* small-screen adjustments */
@media (max-width: 768px) {
  .site-footer { min-height: 44px; position: static; opacity: 1; transform: none; pointer-events: auto; }
  body { padding-bottom: 0 !important; }
  /* stack into a single column on small screens and center everything */
  .site-footer .footer-inner { display: grid; grid-template-columns: 1fr; gap: 0.25rem; padding: 0.35rem 4vw; text-align: center; }
  .site-footer .footer-left, .site-footer .footer-center, .site-footer .footer-right { justify-self: center; }
  .site-footer .social { width: 26px; height: 26px; border-radius: 6px; }
  .site-footer p { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .site-footer { min-height: 40px; }
  .site-footer .footer-inner { gap: 0.2rem; padding: 0.28rem 4vw; }
  .site-footer .footer-center { display: flex; gap: 0.3rem; }
  .site-footer .footer-right { display: flex; gap: 0.3rem; }
  /* Show only icons, hide text labels */
  .site-footer .footer-right a {
    padding: 0.3rem;
    font-size: 0;
    line-height: 0;
    border-radius: 8px;
    gap: 0;
    min-width: 30px;
    min-height: 30px;
    justify-content: center;
  }
  .site-footer .footer-right a i {
    font-size: 0.82rem;
    opacity: 1;
  }
  .site-footer .social { width: 24px; height: 24px; border-radius: 5px; }
  .site-footer p { font-size: 0.72rem; }
}

/* utility: visually hidden (used in markup) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

