/* --- Recipe De-Bloater Redesign Style System --- */

:root {
  --bg-color: #f7f3ec;
  --text-color: #2c2d27;
  --text-muted: #6b6d65;
  --accent-color: #c85a32;
  --accent-hover: #ad4822;
  --accent-light: #f5eae4;
  --surface-color: #faf6ee;
  --border-color: #4a6b52; /* Olive Green */
  --border-light: #d3cbba;
  --checkbox-color: #4a6b52;
  
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(44, 45, 39, 0.03);
  --shadow-md: 0 6px 16px rgba(44, 45, 39, 0.05);
  --shadow-lg: 0 16px 32px rgba(44, 45, 39, 0.08);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Floating background food items */
.floating-ingredients-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-food {
  position: absolute;
  mix-blend-mode: multiply;
  opacity: 0.85;
  filter: contrast(1.05) brightness(0.98);
  pointer-events: none;
}

/* Layout coordinates for drifting elements */
.food-tomato {
  top: 10%;
  left: 3%;
  width: 150px;
}

.food-mushroom {
  top: 8%;
  right: 4%;
  width: 130px;
}

.food-garlic {
  top: 42%;
  left: 2%;
  width: 100px;
}

.food-onion {
  top: 38%;
  right: 3%;
  width: 140px;
}

.food-broccoli {
  top: 72%;
  left: 3%;
  width: 150px;
}

.food-chili {
  top: 70%;
  right: 4%;
  width: 130px;
}

.food-basil-1 {
  top: 8%;
  left: 28%;
  width: 70px;
}

.food-basil-2 {
  top: 76%;
  left: 12%;
  width: 60px;
}

.food-basil-3 {
  top: 50%;
  right: 10%;
  width: 65px;
}

/* Hide floating elements on tablets/mobiles to preserve readability */
@media (max-width: 1024px) {
  .floating-ingredients-container {
    display: none;
  }
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2; /* Sit above floating background */
}

/* Header & Centered Logo */
.app-header {
  padding: 40px 0 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  height: auto;
  max-width: 220px;
  display: block;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 20px 0 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Views Transitions */
.view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Buttons with organic shapes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  border: 1.5px solid var(--accent-color);
  border-radius: 12px 4px 12px 4px/4px 12px 4px 12px; /* Hand-drawn look */
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface-color);
  color: var(--text-color);
  border: 1.8px solid var(--border-color);
  border-radius: 4px 12px 4px 12px/12px 4px 12px 4px;
}

.btn-secondary:hover {
  background-color: #efe9de;
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
  border: 1.5px transparent solid;
}

.btn-text:hover {
  color: var(--text-color);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 600;
}

.recipe-download-btn {
  font-size: 0.95rem;
  padding: 10px 22px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(200, 90, 50, 0.15);
}

/* --- HERO SECTION --- */
.hero-section {
  text-align: center;
  margin-bottom: 35px;
}

.hero-section h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 15px;
  color: var(--text-color);
  display: flex;
  justify-content: center;
}

.hero-title-wrapper {
  position: relative;
  display: inline-block;
  padding: 0 10px;
}

.hero-sparks {
  position: absolute;
  left: -32px;
  top: -8px;
  transform: rotate(-10deg);
}

.hero-section h1 .dot {
  color: var(--accent-color);
  font-weight: 700;
}

.hero-section .subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* --- DEBLOAT FORM --- */
.debloat-form {
  max-width: 640px;
  margin: 0 auto 50px auto;
  width: 100%;
}

.input-group {
  display: flex;
  background-color: #fff;
  border: 2px solid var(--border-color);
  /* Organic hand-drawn path border */
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  padding: 6px;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.input-icon {
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-color);
  outline: none;
}

.input-group input::placeholder {
  color: #a09d94;
}

.wand-icon {
  margin-left: 4px;
}

/* --- FEATURES GRID & CARDS --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.feature-card {
  background-color: var(--surface-color);
  border: 1.8px solid var(--border-color);
  border-radius: 16px 8px 16px 10px/10px 16px 8px 16px; /* Organic corners */
  padding: 26px 20px;
  text-align: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15), box-shadow 0.3s ease;
  box-shadow: 2px 4px 10px rgba(74, 107, 82, 0.05);
}

.feature-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-color);
}

.card-divider {
  width: 40px;
  height: 2px;
  background-color: var(--accent-light);
  margin: 0 auto 12px auto;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Small hand-drawn decoration elements on cards */
.card-decoration-basil,
.card-decoration-heart {
  position: absolute;
  bottom: 8px;
  right: 12px;
  opacity: 0.25;
}

/* --- LOADING VIEW --- */
.loading-container {
  text-align: center;
  padding: 60px 0;
}

.spinner-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.cooking-pot-loader {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pot-icon {
  font-size: 3.5rem;
  color: var(--accent-color);
  animation: pot-wiggle 1.5s infinite ease-in-out;
}

/* Rising bubbles */
.bubble {
  position: absolute;
  background-color: var(--accent-color);
  border-radius: 50%;
  opacity: 0;
  bottom: 50px;
  animation: bubble-rise 1.5s infinite ease-out;
}

.bubble-1 {
  width: 8px;
  height: 8px;
  left: 25px;
  animation-delay: 0.2s;
}

.bubble-2 {
  width: 12px;
  height: 12px;
  left: 45px;
  animation-delay: 0.6s;
}

.bubble-3 {
  width: 6px;
  height: 6px;
  left: 35px;
  animation-delay: 0.9s;
}

@keyframes pot-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@keyframes bubble-rise {
  0% {
    bottom: 50px;
    opacity: 0;
    transform: scale(0.6);
  }
  30% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    bottom: 95px;
    opacity: 0;
    transform: scale(1.1);
  }
}

.loading-status {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.loading-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- ERROR VIEW --- */
.error-container {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

.error-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.error-container h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.error-message {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 0.95rem;
  background-color: #fbeee9;
  border: 1.5px solid #ebd0c7;
  padding: 15px;
  border-radius: 8px;
}
/* --- RECIPE VIEW --- */
.recipe-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1.8px solid var(--border-light);
  padding-bottom: 15px;
}

.recipe-card {
  background-color: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}

/* Notebook binder holes style top border decoration */
.recipe-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 20px;
  right: 20px;
  height: 20px;
  background-image: radial-gradient(circle, var(--bg-color) 6px, transparent 7px);
  background-size: 25px 20px;
}

.recipe-header {
  margin-bottom: 30px;
}

.recipe-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 15px;
  color: var(--text-color);
}

.recipe-meta-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.recipe-meta-author a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.recipe-meta-author a:hover {
  text-decoration: underline;
}

/* Table stats */
.recipe-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-top: 1.5px solid var(--border-light);
  border-bottom: 1.5px solid var(--border-light);
  padding: 15px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Image Container */
.recipe-image-container {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 35px;
  border: 1.5px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eee9dd;
}

.recipe-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body Layout */
.recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.recipe-body h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-color);
}

.column-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Ingredients Checklist Styling */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ingredient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  transition: background-color 0.15s ease;
  width: 100%;
}

.ingredient-row:hover {
  background-color: #f3ebdf;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 8px 10px;
  user-select: none;
  flex: 1;
}

.checklist-item input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background-color: #fff;
  margin-top: 3px;
}

.custom-checkbox i {
  font-size: 0.65rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
}

.checklist-item input[type="checkbox"]:checked + .custom-checkbox {
  background-color: var(--checkbox-color);
  border-color: var(--checkbox-color);
}

.checklist-item input[type="checkbox"]:checked + .custom-checkbox i {
  opacity: 1;
  transform: scale(1);
}

.checklist-item-text {
  font-size: 0.9rem;
  color: var(--text-color);
  transition: all 0.2s ease;
  line-height: 1.4;
}

.checklist-item input[type="checkbox"]:checked ~ .checklist-item-text {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.6;
}

.ingredient-search-link {
  color: var(--text-muted);
  padding: 8px 10px;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ingredient-search-link:hover {
  color: var(--accent-color);
  background-color: var(--accent-light);
}

/* Instructions Styling */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.step-item {
  display: flex;
  gap: 15px;
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: var(--accent-light);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
}

.step-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
}

.step-section-header {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 15px;
  margin-bottom: 5px;
  color: var(--text-color);
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 4px;
  width: 100%;
}

.recipe-footer-actions {
  display: flex;
  justify-content: center;
  padding-top: 30px;
  border-top: 1.5px solid var(--border-light);
}

/* Success Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 45, 39, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  background-color: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.success-overlay.active .success-card {
  transform: scale(1);
}

.success-illustration {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.success-card h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.success-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

/* --- FOOTER --- */
.app-footer {
  text-align: center;
  padding: 40px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1.5px solid var(--border-light);
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-leaf {
  opacity: 0.6;
}

/* Mobile Float Keyframes */
@keyframes float-tomato-mobile {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(6px, -12px) rotate(8deg); }
}
@keyframes float-basil-1-mobile {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4px, 8px) rotate(-10deg); }
}
@keyframes float-basil-2-mobile {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-3px, -8px) rotate(6deg); }
}
@keyframes float-garlic-mobile {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(8px, -8px) rotate(12deg); }
}
@keyframes float-onion-mobile {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-8px, 6px) rotate(-8deg); }
}
@keyframes float-broccoli-mobile {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -15px) rotate(10deg); }
}
@keyframes float-chili-mobile {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-8px, 12px) rotate(-12deg); }
}
@keyframes float-mushroom-mobile {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(6px, -10px) rotate(8deg); }
}
@keyframes float-basil-3-mobile {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5px, 8px) rotate(-10deg); }
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 768px) {
  /* Dynamic Viewport and Smooth Momentum Scroll */
  html, body {
    -webkit-overflow-scrolling: touch;
    min-height: 100dvh;
    font-size: 16px !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .app-container {
    min-height: 100dvh;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  /* Show floating container on mobile but force absolute safety layout */
  .floating-ingredients-container {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  .floating-food {
    position: absolute;
    will-change: transform;
    opacity: 0.55 !important;
    z-index: 0 !important;
  }

  /* Tomato -> top left corner */
  .food-tomato {
    width: 90px !important;
    top: 2% !important;
    left: -20px !important;
    right: auto !important;
    bottom: auto !important;
    animation: float-tomato-mobile 12s ease-in-out infinite !important;
  }

  /* Basil-1 -> top right corner */
  .food-basil-1 {
    width: 45px !important;
    top: 3% !important;
    right: -10px !important;
    left: auto !important;
    bottom: auto !important;
    animation: float-basil-1-mobile 8s ease-in-out infinite !important;
  }

  /* Basil-2 -> small dots scattered in top area */
  .food-basil-2 {
    width: 35px !important;
    top: 15% !important;
    left: 80% !important;
    right: auto !important;
    bottom: auto !important;
    animation: float-basil-2-mobile 9s ease-in-out infinite !important;
  }

  /* Garlic -> left edge middle */
  .food-garlic {
    width: 60px !important;
    top: 40% !important;
    left: -20px !important;
    right: auto !important;
    bottom: auto !important;
    animation: float-garlic-mobile 10s ease-in-out infinite !important;
  }

  /* Onion -> right edge middle */
  .food-onion {
    width: 80px !important;
    top: 45% !important;
    right: -25px !important;
    left: auto !important;
    bottom: auto !important;
    animation: float-onion-mobile 11s ease-in-out infinite !important;
  }

  /* Broccoli -> bottom left */
  .food-broccoli {
    width: 95px !important;
    bottom: 5% !important;
    left: -20px !important;
    top: auto !important;
    right: auto !important;
    animation: float-broccoli-mobile 13s ease-in-out infinite !important;
  }

  /* Chili -> bottom right */
  .food-chili {
    width: 80px !important;
    bottom: 7% !important;
    right: -20px !important;
    top: auto !important;
    left: auto !important;
    animation: float-chili-mobile 10s ease-in-out infinite !important;
  }

  /* Mushroom -> bottom left scattered */
  .food-mushroom {
    width: 75px !important;
    bottom: 25% !important;
    left: -25px !important;
    top: auto !important;
    right: auto !important;
    animation: float-mushroom-mobile 14s ease-in-out infinite !important;
  }

  /* Basil-3 -> bottom right scattered */
  .food-basil-3 {
    width: 42px !important;
    bottom: 28% !important;
    right: -15px !important;
    left: auto !important;
    top: auto !important;
    animation: float-basil-3-mobile 9s ease-in-out infinite !important;
  }

  /* Hero & Input Area */
  .hero-section h1 {
    font-size: 2.2rem !important;
    line-height: 1.25 !important;
  }
  
  .debloat-form {
    width: 100% !important;
    padding: 0 4px !important;
    margin-bottom: 30px !important;
  }
  
  .input-group {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding: 4px !important;
  }

  .input-group input {
    min-width: 0 !important;
    flex: 1 !important;
    width: 100% !important;
  }

  #submit-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 10px 16px !important;
  }

  /* Card Stacking & Sizing */
  .features-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
  }

  .feature-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 8px !important;
  }

  .recipe-card {
    padding: 24px !important;
  }
  
  .recipe-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  .recipe-body {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  .recipe-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .recipe-toolbar {
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: space-between !important;
    padding-bottom: 12px !important;
  }

  #recipe-back-btn {
    padding: 8px 0 !important;
  }

  /* Tap Target Upgrades (Minimum 44px) */
  .btn,
  .input-group input,
  .checklist-item,
  .ingredient-search-link,
  #recipe-source-link,
  #recipe-back-btn,
  #error-back-btn,
  #success-close-btn {
    min-height: 44px !important;
  }

  .ingredient-search-link {
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .checklist-item {
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Font Readability (Minimum 16px) */
  .feature-card p,
  .checklist-item-text,
  .step-text,
  .recipe-meta-author,
  .recipe-meta-author a,
  .column-subtitle,
  .loading-subtext,
  .error-message,
  .app-footer,
  .subtitle,
  .input-group input,
  #submit-btn span {
    font-size: 16px !important;
  }
}

/* PRINT STYLES */
@media print {
  body {
    background-color: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  
  .app-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  header,
  footer,
  .recipe-toolbar,
  .recipe-footer-actions,
  .success-overlay,
  .column-subtitle,
  .floating-ingredients-container {
    display: none !important;
  }
  
  .recipe-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background-color: transparent !important;
  }
  
  .recipe-card::before {
    display: none !important;
  }
  
  .recipe-title {
    font-size: 22pt !important;
    margin-bottom: 8pt !important;
  }
  
  .recipe-meta-author a {
    display: none !important;
  }
  
  .recipe-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    border-top: 0.5pt solid #000 !important;
    border-bottom: 0.5pt solid #000 !important;
    padding: 6pt 0 !important;
    margin-bottom: 15pt !important;
  }
  
  .stat-item {
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .stat-value {
    font-size: 10pt !important;
  }

  .recipe-image-container {
    max-height: 220px !important;
    margin-bottom: 15pt !important;
  }
  
  .recipe-body {
    display: block !important;
  }
}
