/* Footer Styles */
.site-footer {
  background: linear-gradient(
    180deg,
    var(--secondary-bg) 0%,
    var(--primary-bg) 100%
  );
  border-top: 2px solid var(--accent-blue);
  padding: 60px 0 20px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10;
  clear: both;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  opacity: 0.5;
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

/* Footer Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
  transition: filter 0.3s ease;
}

.footer-logo:hover {
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-tagline {
  color: var(--accent-blue);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* Footer Links Section */
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-section h3 {
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-blue),
    transparent
  );
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  display: flex;
  align-items: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 0;
}

.footer-links a i {
  font-size: 12px;
  color: var(--accent-blue);
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-blue);
  padding-left: 8px;
}

.footer-links a:hover i {
  transform: translateX(3px);
}

/* Social Media Section */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--accent-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  font-size: 20px;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.social-icon:hover::before {
  width: 100px;
  height: 100px;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.social-icon.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(10, 102, 194, 0.4);
}

.social-icon.tiktok:hover {
  background: #000000;
  border-color: #00f2ea;
  box-shadow: 0 10px 25px rgba(0, 242, 234, 0.4);
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
  box-shadow: 0 10px 25px rgba(220, 39, 67, 0.4);
}

.social-icon.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  box-shadow: 0 10px 25px rgba(29, 161, 242, 0.4);
}

.social-icon.discord:hover {
  background: #5865f2;
  border-color: #5865f2;
  box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

.social-icon.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

.social-icon.reddit:hover {
  background: #ff4500;
  border-color: #ff4500;
  box-shadow: 0 10px 25px rgba(255, 69, 0, 0.4);
}

.social-icon i {
  position: relative;
  z-index: 1;
}

/* Newsletter Section */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--accent-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-btn {
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    #e94560 0%,
    #9b59b6 100%
  );
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

.newsletter-btn i {
  margin-left: 5px;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 30px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copyright i {
  color: var(--primary-red);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

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

.footer-legal a::before {
  content: '•';
  margin-right: 8px;
  color: var(--accent-blue);
}

.footer-legal a:first-child::before {
  display: none;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    #e94560 0%,
    #9b59b6 100%
  );
  border: 2px solid #e94560;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(233, 69, 96, 0.3);
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.5);
  background: linear-gradient(135deg, #9b59b6 0%, #e94560 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
  }

  .social-icons {
    justify-content: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 40px 0 15px;
    margin-top: 50px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-logo {
    width: 150px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

