/**
 * Footer Styles
 * 
 * @package DigiHub
 */

.site-footer {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-4xl);
}

[data-theme="dark"] .site-footer {
  background: var(--bg-darker);
}

.footer-main {
  padding-bottom: var(--space-3xl);
}

.footer-logo {
  margin-bottom: var(--space-xl);
}

.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text-primary);
  transition: all var(--dur-normal);
}

.footer-social__link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.footer-menu__title {
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-menu a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-menu a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--glass-border);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-xl);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-normal) var(--ease-smooth);
  z-index: var(--z-fixed);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: var(--z-fixed);
  transition: all var(--dur-normal) var(--ease-bounce);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Pulsating Effect */
.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: inherit;
  opacity: 0.4;
  z-index: -1;
  animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Mobile adjustments for floaters */
@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
  }
  
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }
}
