/* Custom styles & animations for Rodinná Kuchárka */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #d97706;
  --primary-dark: #b45309;
  --primary-light: #fef3c7;
}

/* Smooth transitions */
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar completely for horizontal pill bars */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* iOS Safe Area & Notched Display Support */
.safe-top {
  padding-top: max(0.875rem, calc(0.75rem + env(safe-area-inset-top, 0px))) !important;
}
.modal-safe-top {
  padding-top: max(1.125rem, calc(0.85rem + env(safe-area-inset-top, 0px))) !important;
}
@media (min-width: 640px) {
  .modal-safe-top {
    padding-top: 1rem !important;
  }
}
.safe-bottom {
  padding-bottom: max(0.75rem, calc(0.5rem + env(safe-area-inset-bottom, 0px))) !important;
}
.kiosk-safe-top {
  padding-top: max(0.75rem, calc(0.5rem + env(safe-area-inset-top, 0px))) !important;
}
.kiosk-safe-bottom {
  padding-bottom: max(0.85rem, calc(0.5rem + env(safe-area-inset-bottom, 0px))) !important;
}

#global-toast {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drag-handle {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.drag-handle:active {
  cursor: grabbing;
}

/* Ingredient checklist animation */
.ingredient-item {
  transition: all 0.2s ease-in-out;
}

/* Step checklist */
.step-item {
  transition: all 0.2s ease-in-out;
}

/* Kiosk HUD styling */
.kiosk-mode {
  background-color: #0f172a;
  color: #f8fafc;
}

/* Pulse animation for active timer */
@keyframes timerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 20px 6px rgba(217, 119, 6, 0.6);
  }
}

.timer-active {
  animation: timerPulse 2s infinite ease-in-out;
}

/* Hide spin buttons on number inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Card hover animation */
.recipe-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.12);
}

/* Accessibility / Large text mode */
.large-recipe-text #detail-desc {
  font-size: 1.125rem !important;
  line-height: 1.75 !important;
}
.large-recipe-text .ingredient-name {
  font-size: 1.05rem !important;
}
.large-recipe-text .ingredient-qty {
  font-size: 1.1rem !important;
}
.large-recipe-text .step-title {
  font-size: 1.2rem !important;
}
.large-recipe-text .step-text {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}
