/**
 * Print Stylesheet for Recipe Blooms
 * Clean, printer-friendly recipe output
 */

@media print {
    /* Hide non-essential elements */
    header,
    footer,
    nav,
    .site-header,
    .site-footer,
    .mobile-menu,
    .recipe-hero__actions,
    .recipe-hero__overlay,
    .recipe-jump-links,
    .recipe-rate-section,
    .recipe-tags,
    .related-recipes,
    .servings-btn,
    .instruction-timer,
    .ingredient-checkbox,
    .ingredient-check,
    .star-rating,
    .btn,
    .toast,
    .modal,
    .sidebar,
    .ads,
    .social-share,
    .comments,
    [role="navigation"],
    .no-print {
        display: none !important;
    }

    /* Reset page styles */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 12pt;
        line-height: 1.5;
        margin: 0;
        padding: 0;
    }

    /* Page settings */
    @page {
        margin: 0.75in;
        size: letter;
    }

    /* Recipe container */
    .recipe-page {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Hero image - smaller for print */
    .recipe-hero {
        height: auto !important;
        max-height: 3in;
        overflow: hidden;
        margin-bottom: 0.25in;
        page-break-inside: avoid;
    }

    .recipe-hero__image {
        width: 100%;
        height: auto;
        max-height: 3in;
        object-fit: cover;
    }

    /* Recipe title */
    .recipe-title {
        font-size: 24pt;
        font-weight: bold;
        margin: 0 0 0.1in 0;
        border-bottom: 2pt solid black;
        padding-bottom: 0.1in;
    }

    /* Description */
    .recipe-description {
        font-style: italic;
        font-size: 11pt;
        margin-bottom: 0.15in;
    }

    /* Meta info (prep time, cook time, servings) */
    .recipe-meta {
        display: flex;
        gap: 0.3in;
        border: 1pt solid #ccc;
        padding: 0.1in 0.15in;
        margin-bottom: 0.2in;
        page-break-inside: avoid;
    }

    .recipe-meta__item {
        display: flex;
        align-items: center;
        gap: 0.05in;
    }

    .recipe-meta__item svg {
        display: none;
    }

    .recipe-meta__label {
        font-weight: bold;
        font-size: 9pt;
    }

    .recipe-meta__value {
        font-size: 11pt;
    }

    .servings-value {
        font-size: 11pt;
    }

    /* Section titles */
    .recipe-section__title {
        font-size: 16pt;
        font-weight: bold;
        margin: 0.2in 0 0.1in 0;
        border-bottom: 1pt solid #999;
        padding-bottom: 0.05in;
        page-break-after: avoid;
    }

    .recipe-section__title svg {
        display: none;
    }

    /* Ingredients */
    .ingredient-list {
        list-style: none;
        padding: 0;
        margin: 0 0 0.2in 0;
        columns: 2;
        column-gap: 0.3in;
    }

    .ingredient-item {
        font-size: 11pt;
        padding: 0.03in 0;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ingredient-label {
        display: block;
    }

    .ingredient-text {
        display: inline;
    }

    .ingredient-qty {
        font-weight: bold;
    }

    .ingredient-sub {
        display: block;
        font-size: 9pt;
        font-style: italic;
        margin-left: 0.15in;
    }

    .ingredient-sub svg {
        display: none;
    }

    /* Instructions */
    .instruction-list {
        list-style: none;
        padding: 0;
        margin: 0;
        counter-reset: step;
    }

    .instruction-item {
        display: flex;
        gap: 0.1in;
        margin-bottom: 0.1in;
        page-break-inside: avoid;
    }

    .instruction-number {
        font-weight: bold;
        font-size: 14pt;
        min-width: 0.25in;
        color: #333 !important;
    }

    .instruction-text {
        font-size: 11pt;
        margin: 0;
    }

    .instruction-note {
        font-size: 10pt;
        font-style: italic;
        margin: 0.05in 0 0 0;
        padding-left: 0.1in;
        border-left: 2pt solid #999;
    }

    /* Nutrition */
    #nutrition {
        page-break-inside: avoid;
    }

    .nutrition-per-serving {
        font-size: 10pt;
        font-style: italic;
        margin: 0 0 0.1in 0;
    }

    .nutrition-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.1in;
        border: 1pt solid #ccc;
        padding: 0.1in;
    }

    .nutrition-item {
        text-align: center;
        padding: 0.05in;
    }

    .nutrition-value {
        display: block;
        font-weight: bold;
        font-size: 12pt;
    }

    .nutrition-label {
        font-size: 9pt;
    }

    .macro-chart {
        display: none;
    }

    .dietary-badges,
    .allergen-warning {
        font-size: 10pt;
        margin-bottom: 0.1in;
    }

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

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

    /* Footer with site URL */
    .recipe-page::after {
        content: "recipeblooms.com";
        display: block;
        text-align: center;
        font-size: 10pt;
        font-style: italic;
        margin-top: 0.3in;
        padding-top: 0.1in;
        border-top: 1pt solid #ccc;
    }

    /* Prevent awkward page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    .recipe-section {
        page-break-inside: avoid;
    }

    /* If ingredients section is too long, allow break */
    .ingredient-list {
        page-break-inside: auto;
    }
}
