/**
 * Print Stylesheet for King Solomon Scrolls Theme
 * Optimized for clean, readable prints
 */

@media print {
    /* Hide non-essential elements */
    header.site-header,
    .site-navigation,
    .header-search,
    footer.site-footer,
    .sidebar,
    .comments-section,
    .inline-email-capture,
    .newsletter-popup,
    .social-share-buttons,
    .breadcrumbs,
    .post-navigation,
    .related-posts,
    .author-box,
    .table-of-contents,
    .widget,
    button,
    .btn,
    iframe,
    video,
    audio {
        display: none !important;
    }

    /* Reset colors for print */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        margin: 0;
        padding: 20px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 12pt;
        line-height: 1.6;
    }

    /* Page breaks */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    img {
        page-break-inside: avoid;
        page-break-after: avoid;
    }

    table, pre, blockquote {
        page-break-inside: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    /* Article header */
    .entry-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 2px solid #000;
    }

    .entry-title {
        font-size: 24pt;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .entry-meta {
        font-size: 10pt;
        color: #666 !important;
    }

    /* Content styling */
    .entry-content {
        font-size: 12pt;
        line-height: 1.8;
    }

    .entry-content h2 {
        font-size: 18pt;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .entry-content h3 {
        font-size: 14pt;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .entry-content p {
        margin-bottom: 15px;
    }

    .entry-content a {
        text-decoration: underline;
    }

    /* Show URLs after links */
    .entry-content a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666 !important;
    }

    /* Images */
    .entry-content img {
        max-width: 100% !important;
        height: auto !important;
        margin: 15px 0;
    }

    /* Blockquotes */
    blockquote {
        border-left: 3px solid #000;
        padding-left: 15px;
        margin: 20px 0;
        font-style: italic;
    }

    /* Code blocks */
    pre, code {
        border: 1px solid #000;
        padding: 5px;
        font-family: "Courier New", monospace;
        font-size: 10pt;
        background: #f5f5f5 !important;
    }

    /* Lists */
    ul, ol {
        margin: 15px 0;
        padding-left: 30px;
    }

    li {
        margin-bottom: 8px;
    }

    /* Add site URL at bottom */
    .entry-footer:after {
        content: "Source: King Solomon Scrolls - https://yoursite.com";
        display: block;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #000;
        font-size: 10pt;
        text-align: center;
    }

    /* Series badge */
    .series-badge {
        display: inline-block !important;
        border: 2px solid #000;
        padding: 5px 10px;
        margin-bottom: 20px;
        font-size: 10pt;
    }

    /* Value statement */
    .value-statement {
        border: 2px solid #000;
        padding: 15px;
        margin: 20px 0;
        font-weight: bold;
    }
}

/* Print button (hide when printing) */
@media print {
    .print-button {
        display: none !important;
    }
}

@media screen {
    .print-button {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: linear-gradient(135deg, #D4AF37, #C5A572);
        color: #0B1020;
        padding: 15px 25px;
        border-radius: 50px;
        border: none;
        cursor: pointer;
        font-weight: 700;
        font-size: 14px;
        box-shadow: 0 8px 20px rgba(212,175,55,.3);
        transition: all 0.3s;
        z-index: 1000;
    }

    .print-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(212,175,55,.45);
    }

    .print-button svg {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        vertical-align: middle;
    }
}
