/* ============================
   Footer
============================ */

footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  position: relative;

  background: color-mix(
    in srgb,
    var(--panel) 75%,
    transparent
  );

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-top: 1px solid var(--border-subtle);
  text-align: center;
  opacity: 0.9;
}

/* Decorative glow — theme aware */
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 0%,
      color-mix(in srgb, var(--text) 6%, transparent),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 100%,
      color-mix(in srgb, var(--text) 4%, transparent),
      transparent 45%
    );
  pointer-events: none;
  mix-blend-mode: overlay;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  grid-gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand svg {
  width: 40px;
  height: 40px;
  opacity: 0.85;
}

.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;

  text-align: center;
  opacity: 0.75;
}

.footer-center a {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  position: relative;
  color: inherit;
  text-decoration: none;

  transition: color var(--hover-duration) var(--hover-ease);
}

.footer-center a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.footer-center a:focus-visible {
  outline: none;
  color: var(--accent);
}

.footer-center a:hover {
  color: var(--accent);
}

.footer-center a:hover::after {
  width: 100%;
  left: 0;
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;

  color: var(--text);
  border: 2px solid var(--accent-border);

  background: linear-gradient(
    180deg,
    var(--accent-soft),
    var(--panel)
  );

  box-shadow: var(--shadow-sm);

  transition:
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease);
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px var(--accent-border),
    0 0 12px var(--accent-soft);
}

.footer-social-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-social-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

.socials a {
  margin: 0 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.social-circles {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    grid-gap: 1rem;
  }
  .footer-brand,
  .footer-socials {
    justify-content: center;
  }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  .footer-center a,
  .footer-center a::after {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .footer-socials a {
    transition:
      transform var(--hover-duration) var(--hover-ease),
      box-shadow var(--hover-duration) var(--hover-ease);
  }
}
