/* Card Container */
.si-card {
  max-width: fit-content;
  border: 1px solid var(--atf-border);
  background-color: var(--atf-dark-trans-v1);
  border-radius: 2rem;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  backdrop-filter: blur(15px);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  opacity: 0;
  transform: translateX(120%);
}

.si-card.active-slide {
  display: flex;
  animation:
    slideFromRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards,
    msgNotificationShake 10s infinite ease-in-out 0.8s;
}

/* ANIMATION 1: Slide In From Right (4s Delay) */
@keyframes slideFromRight {
  0% {
    opacity: 0;
    transform: translateX(120%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ANIMATION 2: Continuous Notification Shake */
@keyframes msgNotificationShake {
  0%,
  92%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  93% {
    transform: translate(-3px, -2px) scale(1.03) rotate(-3deg); /* Initial notification pop */
  }
  94.5% {
    transform: translate(3px, 1px) scale(1.03) rotate(3deg); /* Quick vibration right */
  }
  96% {
    transform: translate(-2px, -1px) scale(1.02) rotate(-2deg); /* Quick vibration left */
  }
  97.5% {
    transform: translate(1px, 1px) scale(1.01) rotate(1deg); /* Settling down */
  }
}

/* NOTIFICATION BUBBLE BADGE STYLING */
.si-card .card-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 30px;
  height: 30px;
  padding: 2px;
  background: var(--atf-accent);
  color: var(--atf-OffWhite);
  font-size: 0.8rem;
  font-weight: 400;
  border-radius: 100rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.si-card.active-slide .card-badge {
  animation: badgeAppearOnce 11s forwards;
}

@keyframes badgeAppearOnce {
  0%,
  92% {
    opacity: 0;
    transform: scale(0);
  }
  /* Pehle jhatke par pop-in hoga */
  93% {
    opacity: 1;
    transform: scale(1.3);
  }
  /* Wapas normal size aakar PERMANENTLY VISIBLE ho jaega */
  95%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Social Icon List */
.si-card ul {
  padding: 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.si-card ul li {
  cursor: pointer;
  position: relative; /* Badge isi ke hisab se position hoga */
  display: inline-block;
  width: 60px;
  height: 60px;
}

/* SVG Styling */
.si-card .svg {
  width: 60px;
  height: 60px;
  padding: 1rem;
  border-radius: 50%;
  color: var(--atf-accent);
  fill: currentColor;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset -2px 0px 5px rgba(255, 255, 255, 0.5);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Tooltip Text Styling */
.si-card .text {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  right: 100%;
  transform: translateY(0%);
  z-index: 9999;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

/* Isometric Layer Effects (Spans) */
.si-card .iso-pro {
  transition: transform 0.5s ease;
}

.si-card .iso-pro span {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5),
    0 5px 5px rgba(0, 0, 0, 0.164);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* ----------------------------------------------------
   HOVER STATES (Movement directed to the LEFT side)
---------------------------------------------------- */

/* Icon shift to top-left */
.si-card .iso-pro:hover a > .svg {
  transform: translate(-15px, -15px);
  border-radius: 50%;
}

/* Tooltip adjustment on hover */
.si-card .iso-pro:hover .text {
  opacity: 1;
  visibility: visible;
  transform: translate(15px, -50%) skew(-5deg);
}

/* Layered spans spreading towards top-left */
.si-card .iso-pro:hover span {
  opacity: 1;
}

.si-card .iso-pro:hover span:nth-child(1) {
  opacity: 0.2;
}

.si-card .iso-pro:hover span:nth-child(2) {
  opacity: 0.4;
  transform: translate(-5px, -5px);
}

.si-card .iso-pro:hover span:nth-child(3) {
  opacity: 0.6;
  transform: translate(-10px, -10px);
}
