/* Print Stylesheet for Recipe Pages */
@media print {
    /* Hide unnecessary elements */
    header,
    nav,
    footer,
    .btn,
    .rating-widget,
    .favorite-button,
    .reviews-section,
    .comments-section,
    .quick-actions,
    .breadcrumb,
    .dropdown,
    .modal,
    .alert {
        display: none !important;
    }

    /* Reset page layout */
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }

    .container,
    .container-fluid {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    /* Recipe header */
    .recipe-detail h1 {
        font-size: 24pt;
        margin-bottom: 0.5em;
        page-break-after: avoid;
    }

    .recipe-detail .lead {
        font-size: 14pt;
        margin-bottom: 1em;
    }

    /* Recipe metadata */
    .recipe-meta {
        border-top: 2px solid #333;
        border-bottom: 2px solid #333;
        padding: 0.5em 0;
        margin: 1em 0;
        page-break-inside: avoid;
    }

    .recipe-meta .meta-item {
        display: inline-block;
        margin-right: 1.5em;
        font-size: 11pt;
    }

    /* Category badges */
    .badge {
        border: 1px solid #333;
        background: white !important;
        color: black !important;
        padding: 0.25em 0.5em;
        margin-right: 0.5em;
    }

    /* Ingredients section */
    .ingredients-section {
        page-break-inside: avoid;
        margin-bottom: 2em;
    }

    .ingredients-section h3 {
        font-size: 16pt;
        border-bottom: 1px solid #333;
        padding-bottom: 0.25em;
        margin-bottom: 0.5em;
    }

    .ingredients-section .list-group-item {
        border: none;
        border-bottom: 1px dotted #ccc;
        padding: 0.25em 0;
        font-size: 11pt;
    }

    /* Instructions section */
    .instructions-section {
        page-break-before: auto;
    }

    .instructions-section h3 {
        font-size: 16pt;
        border-bottom: 1px solid #333;
        padding-bottom: 0.25em;
        margin-bottom: 0.5em;
    }

    .instructions-section .list-group-item {
        border: none;
        border-bottom: 1px dotted #ccc;
        padding: 0.5em 0;
        font-size: 11pt;
        page-break-inside: avoid;
    }

    /* Tips section */
    .tips-section {
        page-break-inside: avoid;
        margin-top: 2em;
    }

    .tips-section h3 {
        font-size: 14pt;
        margin-bottom: 0.5em;
    }

    .tips-section .alert {
        display: block !important;
        border: 1px solid #333;
        background: white;
        padding: 0.5em;
        font-size: 10pt;
    }

    /* Nutrition info */
    .nutrition-info {
        page-break-inside: avoid;
        border: 1px solid #333;
        padding: 0.5em;
        margin-top: 1em;
    }

    .nutrition-info h5 {
        font-size: 12pt;
        margin-bottom: 0.5em;
    }

    /* Images - only show primary image */
    .recipe-header img {
        max-width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .image-gallery {
        display: none !important;
    }

    /* Hide sidebar */
    .col-lg-4 {
        display: none !important;
    }

    .col-lg-8 {
        width: 100% !important;
        max-width: 100%;
    }

    /* Cards */
    .card {
        border: none;
        box-shadow: none;
    }

    .card-body {
        padding: 0;
    }

    /* Links - show URLs */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
        color: #666;
    }

    a[href^="#"]:after,
    a[href^="javascript"]:after {
        content: "";
    }

    /* Page breaks */
    h2, h3 {
        page-break-after: avoid;
    }

    img {
        page-break-inside: avoid;
    }

    /* Footer for print */
    @page {
        margin: 2cm;
    }

    /* Add recipe source at bottom */
    .recipe-detail:after {
        content: "Recipe from Fresh Kitchen Recipes";
        display: block;
        margin-top: 2em;
        padding-top: 1em;
        border-top: 1px solid #333;
        font-size: 10pt;
        text-align: center;
        color: #666;
    }
}
