/**
 * Print Stylesheet for AICO Gelato Theme
 *
 * @package AICO_Gelato
 * @since 1.0.0
 */

/* Hide non-essential elements when printing */
@media print {
    /* Hide navigation, sidebar, footer elements */
    .site-header,
    .main-navigation,
    .mobile-menu-toggle,
    .site-footer,
    .footer-navigation,
    .social-icons,
    .back-to-top,
    .skip-link,
    button,
    .btn,
    form,
    .search-form {
        display: none !important;
    }
    
    /* Optimize page for printing */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Page setup */
    @page {
        margin: 2cm;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    /* Typography */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
        font-weight: bold;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
    h4 { font-size: 14pt; }
    
    /* Links */
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
    
    /* Sections */
    .section {
        page-break-inside: avoid;
        margin-bottom: 2em;
    }
    
    /* Container */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Remove decorative elements */
    .hero-section,
    .section-alt,
    .timeline-section,
    .menu-section {
        background: white !important;
    }
    
    /* Table of contents for print */
    .print-toc {
        border-bottom: 2px solid #000;
        margin-bottom: 1em;
        padding-bottom: 0.5em;
    }
    
    /* Keep content readable */
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    /* Avoid page breaks in content */
    article,
    .product-card,
    .flavor-card {
        page-break-inside: avoid;
    }
    
    /* Print-only content */
    .print-only {
        display: block !important;
    }
    
    /* Hide screen-only content */
    .screen-only {
        display: none !important;
    }
}

