/* Fixed right social sidebar — individual hover expand only */
.social-sidebar-right {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  box-shadow: -4px 0 24px rgba(15, 39, 64, 0.12);
  pointer-events: none;
}

.social-sidebar-right .ss-right {
  pointer-events: auto;
}

.ss-right {
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  width: 44px;
  height: 44px;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: width 0.3s ease, filter 0.25s ease, z-index 0s;
  flex-shrink: 0;
}

.ss-right:first-child {
  border-radius: 6px 0 0 0;
}

.ss-right:last-child {
  border-radius: 0 0 0 6px;
}

/* Collapsed: label hidden — no background bleed */
.ss-right-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 0;
  padding: 0;
  margin: 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: transparent !important;
  transition: max-width 0.3s ease, opacity 0.25s ease, padding 0.3s ease, visibility 0.25s;
}

.ss-right-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.15rem;
  transition: background 0.25s ease;
}

/* Only THIS item expands on hover (not siblings) */
.ss-right:hover,
.ss-right:focus-visible {
  width: 148px;
  z-index: 5;
  filter: brightness(1.06);
}

.ss-right:hover .ss-right-label,
.ss-right:focus-visible .ss-right-label {
  max-width: 110px;
  padding-left: 14px;
  opacity: 1;
  visibility: visible;
}

/* After click, mouse focus should not keep label open */
.ss-right:focus:not(:focus-visible) {
  width: 44px;
}

.ss-right:focus:not(:focus-visible) .ss-right-label {
  max-width: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
}

/* Brand colors — icon only when collapsed */
.ss-right.ss-fb .ss-right-icon { background: #3b5998; }
.ss-right.ss-ig .ss-right-icon { background: #C13584; }
.ss-right.ss-yt .ss-right-icon { background: #FF0000; }
.ss-right.ss-dl .ss-right-icon { background: #7A1F6A; }

/* Expanded: full bar one color */
.ss-right.ss-fb:hover,
.ss-right.ss-fb:focus-visible { background: #3b5998; }
.ss-right.ss-ig:hover,
.ss-right.ss-ig:focus-visible { background: #C13584; }
.ss-right.ss-yt:hover,
.ss-right.ss-yt:focus-visible { background: #FF0000; }
.ss-right.ss-dl:hover,
.ss-right.ss-dl:focus-visible { background: #7A1F6A; }

.ss-right:hover .ss-right-icon,
.ss-right:focus-visible .ss-right-icon {
  background: transparent !important;
}

.ss-right:hover .ss-right-label,
.ss-right:focus-visible .ss-right-label {
  background: transparent !important;
}

.social-sidebar-left {
  display: none !important;
}

@media (max-width: 991.98px) {
  .social-sidebar-right {
    display: none !important;
  }

  .ss-right {
    width: 40px;
    height: 40px;
  }

  .ss-right:hover,
  .ss-right:focus-visible {
    width: 40px;
  }

  .ss-right:first-child,
  .ss-right:last-child {
    border-radius: 0;
  }

  .ss-right-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .ss-right-label {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .ss-right,
  .ss-right-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}
