.profile-card {
  border-radius: 16px;
  padding: 8px 8px 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  --mouse-x: 0px;
  --mouse-y: 0px;
  background: rgba(0, 0, 0, 0.4);
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 5px 24px rgba(37, 37, 37, 0.1);

  /* profile image */
  .avatar {
    display: block;
    width: 100%;
    height: 284px;
    min-height: 320px;
    object-fit: cover;
    border-radius: inherit;
    filter: grayscale(1);
    transition: filter 0.4s;
  }

  &:hover .avatar {
    filter: grayscale(0);
  }

  .avatar-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 284px;
    min-height: 320px;
    transform: scale(1.1);
    z-index: -1;
    filter: blur(32px) grayscale(1) saturate(200%);
    transition: filter 0.6s;
  }

  &:hover .avatar-blur {
    filter: blur(32px) grayscale(0) saturate(200%);
    transition: filter 0.4s;
  }

  &::before,
  &::after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
      800px circle at calc(var(--mouse-x) * 1) calc(var(--mouse-y) * 1),
      rgba(226, 226, 226, 0.2),
      transparent 40%
    );
    z-index: 1;
  }

  &::after {
    opacity: 0.2;
  }

  &:hover :after {
    opacity: 1;
    z-index: 2;
    transition: opacity 0.4s ease;
  }

  .card-content {
    padding: 10px 10px 5px 10px;
    margin-top: 10px;
  }

  .user-details,
  .user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
  }

  .user-details {
    color: var(--heading-text-color);
    font-size: 1.3;
    line-height: 1.8rem;
    font-weight: 500;

    .x-handle {
      font-size: 12px;
      color: #939393;
    }
  }

  .user-info {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgb(184, 184, 184);
    line-height: 1.6rem;
  }
}
