@charset "UTF-8";

/* Custom fonts & base settings */
:root {
  --primary: #ea580c;
  --primary-hover: #c2410c;
}

/* Glassmorphism helpers */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .glass-nav {
  background: rgba(15, 23, 42, 0.88);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.dark .glass-card {
  background: rgba(30, 41, 59, 0.7);
}

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

/* Touch and mobile optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select {
  touch-action: manipulation;
}

.overscroll-contain {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.pb-safe {
  padding-bottom: max(0.875rem, env(safe-area-inset-bottom, 0.875rem));
}

@media screen and (max-width: 640px) {
  input[type="text"],
  select {
    font-size: 16px !important;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Card hover transitions */
.recipe-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Robot Step badge pulses */
.robot-badge {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Ingredients strikethrough when checked */
.ingredient-item.checked span {
  text-decoration: line-through;
  opacity: 0.55;
}

/* Line clamps */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Circular timer progress */
.timer-svg circle {
  transition: stroke-dashoffset 1s linear;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  nav, header, #filtersSection, #favoritesBanner, #statsBanner, #floatingTimer, .no-print, button:not(.print-keep) {
    display: none !important;
  }

  #recipeModal {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  #recipeModalContent {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    transform: none !important;
  }

  #recipesGrid, footer {
    display: none !important;
  }

  .print-page-break {
    page-break-before: always;
  }
}
