/* ================================
   Floating Share Button CSS
   Heißluftfritteusen Rezepte
   ================================ */

/* ------------------------------------------------------------------
   Floating Button Container
   ------------------------------------------------------------------ */
.floating-share-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  animation: fadeInUp 0.5s ease-out;
}

/* ------------------------------------------------------------------
   Toggle-Button
   ------------------------------------------------------------------ */
.share-toggle {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: visible;
}

.share-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Pulse-Ring beim Hover */
.share-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(124, 179, 66, 0.35);
  opacity: 0;
  transform: scale(1);
  transition: none;
}

.share-toggle:hover::after {
  animation: pulse 1.4s ease-out infinite;
}

/* ------------------------------------------------------------------
   Animationen
   ------------------------------------------------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

/* ------------------------------------------------------------------
   Modal – Share-Buttons
   ------------------------------------------------------------------ */
.modal-body .btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-body .btn:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ------------------------------------------------------------------
   Toast-Benachrichtigung
   ------------------------------------------------------------------ */
.toast-container {
  position: fixed;
  bottom: 110px;
  right: 30px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-toast {
  color: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: slideInRight 0.3s ease-out;
  min-width: 200px;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 576px) {
  .floating-share-btn {
    bottom: 20px;
    right: 20px;
  }

  .share-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .toast-container {
    right: 16px;
    bottom: 90px;
  }
}

/* ------------------------------------------------------------------
   Druck
   ------------------------------------------------------------------ */
@media print {
  .floating-share-btn,
  .toast-container {
    display: none !important;
  }
}
