/* Print-friendly styles for GabForge website */
@media print {
    /* Hide non-essential elements */
    nav,
    footer,
    #mobile-menu,
    #mobile-menu-btn,
    #flash-messages,
    #cookie-consent,
    .slider-nav,
    button[aria-label="Toggle theme"],
    .no-print {
        display: none !important;
    }

    /* Reset backgrounds and colors for ink saving */
    body {
        background: white !important;
        color: #1a1a1a !important;
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Remove dark mode */
    .dark * {
        background: transparent !important;
        color: #1a1a1a !important;
        border-color: #ccc !important;
    }

    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }

    p, li {
        orphans: 3;
        widows: 3;
    }

    /* Show link URLs */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="/"]::after {
        content: " (https://gabforge.ai" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    /* Don't print URL for nav/button links */
    nav a::after,
    footer a::after,
    .btn::after,
    button::after {
        content: none !important;
    }

    /* Remove box shadows and rounded corners */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Ensure images print correctly */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Code blocks */
    pre, code {
        border: 1px solid #ddd !important;
        background: #f5f5f5 !important;
        color: #333 !important;
        page-break-inside: avoid;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    /* Page margins */
    @page {
        margin: 2cm;
    }

    /* Main content takes full width */
    main {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
