/* ============================================
   MODERN FOOTER DESIGN
   Glassmorphism with smooth interactions
   ============================================ */

.footer {
  position: fixed;
  bottom: -120px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  opacity: 0;
  transform: translateY(20px);
}

/* Transparent footer when at absolute bottom */
.footer.at-bottom {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

/* Show footer with animation */
.footer.show {
  bottom: 0;
  opacity: 1;
  transform: translateY(0);
}

/* Gradient accent line */
.footer::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    #D4AF37 0%,
    #f39c12 50%,
    #D4AF37 100%);
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: shimmer 3s ease-in-out infinite;
  border-radius: 2px 2px 0 0;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.footer.show::before {
  transform: scaleX(1);
}

/* Remove body padding */
body {
  padding-bottom: 0;
}

/* Footer Container */
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

/* Social Links - Enhanced */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #4a5568;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  border-radius: 14px;
  position: relative;
  overflow: visible;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Hover glow effect */
.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  border-radius: 14px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

.social-link:hover {
  color: #D4AF37;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(212, 175, 55, 0.2);
}

.social-link:hover::before {
  transform: translate(-50%, -50%) scale(2);
}

.social-link:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.3),
    0 8px 24px rgba(212, 175, 55, 0.2);
}

.social-link:active {
  transform: translateY(-2px) scale(0.98);
}

/* Social Icons */
.social-icon {
  width: 26px;
  height: 26px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.social-link:hover .social-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.social-link:active .social-icon {
  transform: scale(1.05);
}

/* Screen reader only text */
.social-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Language Switcher in Footer (Mobile) */
.footer .language-switcher {
  display: none;
}

@media (max-width: 768px) {
  .footer {
    bottom: -100px;
  }

  .footer-container {
    padding: 0 1.5rem;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  /* Show language switcher in footer on mobile */
  .footer .language-switcher {
    display: block;
  }
}

@media (max-width: 480px) {
  .footer {
    bottom: -90px;
  }

  .footer-container {
    padding: 0 1.25rem;
    gap: 1.5rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-icon {
    width: 22px;
    height: 22px;
  }
}

/* Performance optimization - Reduce blur on mobile */
@media (max-width: 768px) {
  .footer,
  .social-link {
    /* Reduce blur from 10px to 6px on mobile */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  /* Increase background opacity to compensate */
  .footer {
    background: rgba(255, 255, 255, 0.95);
  }

  .footer.at-bottom {
    background: rgba(255, 255, 255, 0.90);
  }
}

/* Disable blur on small screens with reduced motion for maximum performance */
@media (max-width: 480px) and (prefers-reduced-motion: reduce) {
  .footer,
  .social-link {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .footer {
    background: rgba(255, 255, 255, 0.98);
  }

  .footer.at-bottom {
    background: rgba(255, 255, 255, 0.95);
  }

  .social-link {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .footer,
  .social-link,
  .social-icon {
    transition: none;
    animation: none;
  }

  .footer::before {
    animation: none;
  }
}

/* ============================================
   FOOTER NAVIGATION
   ============================================ */

.footer-navigation {
  background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 0.3));
  padding: 2.5rem 0 2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-nav-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a202c;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #D4AF37;
  display: inline-block;
  width: fit-content;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list li a {
  color: #4a5568;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  position: relative;
  padding-left: 1rem;
}

.footer-nav-list li a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #D4AF37;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-nav-list li a:hover {
  color: #D4AF37;
  transform: translateX(4px);
}

.footer-nav-list li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-nav-list li a:focus {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .footer-navigation {
    padding: 2rem 0 1.5rem 0;
  }

  .footer-nav-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .footer-nav-column {
    gap: 0.75rem;
  }

  .footer-nav-title {
    font-size: 0.85rem;
  }

  .footer-nav-list {
    gap: 0.5rem;
  }

  .footer-nav-list li a {
    font-size: 0.9rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-nav-list li a,
  .footer-nav-list li a::before {
    transition: none !important;
  }

  .footer-nav-list li a:hover {
    transform: none !important;
  }

  .footer-nav-list li a:hover::before {
    transform: none !important;
  }
}
