/* Jump to Recipe Button Styling */
.jump-to-recipe {
  position: sticky;
  top: 20px;
  z-index: 100;
  margin: 20px 0;
}

.jump-to-recipe-btn {
  background: linear-gradient(135deg, #8B5A3C 0%, #A0522D 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(139, 90, 60, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.jump-to-recipe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 90, 60, 0.4);
  background: linear-gradient(135deg, #A0522D 0%, #8B5A3C 100%);
}

.jump-to-recipe-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(139, 90, 60, 0.3);
}

.jump-to-recipe-icon {
  font-size: 18px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Recipe section targeting */
.recipe-instructions {
  scroll-margin-top: 100px;
  position: relative;
}

.recipe-instructions::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -10px;
  right: -10px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #8B5A3C 50%, transparent 100%);
  border-radius: 2px;
  opacity: 0;
  animation: highlight 3s ease-in-out;
}

.recipe-instructions.highlight::before {
  animation: highlight 3s ease-in-out;
}

@keyframes highlight {
  0% { opacity: 0; transform: scaleX(0); }
  20% { opacity: 1; transform: scaleX(1); }
  80% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .jump-to-recipe {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    margin: 0;
  }
  
  .jump-to-recipe-btn {
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 14px;
    min-width: 160px;
    justify-content: center;
  }
}

/* Print styles - hide jump button when printing */
@media print {
  .jump-to-recipe {
    display: none;
  }
}