@import url(../global.css);

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Footer Moderno */
.footer-modern {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(17, 2, 5, 0.98) 0%,
    rgba(56, 12, 20, 0.95) 50%,
    rgba(17, 2, 5, 0.98) 100%
  );
  color: var(--branco);
  padding: 4rem 0 2rem 0;
  overflow: hidden;

  & .footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(188,20,35,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
  }

  & .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;

    & .footer-brand {
      text-align: left;

      & .footer-title {
        font-size: 2.3rem;
        font-weight: 700;
        color: var(--branco);
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.2rem;
        background: linear-gradient(
          45deg,
          var(--branco),
          var(--vermelho),
          var(--branco)
        );
        background-size: 200% 200%;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shimmer 3s ease-in-out infinite;
      }

      & .footer-subtitle {
        font-size: 1.92rem;
        color: var(--vermelho);
        font-weight: 600;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      & .footer-description {
        font-size: 1.6rem;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.6;
        margin: 0;
      }
    }

    & .footer-social {
      text-align: center;

      & .social-title {
        font-size: 1.92rem;
        font-weight: 700;
        color: var(--branco);
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      & .social-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        & .social-link {
          display: flex;
          align-items: center;
          gap: 0.75rem;
          padding: 0.8rem 1.2rem;
          background: linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.05)
          );
          backdrop-filter: blur(10px);
          border: 1px solid rgba(255, 255, 255, 0.2);
          border-radius: 12px;
          color: var(--branco);
          text-decoration: none;
          transition: all 0.3s ease;
          position: relative;
          overflow: hidden;

          &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradiente_vermelho);
          }

          &:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            color: var(--branco);
          }

          & i {
            font-size: 1.6rem;
            transition: all 0.3s ease;

            &:hover {
              transform: scale(1.1);
            }
          }

          & span {
            font-weight: 600;
            font-size: 1.33rem;
          }
        }
      }
    }

    & .footer-contact {
      text-align: right;

      & .contact-title {
        font-size: 1.92rem;
        font-weight: 700;
        color: var(--branco);
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      & .contact-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        & .contact-link {
          display: flex;
          align-items: center;
          gap: 0.75rem;
          padding: 0.8rem 1.2rem;
          background: linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.05)
          );
          backdrop-filter: blur(10px);
          border: 1px solid rgba(255, 255, 255, 0.2);
          border-radius: 12px;
          color: var(--branco);
          text-decoration: none;
          transition: all 0.3s ease;
          position: relative;
          overflow: hidden;
          justify-content: flex-end;

          &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradiente_vermelho);
          }

          &:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            color: var(--branco);
          }

          & i {
            font-size: 1.6rem;
            transition: all 0.3s ease;

            &:hover {
              transform: scale(1.1);
            }
          }

          & span {
            font-weight: 600;
            font-size: 1.33rem;
          }
        }
      }
    }
  }

  & .footer-divider {
    height: 2px;
    background: var(--gradiente_vermelho);
    margin: 2rem 0;
    position: relative;
    z-index: 2;
  }

  & .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;

    & .copyright {
      font-size: 1.33rem;
      color: rgba(255, 255, 255, 0.7);
    }

    & .developer {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.7);

      & span {
        font-size: 1.33rem;
      }

      & .dev-link {
        color: var(--vermelho);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;

        &:hover {
          color: var(--branco);
          text-shadow: 0 0 10px rgba(188, 20, 35, 0.8);
        }

        & i {
          color: var(--vermelho);
          margin: 0 0.25rem;
          animation: heartbeat 2s ease-in-out infinite;
        }
      }
    }
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .footer-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  .footer-modern {
    padding: 3rem 0 2rem 0;
    min-height: auto;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    align-items: center;
  }

  .footer-brand,
  .footer-social {
    text-align: center;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-contact {
    display: none;
  }

  .social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
  }

  .social-link {
    width: 200px;
    justify-content: center;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    text-align: center;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .contact-link {
    justify-content: center;
    padding: 1rem 1.5rem;
    width: 280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding-top: 1rem;
  }

  .footer-title {
    font-size: 1.8rem;
  }

  .social-title,
  .contact-title {
    font-size: 1.2rem;
  }

  .footer-subtitle {
    font-size: 1.4rem;
  }

  .footer-description {
    font-size: 1.3rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .footer-modern {
    padding: 2.5rem 0 2rem 0;
    min-height: auto;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
  }

  .footer-brand,
  .footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .footer-contact {
    display: none;
  }

  .social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    align-items: center;
  }

  .social-link {
    width: 180px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    align-items: center;

    & .contact-link {
      & span {
        text-align: center;
        width: 100%;
        display: block;
      }
    }
  }

  .contact-link {
    width: 250px;
    padding: 0.8rem 1.2rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
  }

  .footer-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .footer-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .footer-description {
    font-size: 1.1rem;
    padding: 0 0.5rem;
    line-height: 1.5;
    text-align: center;
  }

  .social-title,
  .contact-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .social-link span,
  .contact-link span {
    font-size: 1rem;
  }

  .footer-bottom {
    gap: 0.8rem;
    padding-top: 0.8rem;
  }

  .copyright {
    font-size: 1.1rem;
  }

  .developer span {
    font-size: 1.1rem;
  }
}
