/* Floating Share Button Styles */
.share-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.share-fab-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DC143C 0%, #FFD700 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  color: white;
}

.share-fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(220, 20, 60, 0.6);
}

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

.share-fab-button svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.share-fab-button.active svg {
  transform: rotate(45deg);
}

/* Share Options Menu */
.share-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-option {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(220, 20, 60, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(220, 20, 60, 0.15);
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInScale 0.3s ease backwards;
}

.share-option:nth-child(1) { animation-delay: 0.05s; }
.share-option:nth-child(2) { animation-delay: 0.1s; }
.share-option:nth-child(3) { animation-delay: 0.15s; }
.share-option:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.share-option:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(255, 215, 0, 0.05));
  border-color: #FFD700;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

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

/* Platform specific colors with theme integration */
.share-option.x-twitter svg {
  color: #DC143C;
}

.share-option.reddit svg {
  color: #DC143C;
}

.share-option.facebook svg {
  color: #DC143C;
}

.share-option.instagram svg {
  color: #DC143C;
}

.share-option:hover svg {
  color: #FFD700;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

/* Tooltip */
.share-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #DC143C, #FF69B4);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.share-tooltip::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid #DC143C;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.share-option:hover .share-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Ripple effect */
.share-fab-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.share-fab-button:active::before {
  width: 100px;
  height: 100px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .share-fab {
    bottom: 20px;
    right: 20px;
  }
  
  .share-fab-button {
    width: 48px;
    height: 48px;
  }
  
  .share-option {
    width: 40px;
    height: 40px;
  }
  
  .share-tooltip {
    display: none;
  }
}

/* Toast notification (reuse existing or create new) */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #DC143C, #FF69B4);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .share-option {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1);
  }
  
  .share-option:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(255, 215, 0, 0.1));
    border-color: #FFD700;
  }
  
  .share-option svg {
    color: #FFD700;
  }
}