/**
 * ==================================================
 * Footer Styles
 * With Typewriter Effect
 * ==================================================
 */

.site-footer {
  position: relative;
  padding: var(--space-16) 0 var(--space-8);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Footer Top */
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-12);
}

.footer-brand {
  text-align: right;
}

.footer-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  background: var(--gradient-neon);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Footer Contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.footer-contact-item a {
  color: inherit;
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--color-primary);
}

.footer-icon {
  font-size: 1.2em;
}

/* Footer Social */
.footer-social {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-start;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  transition: all var(--transition-normal);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-social-link.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.footer-social-link.telegram:hover {
  background: #0088cc;
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.footer-social-link.whatsapp:hover {
  background: #25d366;
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

/* Footer Stats */
.footer-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Typewriter Section */
.footer-typewriter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  min-height: 2em;
}

.typewriter-prefix {
  color: var(--color-gold);
}

.typewriter-text {
  color: var(--color-text);
}

.typewriter-cursor {
  animation: blink 1s step-end infinite;
  color: var(--color-primary);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-bottom: var(--space-6);
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.footer-powered {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.footer-powered .heart {
  color: var(--color-fire-red);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Team Master Logo */
.footer-tm-logo {
  display: flex;
  justify-content: center;
}

.tm-logo-link {
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.tm-logo-link:hover {
  opacity: 1;
}

.tm-logo {
  height: 30px;
  width: auto;
}

/* Footer Decoration */
.footer-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
}

.decoration-line {
  position: absolute;
  inset: 0;
  background: var(--gradient-neon);
  animation: line-slide 3s linear infinite;
}

@keyframes line-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.decoration-glow {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 200px;
  height: 40px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--color-primary-rgb), 0.3) 0%,
    transparent 70%
  );
  filter: blur(10px);
  animation: glow-move 5s ease-in-out infinite;
}

@keyframes glow-move {
  0%,
  100% {
    left: 20%;
  }
  50% {
    left: 80%;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-glow-primary);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-light);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-6);
  }

  .footer-brand {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-stats {
    flex-direction: column;
    gap: var(--space-6);
  }
}
