/**
 * Compact floating share bar — desktop left rail + mobile bottom icons.
 */

.floating-share-desktop {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
}

.floating-share-desktop .floating-share-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
  border-left: 0;
}

.floating-share-desktop .floating-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.floating-share-desktop .floating-share-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.06);
}

.floating-share-desktop .floating-share-btn svg {
  width: 16px;
  height: 16px;
}

.floating-share-desktop .floating-share-btn-fb { background: linear-gradient(145deg, #1877f2, #0d65d9); }
.floating-share-desktop .floating-share-btn-wa { background: linear-gradient(145deg, #25d366, #128c7e); }
.floating-share-desktop .floating-share-btn-x { background: linear-gradient(145deg, #0f172a, #334155); }
.floating-share-desktop .floating-share-btn-in { background: linear-gradient(145deg, #0a66c2, #004182); }
.floating-share-desktop .floating-share-copy {
  background: linear-gradient(145deg, #64748b, #475569);
  color: #fff;
}

@media (max-width: 768px) {
  .floating-share-desktop {
    display: none !important;
  }
}

.floating-share-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0.45rem 0.65rem;
  padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -2px 16px rgba(15, 23, 42, 0.1);
  border-top: 1px solid #e2e8f0;
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.floating-share-mobile.hidden {
  transform: translateY(100%);
}

.floating-share-mobile .share-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 320px;
  margin: 0 auto;
}

.floating-share-mobile .share-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.14);
}

.floating-share-mobile .share-btn:active {
  transform: scale(0.95);
}

.floating-share-mobile .share-btn svg {
  width: 18px;
  height: 18px;
}

.floating-share-mobile .share-btn .share-btn-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-share-mobile .share-btn-facebook { background: #1877f2; }
.floating-share-mobile .share-btn-whatsapp { background: #25d366; }
.floating-share-mobile .share-btn-telegram { background: #0088cc; }
.floating-share-mobile .share-btn-copy { background: #64748b; }
.floating-share-mobile .share-btn-copy.copied { background: #16a34a; }
.floating-share-mobile .share-btn-native { background: #334155; }

.floating-share-mobile .share-btn-copy .copy-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.55rem;
  background: #1e293b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.floating-share-mobile .share-btn-copy.show-tooltip .copy-tooltip {
  opacity: 1;
}

@media (min-width: 769px) {
  .floating-share-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .floating-share-mobile {
    display: block;
  }

  body.nc-has-mobile-share {
    padding-bottom: 58px;
  }
}
