/* Print Styles - Optimized for printing recipes */
/* 365-Day Alkaline Vegan Meal Plan */

@media print {
  /* Hide navigation and non-essential elements */
  nav,
  header .health-badges,
  .favorite-btn,
  .nav-btn,
  .btn,
  .skip-link,
  .keyboard-shortcuts-btn {
    display: none !important;
  }

  /* Reset page layout */
  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.4;
  }

  header {
    background: none;
    color: black;
    box-shadow: none;
    padding: 1rem 0;
    border-bottom: 2px solid black;
  }

  header h1 {
    color: black;
    text-shadow: none;
    font-size: 18pt;
  }

  header p {
    color: black;
  }

  /* Optimize cards for printing */
  .card,
  .recipe-card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .recipe-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Keep recipe sections together */
  .recipe-section {
    page-break-inside: avoid;
  }

  /* Optimize lists */
  ul,
  ol {
    page-break-inside: avoid;
  }

  /* Show URLs for links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    color: #666;
  }

  /* Optimize tag display */
  .tag {
    border: 1px solid #ccc;
    background: white;
    color: black;
  }

  /* Benefits section */
  .benefits {
    background: white;
    border: 1px solid #ccc;
  }

  /* Cultural notes */
  .cultural-note {
    background: white;
    border-left: 4px solid #ccc;
  }

  /* Hide empty sections */
  .section:not(.active) {
    display: none !important;
  }

  /* Page breaks */
  .meal-section {
    page-break-before: auto;
    page-break-after: auto;
    page-break-inside: avoid;
  }

  .meal-header {
    background: none;
    color: black;
    border-bottom: 2px solid black;
    page-break-after: avoid;
  }

  /* Ensure readability */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
    color: black;
  }

  /* Adjust font sizes for print */
  .recipe-title {
    font-size: 14pt;
    color: black;
  }

  .recipe-section h4 {
    font-size: 12pt;
    color: black;
  }

  /* Footer with page info */
  @page {
    margin: 2cm;
    @bottom-right {
      content: "Page " counter(page) " of " counter(pages);
    }
  }
}
