/* ============================================================
   V3.12 SAMURAI — NeoPlay Footer CSS
   Matches header design: yellow borders, platform accents, white fill hovers
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES (inherit from header)
   ============================================================ */
:root {
  --neo-yellow: #FCEE0A;
  --neo-red: #ff003c;
  --neo-cyan: #00f0ff;
  --neo-bg-dark: #0a0a0a;
  --neo-bg-surface: #141414;
  --neo-bg-elevated: #1a1a1a;
  --neo-border: #2a2a2a;
  --neo-text-primary: #ffffff;
  --neo-text-muted: #666666;
  --neo-font: 'Exo', sans-serif;
  --neo-ps-blue: #006FCD;
  --neo-xbox-green: #2DB82D;
}

/* ============================================================
   2. FOOTER CONTAINER
   ============================================================ */
.neo-footer {
  position: relative;
  background: var(--neo-bg-dark);
  color: var(--neo-text-primary);
  font-family: var(--neo-font);
  padding: 0;
  margin: 0;
  isolation: isolate;
  overflow: hidden;
}

/* Cyberpunk glitch background effect */
.neo-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 240, 255, 0.03) 2px,
      rgba(0, 240, 255, 0.03) 4px
    );
  animation: neoFooterScanlines 8s linear infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* Subtle digital noise overlay */
.neo-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(252, 238, 10, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 60, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(0, 240, 255, 0.04) 0%, transparent 50%);
  animation: neoFooterPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

/* Ensure content is above background effects */
.neo-footer > * {
  position: relative;
  z-index: 2;
}

/* Scanline animation */
@keyframes neoFooterScanlines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px);
  }
}

/* Subtle pulse animation for the glow spots */
@keyframes neoFooterPulse {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.6;
  }
}

/* Top border: Cyberpunk glowing color-changing (matches header) */
.neo-footer-border-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--neo-cyan);
  box-shadow:
    0 0 12px currentColor,
    0 0 25px currentColor,
    0 0 40px currentColor;
  z-index: 5;
  animation:
    neoBorderColorShift 8s linear infinite,
    neoBorderGlitch 12s steps(1) infinite;
}

/* Reuse header's color-shifting animation */
@keyframes neoBorderColorShift {
  0% {
    background: #00f3ff; /* Cyan */
    color: rgba(0, 243, 255, 0.8);
  }
  25% {
    background: #b829f5; /* Purple */
    color: rgba(184, 41, 245, 0.8);
  }
  50% {
    background: #ff006a; /* Hot pink */
    color: rgba(255, 0, 106, 0.8);
  }
  75% {
    background: #fcee0a; /* Yellow */
    color: rgba(252, 238, 10, 0.8);
  }
  100% {
    background: #00f3ff; /* Back to cyan */
    color: rgba(0, 243, 255, 0.8);
  }
}

/* Reuse header's glitch effect */
@keyframes neoBorderGlitch {
  0%, 19%, 21%, 39%, 41%, 79%, 81%, 100% {
    transform: translateX(0) scaleY(1);
    opacity: 1;
    filter: none;
  }
  20% {
    transform: translateX(-3px) scaleY(1.5);
    opacity: 0.8;
    filter: hue-rotate(90deg);
  }
  40% {
    transform: translateX(4px) scaleY(0.7);
    opacity: 0.9;
    filter: hue-rotate(-45deg);
  }
  80% {
    transform: translateX(-2px) scaleY(1.3);
    opacity: 0.85;
    filter: hue-rotate(180deg);
  }
}

/* Bottom border: Yellow tint */
.neo-footer-border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(252,238,10,0.15);
  z-index: 5;
}

/* ============================================================
   3. MAIN FOOTER CONTENT
   ============================================================ */
.neo-footer-main {
  padding: 60px 30px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Footer grid: 4 columns on desktop */
.neo-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

/* ============================================================
   4. FOOTER SECTIONS
   ============================================================ */
.neo-footer-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section labels: uppercase, yellow, letter-spacing */
.neo-footer-section-label {
  font-family: var(--neo-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--neo-yellow);
  margin: 0 0 4px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(252,238,10,0.15);
}

/* Navigation container */
.neo-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   5. PLATFORM ACCENT SECTIONS
   ============================================================ */
.neo-footer-section--pc {
  --accent: var(--neo-cyan);
  --accent-rgb: 0, 240, 255;
}

.neo-footer-section--ps {
  --accent: var(--neo-ps-blue);
  --accent-rgb: 0, 111, 205;
}

.neo-footer-section--xbox {
  --accent: var(--neo-xbox-green);
  --accent-rgb: 45, 184, 45;
}

.neo-footer-section--nintendo {
  --accent: var(--neo-red);
  --accent-rgb: 255, 0, 60;
}

/* Platform section labels get accent color underline */
.neo-footer-section--pc .neo-footer-section-label,
.neo-footer-section--ps .neo-footer-section-label,
.neo-footer-section--xbox .neo-footer-section-label,
.neo-footer-section--nintendo .neo-footer-section-label {
  color: var(--accent);
  border-bottom-color: rgba(var(--accent-rgb), 0.25);
}

/* ============================================================
   6. FOOTER LINKS (with white fill sweep + glitch)
   ============================================================ */
.neo-footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--neo-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--neo-text-primary);
  text-decoration: none;
  padding: 8px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  white-space: nowrap;
  width: fit-content;
}

/* Icons inside footer links */
.neo-footer-link i {
  font-size: 13px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.neo-footer-link:hover i {
  opacity: 1;
}

/* White fill sweep on hover */
.neo-footer-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.neo-footer-link:hover {
  color: var(--neo-bg-dark);
  border-color: #ffffff;
  background: transparent;
  text-shadow: none;
  animation: neoFooterGlitch 0.25s linear;
}

.neo-footer-link:hover::before {
  width: 100%;
}

/* Platform section links get accent color on hover (before white fill) */
.neo-footer-section--pc .neo-footer-link:hover,
.neo-footer-section--ps .neo-footer-link:hover,
.neo-footer-section--xbox .neo-footer-link:hover,
.neo-footer-section--nintendo .neo-footer-link:hover {
  border-color: var(--accent);
}

/* Glitch animation (same as header) */
@keyframes neoFooterGlitch {
  0%, 33.9% {
    text-shadow: 3px 0 0 var(--neo-yellow), -3px 0 0 var(--neo-red);
    transform: translateX(4px) skewX(-2deg);
  }
  34%, 66.9% {
    text-shadow: -3px 0 0 var(--neo-red), 2px 0 0 var(--neo-yellow);
    transform: translateX(-4px) skewX(2deg);
  }
  67%, 99.9% {
    text-shadow: 2px 0 0 var(--neo-yellow), -2px 0 0 var(--neo-red);
    transform: translateX(3px) skewX(-1deg);
  }
  100% {
    text-shadow: none;
    transform: translate(0,0) skewX(0deg);
  }
}

/* ============================================================
   7. SOCIAL ICONS & LANGUAGE/CURRENCY
   ============================================================ */
.neo-footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.neo-social-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 18px;
  color: var(--neo-text-primary);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--neo-border);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  overflow: hidden;
}

/* White fill sweep on hover (same as footer links) */
.neo-social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.neo-social-icon:hover {
  color: var(--neo-bg-dark);
  border-color: #ffffff;
  background: transparent;
  text-shadow: none;
  animation: neoFooterGlitch 0.25s linear;
}

.neo-social-icon:hover::before {
  width: 100%;
}

.neo-footer-language {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.neo-footer-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neo-text-muted);
}

.neo-footer-meta-item i {
  color: var(--neo-yellow);
  font-size: 14px;
}

/* ============================================================
   8. PAYMENT METHODS
   ============================================================ */
.neo-footer-payments {
  padding: 30px;
  margin: 0 30px;
  border-top: 1px solid rgba(252,238,10,0.15);
  border-bottom: 1px solid rgba(252,238,10,0.15);
  text-align: center;
}

.neo-footer-payments .neo-footer-section-label {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.neo-payment-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.neo-payment-icons img {
  height: 64px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  opacity: 0.9;
}

.neo-payment-icons img:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(252,238,10,0.3);
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(252,238,10,0.15);
}

/* ============================================================
   9. FOOTER BOTTOM (Copyright + Trust Badges)
   ============================================================ */
.neo-footer-bottom {
  padding: 24px 30px;
  background: rgba(0,0,0,0.3);
}

.neo-footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.neo-footer-copyright {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--neo-text-muted);
}

.neo-footer-copyright p {
  margin: 0;
}

.neo-footer-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.neo-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: #ffffff;
  color: #000000;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.neo-trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.neo-trust-badge i {
  font-size: 14px;
  color: #000000;
}

/* ============================================================
   10. RESPONSIVE (Tablet + Mobile)
   ============================================================ */

/* Tablet: 2-column grid */
@media (max-width: 1024px) {
  .neo-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .neo-footer-main {
    padding: 50px 24px 32px;
  }

  .neo-footer-payments {
    padding: 24px;
    margin: 0 24px;
  }

  .neo-footer-bottom {
    padding: 20px 24px;
  }

  .neo-footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .neo-footer-trust {
    justify-content: center;
  }
}

/* Mobile: single column, stacked (NO accordion, just stack) */
@media (max-width: 768px) {
  .neo-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .neo-footer-main {
    padding: 40px 16px 24px;
  }

  .neo-footer-section {
    gap: 12px;
  }

  .neo-footer-link {
    font-size: 10px;
    padding: 7px 12px;
  }

  .neo-footer-social {
    justify-content: flex-start;
  }

  .neo-payment-icons {
    gap: 12px;
  }

  .neo-payment-icons img {
    height: 56px;
    width: auto;
    max-width: 85px;
  }

  .neo-footer-payments {
    padding: 20px 16px;
    margin: 0 16px;
  }

  .neo-footer-bottom {
    padding: 16px;
  }

  .neo-footer-trust {
    flex-direction: column;
    gap: 12px;
  }
}

/* Very small mobile */
@media (max-width: 480px) {
  .neo-footer-main {
    padding: 32px 12px 20px;
  }

  .neo-footer-section-label {
    font-size: 9px;
  }

  .neo-footer-link {
    font-size: 9px;
    padding: 6px 10px;
  }

  .neo-social-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .neo-footer-payments {
    padding: 16px 12px;
    margin: 0 12px;
  }

  .neo-payment-icons img {
    height: 48px;
    width: auto;
    padding: 10px 12px;
    max-width: 70px;
  }
}
