/* Footer Principal */
#footer-main {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-title {
  position: relative;
  padding-bottom: 12px !important;
  margin-bottom: 1.5rem !important;
}

.footer-list {
  list-style: none;
}

.footer-item {
  transition: all 0.3s ease;
}

.footer-item a {
  transition: all 0.3s ease;
  position: relative;
}

.footer-item a:hover {
  padding-left: 8px !important;
}

.footer-item a:hover svg {
  transform: scale(1.15) !important;
}

/* Back to top button - novo estilo moderno */
#back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 50;
  display: none;
}

#back-to-top:active {
  transform: translateY(-2px);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  display: block;
}

#back-to-top svg {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

#back-to-top:hover svg {
  transform: translateY(-2px);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .footer-column {
    margin-bottom: 2rem;
    text-align: center;
  }

  .footer-column:last-child {
    margin-bottom: 0;
  }

  .footer-item {
    justify-content: center;
  }

  .footer-item a {
    justify-content: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #footer-main {
    padding: 40px 0 30px !important;
  }
}

@media (max-width: 576px) {
  .footer-title {
    font-size: 0.9rem !important;
  }

  .footer-item {
    font-size: 0.9rem;
  }

  .footer-item a {
    font-size: 0.85rem;
  }
}

/* Tema escuro suportado */
@media (prefers-color-scheme: dark) {
  #footer-main {
    background-color: #0a3142 !important;
  }
}

/* Transições SVG para ícones */
.footer-item svg {
  transition:
    transform 0.3s ease,
    fill 0.3s ease;
}

/* Links com destaque em hover */
.footer-item a:hover {
  color: #206282 !important;
}

/* Espaçamento vertical melhorado */
#footer-main hr {
  margin: 40px 0 !important;
}

/* Melhorias de acessibilidade */
.footer-item a:focus {
  outline: 2px solid #206282;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Animação do divisor */
#footer-main hr {
  animation: expandWidth 0.8s ease-out;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Suporte para reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-column,
  #footer-main hr,
  #back-to-top,
  .footer-item a,
  .footer-item svg {
    animation: none !important;
    transition: none !important;
  }
}
