/**
 * Footer CSS - Footer Styles
 * 
 * This file contains styles for:
 * - Footer layout
 * - Footer links
 * 
 * Extracted from index.php during section compartmentalization refactoring
 */

/* ============================================
   Footer
   ============================================ */
.kdao-footer {
  margin-top: clamp(60px, 8vw, 100px);
  max-width: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  color: #f5f8ff;
  position: relative;
  z-index: 10;
  background: rgba(27, 32, 39, 0.95);
  border-top: clamp(2px, 0.3vw, 3px) solid #43dfeb;
  box-shadow: 0 -20px 40px rgba(3, 5, 9, 0.65);
}

.kdao-footer a {
  color: #fdf4ff;
  transition: color 0.2s ease;
}

.kdao-footer a:hover {
  color: #06b6d4;
}

.footer-shell {
  width: 100%;
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 3vw, 28px) clamp(20px, 4vw, 40px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: clamp(20px, 5vw, 44px) clamp(16px, 4vw, 40px);
  border: clamp(2px, 0.3vw, 3px) solid rgba(67, 223, 235, 0.6);
  border-radius: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    180deg,
    rgba(63, 224, 249, 0.05) 0%,
    rgba(17, 17, 17, 0.5) 50%,
    rgba(63, 224, 249, 0.07) 100%
  );
  position: relative;
  box-shadow: 0 0 30px rgba(5, 11, 18, 0.6);
}

.footer-inner::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 0;
  border: 2px solid rgba(56, 219, 239, 0.9);
  filter: url(#turbulent-displace);
  opacity: 0.45;
  pointer-events: none;
}

.footer-inner > * {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 3vw, 30px);
  align-items: start;
}

.footer-column h4,
.footer-column h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  color: #ffffff;
}

.footer-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 6px;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.footer-column h3 {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #9cc6ff;
}

.tagline {
  margin: 12px 0 18px;
  font-size: 1rem;
  color: #d9e7ff;
}

.builder-credit {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 8px;
}

.cta-pack {
  margin-top: clamp(12px, 2vw, 18px);
}

/* Join Pack Wrapper - Logo NEXT TO button */
.join-pack-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.kdao-footer .join-pack-btn {
  display: inline-flex;
  align-items: center;
  padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 16px);
  background: linear-gradient(135deg, rgba(63, 224, 249, 0.9) 0%, rgba(67, 223, 235, 0.9) 100%);
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: clamp(10px, 1.5vw, 14px);
  font-size: clamp(0.7em, 1.4vw, 0.8em);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  min-height: 30px;
}

.kdao-footer .join-pack-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, rgba(63, 224, 249, 1) 0%, rgba(67, 223, 235, 1) 100%);
}

/* CTA logo - OUTSIDE the button, NEXT TO it */
.kdao-footer .cta-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.3) drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
  transition: all 0.3s ease;
}

.join-pack-wrapper:hover .cta-logo {
  filter: brightness(1.5) drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
  transform: scale(1.1);
}

.footer-divider {
  margin: clamp(18px, 3vw, 40px) 0 clamp(8px, 2vw, 16px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Social Icons */
.social-network {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
}

.social-circle li a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

/* X Button - X logo fills the button */
.social-circle li a.icoX {
  background: transparent;
  padding: 0;
  border: none;
}

.social-circle li a.icoX:hover {
  transform: translateY(-4px) rotate(3deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* X button image - fills the entire button */
.social-circle li a.icoX .social-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Discord Button - Discord logo fills the button */
.social-circle li a.icoDiscord {
  background: transparent;
  padding: 0;
  border: none;
}

.social-circle li a.icoDiscord:hover {
  transform: translateY(-4px) rotate(3deg);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.6);
}

/* Discord button image - fills the entire button */
.social-circle li a.icoDiscord .social-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

@media (max-width: 640px) {
  .footer-column,
  .footer-bottom {
    text-align: center;
  }

  .social-network {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@keyframes flash-glow-strong {
  0% {
    filter: brightness(1.1) drop-shadow(0 0 16px #ffe154) drop-shadow(0 0 8px #3fe0f9);
  }
  100% {
    filter: brightness(1.35) drop-shadow(0 0 32px #ffe154) drop-shadow(0 0 16px #3fe0f9);
  }
}

