/* ============================================
   SPYDEY OFFICIAL — Footer
   footer.css | Site Footer
   ============================================ */

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  padding: 60px 0 32px;
}

/* Top border */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), var(--accent-red-subtle), var(--glass-border), transparent);
}

/* === FOOTER CONTENT === */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* === FOOTER LOGO === */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--text-primary);
}

.footer-logo-text span {
  color: var(--accent-red);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 1px;
}

/* === PLATFORM ICONS === */
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  border-radius: 50%;
  transition: all var(--transition-smooth);
  position: relative;
}

.footer-social-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
}

.footer-social-icon img,
.footer-social-icon svg {
  width: 22px;
  height: 22px;
  transition: all var(--transition-smooth);
}

.footer-social-icon:hover {
  color: var(--accent-red);
  transform: translateY(-4px) scale(1.15);
}

.footer-social-icon:hover::before {
  border-color: var(--accent-red-glow);
  box-shadow: 0 0 15px var(--accent-red-glow);
}

.footer-social-icon:hover img,
.footer-social-icon:hover svg {
  filter: drop-shadow(0 0 6px var(--accent-red-glow));
}

/* === FOOTER LINKS === */
.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-red);
  transition: width var(--transition-smooth);
}

.footer-link:hover {
  color: var(--accent-red);
}

.footer-link:hover::after {
  width: 100%;
}

/* === DIVIDER === */
.footer-divider {
  width: 100%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* === COPYRIGHT === */
.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.footer-copyright span {
  color: var(--accent-red);
}

/* === BOTTOM MARQUEE === */
.footer-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.footer-marquee-track {
  display: inline-flex;
  animation: footerMarquee 30s linear infinite;
  will-change: transform;
}

.footer-marquee-text {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.015;
  white-space: nowrap;
  padding-right: 80px;
  user-select: none;
  line-height: 1;
}

[data-theme='light'] .footer-marquee-text {
  opacity: 0.025;
}

@keyframes footerMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px var(--accent-red-glow);
  cursor: pointer;
}

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

.back-to-top:hover {
  background: var(--accent-red-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--accent-red-glow);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .footer {
    padding: 48px 0 24px;
  }

  .footer-content {
    gap: 24px;
  }

  .footer-socials {
    gap: 24px;
  }

  .footer-social-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .footer-link {
    font-size: 0.75rem;
  }

  .footer-logo-text {
    font-size: 1.3rem;
    letter-spacing: 4px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 0 20px;
  }

  .footer-socials {
    gap: 20px;
  }

  .footer-social-icon {
    width: 32px;
    height: 32px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-copyright {
    font-size: 0.75rem;
    padding: 0 16px;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}
