/* Footer styles for Space Phoenix portfolio */

.site-footer {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.35), rgba(5, 6, 10, 0.25));
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.site-footer .footer-inner {
  width: 100%;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.footer-brand {
  display: grid;
  gap: 0.8rem;
}

.footer-brand .footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.8rem 0;
}

.footer-links,
.footer-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-contact {
  display: grid;
  gap: 0.4rem;
}

.footer-contact a {
  color: var(--glow);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.95rem;
  transition: transform 160ms var(--ease-out-quick), background 160ms var(--ease-out-quick);
}

.footer-social i {
  font-size: 1rem;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  transform: translateY(-2px);
  background: rgba(123, 111, 255, 0.2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--glow);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 3, 9, 0.85);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 12px 24px rgba(10, 12, 20, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms var(--ease-out-quick), transform 200ms var(--ease-out-quick), background 200ms var(--ease-out-quick);
  z-index: 999;
  cursor: pointer;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(123, 111, 255, 0.28);
  color: var(--text);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top i {
  line-height: 1;
}

@media (max-width: 480px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 1440px) {
  .site-footer .footer-inner {
    max-width: calc(var(--container-max) + var(--gutter) * 2 + 120px);
    padding: 0 clamp(2.5rem, 4vw, 4rem);
  }

  .footer-grid {
    column-gap: clamp(2rem, 3vw, 3.5rem);
  }
}
