/* Print Styles for Family Recipes */
@media print {
    /* Hide unnecessary elements */
    .family-recipes-print-button-container,
    .recipe-search-filter,
    .wp-admin-bar,
    .site-header,
    .site-footer,
    nav,
    .sidebar,
    .comments,
    .related-posts,
    .family-recipes-print-button {
        display: none !important;
    }

    /* Body styles */
    body,
    html {
        background: #fff;
        color: #000;
        font-family: Arial, sans-serif;
        font-size: 11pt;
        line-height: 1.5;
        margin: 0;
        padding: 0;
    }

    /* Container styles */
    .family-recipes-container,
    .post,
    .entry-content,
    main,
    article {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Recipe Title */
    h1,
    .entry-title,
    .recipe-title {
        font-size: 24pt;
        margin: 0 0 12pt 0;
        page-break-after: avoid;
        color: #1e3a8a;
    }

    h2 {
        font-size: 16pt;
        margin: 12pt 0 6pt 0;
        page-break-after: avoid;
        color: #1e3a8a;
    }

    h3 {
        font-size: 13pt;
        margin: 10pt 0 5pt 0;
        page-break-after: avoid;
    }

    /* Text elements */
    p {
        margin: 0 0 6pt 0;
    }

    ul, ol {
        margin: 6pt 0;
        padding-left: 20pt;
    }

    li {
        margin: 3pt 0;
    }

    /* Recipe information */
    .recipe-info,
    .recipe-meta,
    .recipe-card-content {
        margin: 10pt 0;
        page-break-inside: avoid;
    }

    /* Uploader info */
    .recipe-uploader,
    .recipe-category {
        font-size: 10pt;
        margin: 3pt 0;
    }

    /* Hide all images */
    img,
    .recipe-card-image,
    .recipe-placeholder,
    figure,
    .wp-block-image {
        display: none !important;
    }

    /* Links */
    a {
        color: inherit;
        text-decoration: none;
    }

    a[href]:after {
        content: "";
    }

    /* Tables */
    table {
        width: 100%;
        border-collapse: collapse;
        margin: 10pt 0;
    }

    th, td {
        border: 1pt solid #000;
        padding: 5pt;
        text-align: right;
    }

    th {
        background: #f0f0f0;
        font-weight: bold;
    }

    /* WP Recipe Maker styles */
    .wprm-recipe,
    .wprm-recipe-container {
        page-break-inside: avoid;
        margin: 10pt 0;
    }

    .wprm-recipe-header {
        page-break-inside: avoid;
        margin-bottom: 10pt;
    }

    .wprm-recipe-ingredient,
    .wprm-recipe-instruction {
        margin: 3pt 0;
    }

    .wprm-recipe-ingredient-group-name,
    .wprm-recipe-instruction-group-name {
        font-weight: bold;
        margin-top: 6pt;
        margin-bottom: 3pt;
    }

    /* Blockquotes and special elements */
    blockquote {
        margin: 10pt 20pt;
        padding: 10pt;
        border-left: 2pt solid #999;
        font-style: italic;
    }

    /* Code blocks */
    code, pre {
        font-family: monospace;
        font-size: 10pt;
    }

    /* Page breaks */
    .page-break {
        page-break-after: always;
    }

    .page-break-inside-avoid {
        page-break-inside: avoid;
    }

    /* Print footer with recipe source */
    body:after {
        content: "Source: mygo.co.il - משפחת כהן ולוי";
        display: block;
        margin-top: 20pt;
        padding-top: 10pt;
        border-top: 1pt solid #999;
        font-size: 9pt;
        color: #666;
        text-align: center;
    }

    /* Ensure content is readable */
    .entry-content,
    .content,
    .post-content {
        width: 100%;
    }

    /* List styling */
    .wprm-recipe-ingredients,
    .wprm-recipe-instructions {
        margin: 10pt 0;
    }

    .wprm-recipe-ingredients li,
    .wprm-recipe-instructions li {
        margin: 4pt 0;
        list-style: disc;
    }

    /* Meta information at top */
    .recipe-meta-info {
        margin-bottom: 15pt;
        padding-bottom: 10pt;
        border-bottom: 1pt solid #999;
    }
}
