/* Share Modal */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.share-modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.share-modal-close:hover {
  background: #E5E7EB;
  color: #111827;
}

.share-modal-content h3 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-right: 40px;
  color: #111827;
}

.share-modal-content p {
  color: #6B7280;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-preview {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-modal-actions .btn {
  text-align: center;
}

.share-modal-actions .btn-secondary {
  background: #F3F4F6;
  color: #374151;
}

.share-modal-actions .btn-secondary:hover {
  background: #E5E7EB;
}

/* Loading State */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1001;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

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

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

.toast.success {
  background: #059669;
}

.toast.error {
  background: #DC2626;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .share-modal-content {
    padding: 24px;
    margin: 8px;
  }
  
  .share-modal-content h3 {
    font-size: 18px;
  }
}
