/* ========================================
   Print Styles for Recipe Pages
   ======================================== */

@media print {
    /* Hide non-essential elements */
    .site-header,
    .site-footer,
    .breadcrumb,
    .recipe-actions,
    .share-buttons,
    .recipe-sidebar,
    .related-recipes,
    .search-modal,
    .mobile-menu-toggle,
    .filter-section {
        display: none !important;
    }

    /* Reset page styles */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    /* Ensure black text for printing */
    h1, h2, h3, h4, h5, h6,
    p, li, span, a {
        color: #000 !important;
    }

    /* Recipe header */
    .recipe-header {
        page-break-after: avoid;
    }

    .recipe-title {
        font-size: 24pt;
        margin-bottom: 10pt;
    }

    .recipe-lead {
        font-size: 12pt;
        margin-bottom: 15pt;
    }

    /* Recipe meta */
    .recipe-meta-info {
        border: 1px solid #000;
        padding: 10pt;
        margin: 10pt 0;
        page-break-inside: avoid;
    }

    .meta-info-item {
        margin-bottom: 5pt;
    }

    /* Featured image */
    .recipe-featured-image {
        page-break-after: always;
    }

    .featured-image {
        max-height: 400px;
        width: auto;
        margin: 0 auto;
    }

    /* Content layout */
    .recipe-layout {
        display: block;
    }

    .recipe-main {
        width: 100%;
    }

    /* Section titles */
    .recipe-section-title {
        font-size: 16pt;
        margin: 15pt 0 10pt;
        border-bottom: 2pt solid #000;
        padding-bottom: 5pt;
        page-break-after: avoid;
    }

    /* Ingredients */
    .recipe-ingredients {
        border: 1px solid #000;
        padding: 10pt;
        margin: 10pt 0;
        page-break-inside: avoid;
    }

    .ingredients-list {
        list-style: none;
        padding: 0;
    }

    .ingredient-item {
        margin-bottom: 5pt;
        padding-left: 20pt;
        position: relative;
    }

    .ingredient-item::before {
        content: '□';
        position: absolute;
        left: 0;
    }

    .ingredient-checkbox {
        display: none;
    }

    /* Instructions */
    .instructions-list {
        list-style: decimal;
        padding-left: 20pt;
    }

    .instruction-step {
        margin-bottom: 10pt;
        page-break-inside: avoid;
    }

    .instruction-step::before {
        display: none;
    }

    /* Nutrition */
    .recipe-nutrition {
        border: 1px solid #000;
        padding: 10pt;
        margin: 10pt 0;
        page-break-inside: avoid;
    }

    .nutrition-grid {
        display: block;
    }

    .nutrition-item {
        display: inline-block;
        margin-right: 10pt;
        margin-bottom: 5pt;
    }

    /* FAQ */
    .recipe-faq {
        margin: 10pt 0;
    }

    .faq-content p {
        margin-bottom: 10pt;
    }

    /* Links */
    a {
        text-decoration: none;
    }

    a[href]::after {
        content: none;
    }

    /* Page breaks */
    h2, h3 {
        page-break-after: avoid;
    }

    /* Avoid breaking inside these elements */
    .recipe-ingredients,
    .recipe-nutrition,
    .meta-info-item,
    .instruction-step {
        page-break-inside: avoid;
    }
}
