/* Isometric social icons — scoped to footer only (do not reset global body) */

.footer-isometric-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  /* Allow skewed pseudo-elements to paint without clipping */
  overflow-x: visible;
}

.footer-isometric-icons {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  transform-style: preserve-3d;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-isometric-icons li {
  position: relative;
  list-style: none;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  margin: 0 28px;
  /* Space for left face + floor skew */
  padding-bottom: 14px;
  padding-left: 6px;
}

.footer-isometric-icons li a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.footer-isometric-icons li::before {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 10px;
  background: #1a1a1a;
  transform-origin: top;
  transform: skewX(-41deg);
}

.footer-isometric-icons li::after {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 100%;
  background: #1a1a1a;
  transform-origin: right;
  transform: skewY(-49deg);
}

.footer-isometric-icons li span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #262626;
  color: rgba(255, 255, 255, 0.2);
  font-size: 25px;
}

.footer-isometric-icons li span:last-child {
  z-index: 1000;
  color: #fff;
}

/* Desktop / trackpad: full isometric stack on hover */
@media (hover: hover) and (pointer: fine) {
  .footer-isometric-icons li:hover span {
    transition: 0.5s;
  }

  .footer-isometric-icons li:hover span:nth-child(5) {
    transform: translate(40px, -40px);
    opacity: 1;
  }

  .footer-isometric-icons li:hover span:nth-child(4) {
    transform: translate(30px, -30px);
    opacity: 0.8;
  }

  .footer-isometric-icons li:hover span:nth-child(3) {
    transform: translate(20px, -20px);
    opacity: 0.6;
  }

  .footer-isometric-icons li:hover span:nth-child(2) {
    transform: translate(10px, -10px);
    opacity: 0.4;
  }

  .footer-isometric-icons li:hover span:nth-child(1) {
    transform: translate(0px, 0px);
    opacity: 0.2;
  }

  .footer-isometric-icons li:nth-child(1):hover span {
    background: #0077b5;
  }

  .footer-isometric-icons li:nth-child(2):hover span {
    background: #ff0000;
  }

  .footer-isometric-icons li:nth-child(3):hover span {
    background: #ffde21;
  }
}

/* Sem hover real (telas touch): face colorida + feedback ao toque */
@media (hover: none) {
  .footer-isometric-icons li:nth-child(1) span:last-child {
    background: #0077b5;
    color: #fff;
  }

  .footer-isometric-icons li:nth-child(2) span:last-child {
    background: #ff0000;
    color: #fff;
  }

  .footer-isometric-icons li:nth-child(3) span:last-child {
    background: #ffde21;
    color: #1a1a1a;
  }

  .footer-isometric-icons li:active span:last-child {
    transform: scale(0.92);
    transition: transform 0.12s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-isometric-icons li span,
  .footer-isometric-icons li:active span:last-child {
    transition: none !important;
  }

  @media (hover: hover) and (pointer: fine) {
    .footer-isometric-icons li:hover span {
      transform: none !important;
      opacity: 1 !important;
    }
  }
}

/* Tablet: tighter gaps */
@media (max-width: 768px) {
  .footer-isometric-wrap {
    padding: 1.5rem 1rem 1rem;
  }

  .footer-isometric-icons li {
    margin: 0 16px;
  }
}

/* Phone: must fit 3 cubes in ~320–390px */
@media (max-width: 480px) {
  .footer-isometric-wrap {
    padding-inline: 0.75rem;
  }

  .footer-isometric-icons li {
    width: 52px;
    height: 52px;
    margin: 0 8px;
    padding-left: 4px;
    padding-bottom: 12px;
  }

  .footer-isometric-icons li span {
    font-size: 21px;
  }

  .footer-isometric-icons li::before {
    height: 8px;
    bottom: 6px;
  }

  .footer-isometric-icons li::after {
    width: 8px;
    left: -2px;
  }
}

@media (max-width: 360px) {
  .footer-isometric-icons li {
    width: 48px;
    height: 48px;
    margin: 0 5px;
  }

  .footer-isometric-icons li span {
    font-size: 19px;
  }
}
