/* Social Bar Animated - embeddable + shortcode friendly */

.sba-wrap{
  --sba-size: 50px;
  --sba-icon-size: 22px;
  --sba-gap: 15px;
  --sba-wrap-max: 980px;
}

.sba-wrap .sba-social-bar{
  display:flex;
  border-radius: 10px;
  background: transparent;
  max-width: var(--sba-wrap-max);
  margin: 0 auto;
  padding: 12px 10px;
  justify-content:center;
}

.sba-wrap .sba-social-icons{
  width: 100%;
  text-align: center;
}

.sba-wrap .sba-item{
  position: relative;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  height: var(--sba-size);
  width: var(--sba-size);
  border-radius: 50%;
  background: #fff;
  cursor:pointer;
  transition: all .4s ease;
  text-decoration: none;
  color: #3f345f;
  box-shadow: 0 5px 25px rgba(93, 70, 232, 0.15);
  margin: var(--sba-gap);
  font-size: var(--sba-icon-size);
  line-height: 1;
  overflow: visible;
}

.sba-wrap .sba-item i{
  position: relative;
  top: 1px;
}

/* pulsing ring */
.sba-wrap .sba-item .sba-ring{
  position:absolute;
  content:"";
  height: calc(100% + 16px);
  width: calc(100% + 16px);
  top: -8px;
  left: -8px;
  border-radius: 50%;
  border: 1px solid rgba(132, 132, 164, 0.35);
  animation: sba-focuse 1.5s linear infinite;
  pointer-events:none;
}

/* dotted moving line between items */
.sba-wrap .sba-item:after{
  position: absolute;
  top: 50%;
  right: 100%;
  height: 2px;
  content: '';
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(93,70,232,0.25) 0,
    rgba(93,70,232,0.25) 12px,
    transparent 12px,
    transparent 24px
  );
  z-index: 0;
  animation: sba-slide 1s linear infinite;
  transform: translateY(-50%);
  pointer-events:none;
}
.sba-wrap .sba-item:last-child:after{ display:none; }

/* hover bounce */
@-webkit-keyframes sba-jello-horizontal {
  0% { -webkit-transform: scale3d(1,1,1); transform: scale3d(1,1,1); }
  30% { -webkit-transform: scale3d(1.25,0.75,1); transform: scale3d(1.25,0.75,1); }
  40% { -webkit-transform: scale3d(0.75,1.25,1); transform: scale3d(0.75,1.25,1); }
  50% { -webkit-transform: scale3d(1.15,0.85,1); transform: scale3d(1.15,0.85,1); }
  65% { -webkit-transform: scale3d(0.95,1.05,1); transform: scale3d(0.95,1.05,1); }
  75% { -webkit-transform: scale3d(1.05,0.95,1); transform: scale3d(1.05,0.95,1); }
  100% { -webkit-transform: scale3d(1,1,1); transform: scale3d(1,1,1); }
}
@keyframes sba-jello-horizontal {
  0% { transform: scale3d(1,1,1); }
  30% { transform: scale3d(1.25,0.75,1); }
  40% { transform: scale3d(0.75,1.25,1); }
  50% { transform: scale3d(1.15,0.85,1); }
  65% { transform: scale3d(0.95,1.05,1); }
  75% { transform: scale3d(1.05,0.95,1); }
  100% { transform: scale3d(1,1,1); }
}

.sba-wrap .sba-item:hover i{
  -webkit-animation: sba-jello-horizontal 0.9s both;
  animation: sba-jello-horizontal 0.9s both;
}

/* keyframes */
@keyframes sba-focuse{
  0% { transform: scale(0.8); opacity: 1; }
  75% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}
@keyframes sba-slide{
  from { background-position: 0 0; }
  to { background-position: 40px 0; }
}

/* small screens */
@media (max-width: 480px){
  .sba-wrap .sba-item{
    height: 36px;
    width: 36px;
    margin: 10px 8px;
    font-size: 18px;
  }
  .sba-wrap{ --sba-gap: 10px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .sba-wrap .sba-item .sba-ring,
  .sba-wrap .sba-item:after{
    animation: none !important;
  }
  .sba-wrap .sba-item:hover i{
    animation: none !important;
  }
}
