/* ============================================
   SOCIAL SHARE SIDEBAR
   ============================================
   
   Floating social share buttons on desktop
   ============================================ */

.social-share-sidebar {
  position: fixed;
  left: max(20px, calc((100vw - 1200px) / 2 - 80px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.social-share-sidebar--visible {
  opacity: 1;
  pointer-events: auto;
}

.social-share-sidebar__container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Label */
.social-share-sidebar__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.social-share-sidebar__label svg {
  width: 16px;
  height: 16px;
  stroke: #666666;
}

/* Buttons */
.social-share-sidebar__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.social-share-sidebar__button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

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

.social-share-sidebar__button svg {
  width: 24px;
  height: 24px;
}

/* Network Colors */
.social-share-sidebar__button--twitter {
  color: #1DA1F2;
}

.social-share-sidebar__button--twitter:hover {
  background: #1DA1F2;
  color: #ffffff;
}

.social-share-sidebar__button--twitter:hover svg {
  fill: #ffffff;
}

.social-share-sidebar__button--linkedin {
  color: #0A66C2;
}

.social-share-sidebar__button--linkedin:hover {
  background: #0A66C2;
  color: #ffffff;
}

.social-share-sidebar__button--linkedin:hover svg {
  fill: #ffffff;
}

.social-share-sidebar__button--facebook {
  color: #1877F2;
}

.social-share-sidebar__button--facebook:hover {
  background: #1877F2;
  color: #ffffff;
}

.social-share-sidebar__button--facebook:hover svg {
  fill: #ffffff;
}

.social-share-sidebar__button--email {
  color: #666666;
}

.social-share-sidebar__button--email:hover {
  background: #666666;
  color: #ffffff;
}

.social-share-sidebar__button--email:hover svg {
  stroke: #ffffff;
}

.social-share-sidebar__button--copy {
  color: #667eea;
}

.social-share-sidebar__button--copy:hover {
  background: #667eea;
  color: #ffffff;
}

.social-share-sidebar__button--copy:hover svg {
  stroke: #ffffff;
}

/* Share Count */
.social-share-sidebar__count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: #ff6b6b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid #ffffff;
}

.social-share-sidebar__count:not(:empty) {
  display: flex;
}

/* Copy Confirmation */
.social-share-sidebar__copied {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  padding: 8px 12px;
  background: #4caf50;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.social-share-sidebar__copied::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #4caf50;
}

/* Mobile: Hide completely */
@media (max-width: 1024px) {
  .social-share-sidebar {
    display: none;
  }
}

/* Dark Mode */
.dark-mode .social-share-sidebar__button {
  background: #2a2a2a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .social-share-sidebar__label {
  color: #b0b0b0;
}

.dark-mode .social-share-sidebar__label svg {
  stroke: #b0b0b0;
}

.dark-mode .social-share-sidebar__button--twitter:hover,
.dark-mode .social-share-sidebar__button--linkedin:hover,
.dark-mode .social-share-sidebar__button--facebook:hover {
  /* Keep hover colors for contrast */
}

/* Accessibility */
.social-share-sidebar__button:focus {
  outline: 2px solid #667eea;
  outline-offset: 4px;
}

/* Print */
@media print {
  .social-share-sidebar {
    display: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .social-share-sidebar,
  .social-share-sidebar__button {
    transition: none;
  }
}

/* Animation on first appearance */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.social-share-sidebar--visible {
  animation: slideInLeft 0.4s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .social-share-sidebar--visible {
    animation: none;
  }
}
