/**
 * ============================================
 * FLOATING SOCIAL SHARE - RSI Wonosobo
 * Fixed Position - Right Side - Desktop Only (>= 992px)
 * ============================================
 */

/* ============================================
   CONTAINER - Fixed Right Side
   ============================================ */
.social-share-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hide on scroll down (desktop) */
.social-share-float.scroll-hide {
  transform: translateY(-50%) translateX(100%);
}

/* Header Label */
.share-header {
  background: var(--rsi-forest-primary, #174C3C);
  color: #FFFFFF;
  padding: 10px 8px;
  border-radius: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  writing-mode: horizontal-tb;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.share-header i {
  font-size: 16px;
  color: var(--rsi-gold-champagne, #D4AF37);
}

/* ============================================
   SHARE BUTTONS CONTAINER
   ============================================ */
.share-buttons {
  background: #FFFFFF;
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 0 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-right: none;
}

/* Individual Share Button */
.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: visible;
}

.share-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  color: #FFFFFF;
}

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

/* Platform Colors */
.share-facebook {
  background: linear-gradient(135deg, #1877F2, #0F66D1);
}

.share-twitter {
  background: linear-gradient(135deg, #14171A, #000000);
}

.share-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.share-telegram {
  background: linear-gradient(135deg, #0088CC, #229ED9);
}

.share-linkedin {
  background: linear-gradient(135deg, #0077B5, #005582);
}

.share-copy {
  background: linear-gradient(135deg, #64748B, #475569);
  position: relative;
}

/* Copy Feedback Message */
.copy-feedback {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--rsi-forest-primary, #174C3C);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: fadeInRight 0.25s ease;
  z-index: 1000;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(6px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* ============================================
   TOOLTIP ON HOVER (DESKTOP)
   ============================================ */
.share-btn[data-tooltip] {
  position: relative;
}

.share-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--rsi-forest-primary, #174C3C);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.share-btn[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Tooltip Arrow */
.share-btn[data-tooltip]::before {
  content: '';
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--rsi-forest-primary, #174C3C);
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
  z-index: 1000;
}

.share-btn[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   MOBILE RESPONSIVE (< 992px)
   Hidden on mobile devices to prevent content overlap and floating clutter
   ============================================ */
@media (max-width: 991.98px) {
  .social-share-float {
    display: none !important;
  }
}

/* ============================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================ */
.share-btn:focus-visible {
  outline: 2px solid var(--rsi-gold-champagne, #D4AF37);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .social-share-float,
  .share-btn,
  .share-btn[data-tooltip]::after,
  .share-btn[data-tooltip]::before,
  .copy-feedback {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
