/* Print stylesheet for Hearth & Hygge — clean recipe printing */

@media print {
    /* Page setup */
    @page {
        margin: 2cm;
        @bottom-center {
            content: "From Hearth & Hygge \2014  A Family Cookbook";
            font-size: 9pt;
            color: #999;
        }
    }

    /* Global overrides */
    * {
        background: white !important;
        color: #222 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        border-radius: 0 !important;
    }

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

    /* Hide non-content elements */
    .main-nav,
    .nav-container,
    .site-footer,
    .flash-container,
    .breadcrumb-nav,
    .recipe-actions,
    .community-nav,
    .stories-section,
    .comments-section,
    .gallery-section,
    .lightbox,
    .servings-adjuster button,
    .btn-adjust,
    .btn-reset,
    .unit-toggle,
    .recipe-tags-section,
    .recipe-footer,
    .recipe-pending-notice,
    .nav-search-form,
    .nav-search-toggle,
    .region-sidebar,
    .category-grid,
    .region-latest,
    .home-hero-description,
    form,
    button,
    .btn,
    .badge-region,
    .badge-category,
    .badge-national,
    .nav-badge,
    .add-to-collection-wrapper,
    .collection-dropdown {
        display: none !important;
    }

    /* Recipe title */
    .recipe-title {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 24pt;
        font-weight: bold;
        margin-bottom: 0.3cm;
        border-bottom: 1pt solid #222;
        padding-bottom: 0.3cm;
    }

    .recipe-original-name {
        font-style: italic;
        font-size: 14pt;
        margin-bottom: 0.5cm;
    }

    /* Recipe header badges — show text versions for print */
    .recipe-header-badges {
        margin-bottom: 0.3cm;
    }

    .recipe-header-badges .badge {
        display: inline !important;
        font-size: 10pt;
        padding: 0;
        border: none;
        background: none !important;
        color: #222 !important;
    }

    .recipe-header-badges .badge::after {
        content: " \00B7  ";
    }

    .recipe-header-badges .badge:last-child::after {
        content: "";
    }

    /* Recipe image */
    .recipe-image-container {
        text-align: center;
        margin: 0.5cm 0;
    }

    .recipe-image {
        max-width: 100%;
        max-height: 300px;
        object-fit: contain;
    }

    /* Meta bar */
    .recipe-meta-bar {
        border: 1pt solid #ccc;
        padding: 0.3cm;
        margin: 0.5cm 0;
        display: flex;
        gap: 1cm;
    }

    .recipe-meta-item {
        font-size: 10pt;
    }

    .recipe-meta-label {
        font-weight: bold;
    }

    .recipe-meta-value {
        font-family: Georgia, "Times New Roman", serif;
    }

    .recipe-meta-value.mono {
        font-family: Georgia, "Times New Roman", serif;
    }

    /* Servings — show just the count, hide buttons */
    .recipe-meta-servings .servings-adjuster {
        display: inline;
    }

    .servings-count {
        font-family: Georgia, "Times New Roman", serif;
    }

    /* Cultural context */
    .recipe-cultural-context {
        margin: 0.5cm 0;
    }

    .recipe-cultural-context blockquote {
        font-style: italic;
        border-left: 2pt solid #666;
        padding-left: 0.5cm;
        margin-left: 0;
    }

    /* Description */
    .recipe-description {
        margin-bottom: 0.5cm;
    }

    /* Recipe body layout — single column for print */
    .recipe-body {
        display: block !important;
    }

    /* Ingredients */
    .recipe-ingredients {
        page-break-inside: avoid;
        margin-bottom: 0.5cm;
    }

    .recipe-ingredients h2 {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 16pt;
        border-bottom: 1pt solid #ccc;
        padding-bottom: 0.2cm;
        margin-bottom: 0.3cm;
    }

    .ingredients-list {
        list-style: disc;
        padding-left: 1cm;
    }

    .ingredient-item {
        margin-bottom: 0.1cm;
        font-size: 11pt;
    }

    .ingredient-amount,
    .ingredient-unit,
    .ingredient-name {
        font-family: Georgia, "Times New Roman", serif;
    }

    .ingredient-notes {
        color: #555 !important;
        font-style: italic;
    }

    /* Instructions */
    .recipe-instructions h2 {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 16pt;
        border-bottom: 1pt solid #ccc;
        padding-bottom: 0.2cm;
        margin-bottom: 0.3cm;
    }

    .instructions-list {
        padding-left: 0;
        list-style: none;
    }

    .instruction-step {
        page-break-inside: avoid;
        margin-bottom: 0.3cm;
        padding-left: 1cm;
    }

    .step-number {
        font-weight: bold;
        margin-right: 0.3cm;
        float: left;
        width: 1cm;
        margin-left: -1cm;
    }

    .step-text {
        font-size: 11pt;
        line-height: 1.5;
    }

    /* Orphans and widows */
    p, li, .instruction-step {
        orphans: 3;
        widows: 3;
    }

    /* Links — show URL for external links only */
    a[href^="http"]:not([href*="project-hearth"])::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666 !important;
    }

    a {
        text-decoration: none;
        color: #222 !important;
    }

    /* Container width */
    .container,
    .recipe-detail {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Remove gradients and decorative elements */
    .region-header {
        background: none !important;
        padding: 0;
    }
}
