/*
 * Print Stylesheet for Rezeptwerk
 */

@media print {
    /* Hide unneeded elements */
    header, footer, .site-header, .site-footer, .slider-wrapper, .mobile-menu, .search-overlay,
    .recipe-sidebar, .sidebar, .comments-area, .btn, .social-share, .cookie-banner, .newsletter-section,
    .section-link, .category-bubble-row, .slider-btn, .slider-dots, .category-bubble-badge, iframe {
        display: none !important;
    }

    /* Reset background and colors for printing */
    body, .site-main, .recipe-article-premium, .recipe-content, .recipe-ingredients-premium {
        background: #fff !important;
        color: #000 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

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

    /* Typography adjustments */
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    p, li {
        color: #000 !important;
        font-size: 12pt !important;
        line-height: 1.5 !important;
        page-break-inside: avoid;
    }

    /* Recipe specific */
    .recipe-title-premium {
        font-size: 24pt !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .recipe-meta-row-premium {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        border-bottom: 1px solid #000;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .recipe-meta-row-premium img {
        display: none; /* hide author avatar */
    }

    .recipe-featured-image-premium img {
        max-width: 50% !important;
        height: auto !important;
        margin: 0 auto 20px;
        display: block;
        page-break-inside: avoid;
    }

    /* Ingredients grid to list */
    .ingredients-grid-premium {
        display: block !important;
        column-count: 2;
        column-gap: 20px;
    }

    .ingredient-item-premium {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        page-break-inside: avoid;
    }

    .ingredient-checkbox {
        display: inline-block !important;
        width: 12px;
        height: 12px;
        border: 1px solid #000;
        margin-right: 10px;
    }

    .ingredient-amount-premium {
        font-weight: bold;
        margin-right: 5px;
    }

    /* Instructions */
    .instruction-step-premium {
        margin-bottom: 15px;
        page-break-inside: avoid;
    }

    .step-number-premium {
        font-weight: bold;
        display: inline-block;
        margin-right: 10px;
    }

    /* Macros / Chart */
    .recipe-nutrition-chart-wrapper, .pie-chart-container {
        display: none !important; /* Hide complex charts */
    }
    
    .nutrition-pills-row {
        display: flex !important;
        gap: 10px;
        justify-content: center;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        padding: 10px;
    }

    .nutrition-pill {
        border: none !important;
    }

    /* Page breaks */
    h2 {
        page-break-before: always;
    }
    
    .recipe-header-premium h2, .recipe-header-premium h1 {
        page-break-before: auto;
    }
}
