/* Custom styles for the recipe site */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Recipe card hover effects */
.recipe-card {
  transition: transform 0.2s ease-in-out;
}

.recipe-card:hover {
  transform: translateY(-2px);
}

/* Print styles */
@media print {
  nav, footer {
    display: none;
  }
  
  article {
    box-shadow: none;
    border: none;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Inline recipe step elements */
.ingredient-badge {
  transition: all 0.2s ease-in-out;
}

.ingredient-badge:hover {
  background-color: #fef3c7;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.equipment-badge {
  transition: all 0.2s ease-in-out;
}

.equipment-badge:hover {
  background-color: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-badge {
  transition: all 0.2s ease-in-out;
  animation: pulse 2s infinite;
}

.timer-badge:hover {
  background-color: #fee2e2;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}

/* Collapsible details styling */
details summary {
  user-select: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  margin-bottom: 1rem;
}

/* Responsive adjustments for badges */
@media (max-width: 640px) {
  .ingredient-badge,
  .equipment-badge,
  .timer-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

