/* Uiverse Praashoo7 social grid — namespaced for portfolio (sl-expand-*) */

.sl-expand-root {
  position: relative;
  display: inline-block;
  margin-top: var(--space-md, 1rem);
  vertical-align: top;
}

.sl-expand-back {
  position: absolute;
  border-radius: 10px;
  transform: rotate(90deg);
  width: 11em;
  height: 11em;
  background: linear-gradient(270deg, #03a9f4, #cc39a4, #ffb5d2);
  z-index: 0;
  box-shadow: inset 0px 0px 180px 5px #ffffff;
  pointer-events: none;
  left: 50%;
  top: 50%;
  margin-left: -5.5em;
  margin-top: -5.5em;
  transition: opacity 0.4s ease-in-out;
}

.sl-expand {
  display: flex;
  flex-wrap: wrap;
  width: 14em;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.sl-expand .sl-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-top-left-radius: 10px;
  transition:
    0.4s ease-in-out,
    0.2s background-color ease-in-out,
    0.2s background-image ease-in-out;
  background: rgba(255, 255, 255, 0.596);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid transparent;
  box-sizing: border-box;
}

.sl-expand .sl-card svg {
  width: 28px;
  height: 28px;
  display: block;
}

.sl-expand .sl-card .instagram {
  opacity: 0;
  transition: 0.2s ease-in-out;
  fill: #cc39a4;
}

.sl-expand .sl-card:nth-child(2) {
  border-radius: 0px;
}

.sl-expand .sl-card:nth-child(2) .twitter {
  opacity: 0;
  transition: 0.2s ease-in-out;
  fill: #03a9f4;
}

.sl-expand .sl-card:nth-child(3) {
  border-top-right-radius: 10px;
  border-top-left-radius: 0px;
}

.sl-expand .sl-card:nth-child(3) .dribble {
  opacity: 0;
  transition: 0.2s ease-in-out;
  fill: #ffb5d2;
}

.sl-expand .sl-card:nth-child(4) {
  border-radius: 0px;
}

.sl-expand .sl-card:nth-child(4) .codepen {
  opacity: 0;
  transition: 0.2s ease-in-out;
  fill: black;
}

.sl-expand .sl-card:nth-child(5) {
  position: relative;
  border-radius: 0px;
}

.sl-expand .sl-card:nth-child(5) .uiverse {
  position: absolute;
  margin-left: 0.2em;
  margin-top: 0.2em;
  opacity: 0;
  transition: 0.2s ease-in-out;
}

.sl-expand .sl-card:nth-child(6) {
  border-radius: 0px;
}

.sl-expand .sl-card:nth-child(6) .discord {
  opacity: 0;
  transition: 0.2s ease-in-out;
  fill: #8c9eff;
}

.sl-expand .sl-card:nth-child(7) {
  border-bottom-left-radius: 10px;
  border-top-left-radius: 0px;
}

.sl-expand .sl-card:nth-child(7) .github {
  opacity: 0;
  transition: 0.2s ease-in-out;
  fill: black;
}

.sl-expand .sl-card:nth-child(8) {
  border-radius: 0px;
}

.sl-expand .sl-card:nth-child(8) .telegram {
  opacity: 0;
  transition: 0.2s ease-in-out;
  fill: #29b6f6;
}

.sl-expand .sl-card:nth-child(9) {
  border-bottom-right-radius: 10px;
  border-top-left-radius: 0px;
}

.sl-expand .sl-card:nth-child(9) .reddit {
  opacity: 0;
  transition: 0.2s ease-in-out;
}

.sl-expand-root:hover .sl-expand {
  width: 14em;
  cursor: pointer;
}

.sl-expand-root:hover .sl-expand-back {
  opacity: 0;
}

.sl-expand-root:hover .sl-card {
  margin: 0.2em;
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.sl-expand-root:hover .sl-card:nth-child(5) {
  border: transparent;
}

.sl-expand-root:hover .sl-label {
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.sl-expand-root:hover .instagram {
  opacity: 1;
}

.sl-expand-root:hover .twitter {
  opacity: 1;
}

.sl-expand-root:hover .dribble {
  opacity: 1;
}

.sl-expand-root:hover .codepen {
  opacity: 1;
}

.sl-expand-root:hover .uiverse {
  opacity: 1;
}

.sl-expand-root:hover .discord {
  opacity: 1;
}

.sl-expand-root:hover .github {
  opacity: 1;
}

.sl-expand-root:hover .telegram {
  opacity: 1;
}

.sl-expand-root:hover .reddit {
  opacity: 1;
}

.sl-expand .sl-card:nth-child(1):hover {
  background-color: #cc39a4;
}

.sl-expand .sl-card:nth-child(1):hover .instagram {
  fill: white;
}

.sl-expand .sl-card:nth-child(2):hover {
  background-color: #03a9f4;
}

.sl-expand .sl-card:nth-child(2):hover .twitter {
  fill: white;
}

.sl-expand .sl-card:nth-child(3):hover {
  background-color: #ffb5d2;
}

.sl-expand .sl-card:nth-child(3):hover .dribble {
  fill: white;
}

.sl-expand .sl-card:nth-child(4):hover {
  background-color: #1e1f26;
}

.sl-expand .sl-card:nth-child(4):hover .codepen {
  fill: white;
}

.sl-expand .sl-card:nth-child(5):hover {
  animation: sl-expand-bgimg 0.1s;
  animation-fill-mode: forwards;
}

.sl-expand .sl-card:nth-child(5):hover .uiverse #paint0_linear_501_142 stop {
  stop-color: white;
}

.sl-expand .sl-card:nth-child(5):hover .uiverse #paint1_linear_501_142 stop {
  stop-color: white;
}

.sl-expand .sl-card:nth-child(5):hover .uiverse #paint2_linear_501_142 stop {
  stop-color: white;
}

@keyframes sl-expand-bgimg {
  100% {
    background-image: linear-gradient(#bf66ff, #6248ff, #00ddeb);
  }
}

.sl-expand .sl-card:nth-child(6):hover {
  background-color: #8c9eff;
}

.sl-expand .sl-card:nth-child(6):hover .discord {
  fill: white;
}

.sl-expand .sl-card:nth-child(7):hover {
  background-color: black;
}

.sl-expand .sl-card:nth-child(7):hover .github {
  fill: white;
}

.sl-expand .sl-card:nth-child(8):hover {
  background-color: #29b6f6;
}

.sl-expand .sl-card:nth-child(8):hover .telegram > path:nth-of-type(1) {
  fill: white;
}

.sl-expand .sl-card:nth-child(8):hover .telegram > path:nth-of-type(2) {
  fill: #29b6f6;
}

.sl-expand .sl-card:nth-child(8):hover .telegram > path:nth-of-type(3) {
  fill: #29b6f6;
}

.sl-expand .sl-card:nth-child(9):hover {
  background-color: rgb(255, 69, 0);
}

.sl-expand .sl-card:nth-child(9) .reddit > g circle {
  fill: rgb(255, 69, 0);
}

.sl-expand .sl-card:nth-child(9) .reddit > g path {
  fill: white;
}

.sl-expand .sl-card:focus-visible {
  outline: 2px solid var(--accent, #4f8cff);
  outline-offset: 3px;
  z-index: 4;
}

.sl-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7em;
  transition: 0.4s ease-in-out;
  color: black;
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.33em;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .sl-expand .sl-card,
  .sl-expand .sl-label,
  .sl-expand-back {
    transition-duration: 0.01ms !important;
  }
}
