/**
 * DogBlog Print Styles
 * Optimized printing for blog posts and pages
 */

@media print {
    * {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Hide unnecessary elements */
    .site-header,
    .site-footer,
    .sidebar,
    .post-navigation,
    .comments-area,
    .widget,
    .menu-toggle,
    .mobile-navigation,
    .related-posts,
    nav,
    aside {
        display: none !important;
    }

    /* Main content */
    .site-content,
    .content-area,
    article {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Typography */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
        color: black;
        font-weight: bold;
    }

    h1 {
        font-size: 24pt;
        margin: 12pt 0;
    }

    h2 {
        font-size: 18pt;
        margin: 10pt 0;
    }

    h3 {
        font-size: 16pt;
        margin: 8pt 0;
    }

    p {
        margin: 0.5em 0;
        text-align: justify;
    }

    /* Links */
    a {
        color: black;
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-weight: normal;
        color: gray;
    }

    /* Images */
    img {
        max-width: 100%;
        page-break-inside: avoid;
        page-break-after: avoid;
        margin: 12pt 0;
    }

    figure {
        margin: 12pt 0;
        page-break-inside: avoid;
    }

    figcaption {
        font-size: 10pt;
        color: gray;
        margin-top: 4pt;
    }

    /* Lists */
    ul, ol {
        margin: 8pt 0;
        padding-left: 20pt;
    }

    li {
        page-break-inside: avoid;
        margin-bottom: 4pt;
    }

    /* Blockquotes */
    blockquote {
        border-left: 3px solid black;
        padding-left: 12pt;
        margin-left: 0;
        font-style: italic;
        page-break-inside: avoid;
    }

    /* Code blocks */
    pre, code {
        background: #f5f5f5;
        border: 1px solid #ccc;
        padding: 8pt;
        font-family: 'Courier New', monospace;
        font-size: 10pt;
        page-break-inside: avoid;
        overflow-x: auto;
    }

    /* Tables */
    table {
        width: 100%;
        border-collapse: collapse;
        margin: 12pt 0;
        page-break-inside: avoid;
    }

    td, th {
        border: 1px solid black;
        padding: 6pt;
        text-align: left;
    }

    th {
        background: #f5f5f5;
        font-weight: bold;
    }

    /* Author info */
    .author-box,
    .author-info {
        page-break-inside: avoid;
        margin-top: 24pt;
        padding-top: 12pt;
        border-top: 1pt solid black;
        font-size: 10pt;
    }

    /* Post meta */
    .post-meta,
    .entry-meta {
        font-size: 10pt;
        color: gray;
        margin-bottom: 12pt;
    }

    /* Embedded content */
    iframe,
    video,
    object,
    embed {
        display: none !important;
    }

    /* Page breaks */
    .page-break {
        page-break-after: always;
    }

    /* Print only content */
    .print-only {
        display: block !important;
    }

    .no-print {
        display: none !important;
    }
}
