/* Print-Friendly Stylesheet for Bible Study Center */
/* Academic formatting for scholarly papers and sermon preparation */

@media print {
    /* Hide navigation and UI elements */
    .navbar,
    .nav-tabs,
    .btn-group,
    .btn:not(.no-print),
    .form-control,
    .form-select,
    #voiceToggle,
    .monastery-header,
    .toast-container,
    footer {
        display: none !important;
    }

    /* Page setup for academic printing */
    @page {
        size: letter;
        margin: 1in;
    }

    /* Reset colors for print */
    body {
        background: white !important;
        color: black !important;
        font-family: 'Times New Roman', Times, serif !important;
        font-size: 12pt !important;
        line-height: 1.6 !important;
    }

    /* Main content area */
    .container,
    .container-fluid {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Headers styling for academic papers */
    h1 {
        font-size: 18pt !important;
        font-weight: bold !important;
        text-align: center !important;
        margin-bottom: 24pt !important;
        page-break-after: avoid !important;
    }

    h2 {
        font-size: 14pt !important;
        font-weight: bold !important;
        margin-top: 18pt !important;
        margin-bottom: 12pt !important;
        page-break-after: avoid !important;
    }

    h3 {
        font-size: 12pt !important;
        font-weight: bold !important;
        margin-top: 12pt !important;
        margin-bottom: 6pt !important;
        page-break-after: avoid !important;
    }

    /* Bible verse formatting */
    .bible-verse,
    .verse-text {
        font-size: 11pt !important;
        line-height: 1.5 !important;
        margin: 12pt 0 !important;
        padding-left: 0.5in !important;
        font-style: italic !important;
    }

    /* Verse references */
    .verse-reference {
        font-weight: bold !important;
        font-style: normal !important;
        display: block !important;
        margin-bottom: 6pt !important;
    }

    /* Commentary sections */
    .commentary-text {
        text-align: justify !important;
        text-indent: 0.5in !important;
        margin: 12pt 0 !important;
    }

    /* Translation comparison table */
    .translation-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 12pt 0 !important;
    }

    .translation-table th,
    .translation-table td {
        border: 1px solid black !important;
        padding: 6pt !important;
        text-align: left !important;
    }

    .translation-table th {
        background-color: #f0f0f0 !important;
        font-weight: bold !important;
    }

    /* Ancient language text */
    .hebrew-text,
    .greek-text {
        font-size: 14pt !important;
        line-height: 1.8 !important;
        margin: 12pt 0 !important;
        direction: rtl !important; /* For Hebrew */
    }

    .greek-text {
        direction: ltr !important; /* Greek is left-to-right */
    }

    /* Cross-references and footnotes */
    .cross-reference {
        font-size: 9pt !important;
        vertical-align: super !important;
    }

    .footnote {
        font-size: 10pt !important;
        border-top: 1px solid black !important;
        padding-top: 6pt !important;
        margin-top: 12pt !important;
    }

    /* Page breaks */
    .chapter-section {
        page-break-before: always !important;
    }

    .verse-section {
        page-break-inside: avoid !important;
    }

    /* Maps and images */
    .map-container,
    .biblical-map {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid !important;
        margin: 12pt 0 !important;
    }

    /* Hide interactive elements */
    .leaflet-control-container,
    .map-controls {
        display: none !important;
    }

    /* Citation format */
    .citation {
        font-size: 10pt !important;
        text-indent: -0.5in !important;
        padding-left: 0.5in !important;
        margin: 6pt 0 !important;
    }

    /* Study notes section */
    .study-notes {
        border: 1px solid black !important;
        padding: 12pt !important;
        margin: 12pt 0 !important;
        background-color: #f9f9f9 !important;
    }

    /* Word study formatting */
    .word-study {
        margin: 12pt 0 !important;
    }

    .word-study .original-word {
        font-weight: bold !important;
        font-size: 13pt !important;
    }

    .word-study .transliteration {
        font-style: italic !important;
        color: #333 !important;
    }

    .word-study .definition {
        margin-left: 24pt !important;
        text-indent: -12pt !important;
    }

    /* Ensure content visibility */
    .tab-content,
    .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }

    /* Remove backgrounds and borders */
    .card,
    .bg-dark,
    .bg-secondary {
        background: white !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Links in print */
    a {
        color: black !important;
        text-decoration: none !important;
    }

    a[href]:after {
        content: " (" attr(href) ")" !important;
        font-size: 9pt !important;
        font-style: italic !important;
    }

    /* Copyright and attribution */
    .copyright-notice {
        font-size: 9pt !important;
        text-align: center !important;
        margin-top: 24pt !important;
        border-top: 1px solid black !important;
        padding-top: 12pt !important;
    }
}

/* Print button styling (visible on screen) */
.print-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #b8860b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.print-button:hover {
    background: #996f09;
}

/* Print preview mode class */
.print-preview {
    background: white !important;
    color: black !important;
    padding: 1in !important;
    max-width: 8.5in !important;
    margin: 0 auto !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.1) !important;
}