/* ETERNITUM - Print Styles for PDF Export */

@media print {

    /* Hide non-printable elements */
    .navbar,
    .sticky-save-bar,
    footer,
    .btn,
    button,
    .toast-container,
    .tribute-form,
    .share-button,
    .lightbox,
    .no-print,
    /* Forms and interactive elements */
    form,
    .form-control,
    .form-select,
    input,
    textarea,
    select,
    /* Memorial-specific */
    .memorial-actions,
    .tribute-options,
    .memorial-btn,
    /* Anniversary subscription */
    [style*="border: 1px dashed"],
    .input-group,
    .alert,
    /* Links and sharing */
    a[href^="javascript"],
    .dropdown,
    .modal,
    /* Tribute section - entire right sidebar */
    #tribute-form,
    .tribute-list,
    .tribute-item,
    .tribute-counters,
    .col-lg-5 {
        display: none !important;
    }

    /* But show QR code */
    .memorial-qr {
        display: block !important;
    }

    /* And show stats without the tribute count becoming confusing */
    .memorial-stats {
        display: flex !important;
    }

    /* Reset backgrounds */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Memorial Hero */
    .memorial-hero {
        background: white !important;
        color: black !important;
        padding: 20pt 0 !important;
        min-height: auto !important;
        page-break-after: avoid;
    }

    .memorial-hero h1 {
        color: #2C3E50 !important;
        font-size: 24pt !important;
    }

    .memorial-hero .epitaph {
        color: #666 !important;
        font-style: italic;
    }

    .memorial-avatar {
        width: 150px !important;
        height: 150px !important;
        border: 3px solid #D4AF37 !important;
        box-shadow: none !important;
    }

    /* Dates */
    .dates-display {
        color: #333 !important;
        font-size: 14pt;
    }

    /* Biography section */
    .biography-section {
        page-break-inside: avoid;
        margin-top: 20pt;
        padding: 15pt;
        border: 1px solid #ddd;
        border-radius: 8pt;
    }

    .biography-section h3 {
        color: #D4AF37;
        border-bottom: 2px solid #D4AF37;
        padding-bottom: 5pt;
    }

    /* Timeline */
    .timeline-section {
        page-break-inside: avoid;
        margin-top: 20pt;
    }

    .timeline-event {
        border-left: 2px solid #D4AF37;
        padding-left: 15pt;
        margin-bottom: 10pt;
    }

    /* Photo gallery */
    .photo-gallery {
        page-break-before: always;
        margin-top: 20pt;
    }

    .photo-gallery img {
        max-width: 200pt;
        max-height: 200pt;
        margin: 5pt;
        border: 1px solid #ddd;
    }

    /* Tributes */
    .tributes-section {
        page-break-before: always;
        margin-top: 20pt;
    }

    .tribute-card {
        page-break-inside: avoid;
        border: 1px solid #eee;
        padding: 10pt;
        margin-bottom: 10pt;
        border-radius: 4pt;
    }

    /* Cards reset */
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    /* Links */
    a {
        color: #333 !important;
        text-decoration: none !important;
    }

    a[href]:after {
        content: none !important;
    }

    /* Page settings */
    @page {
        size: A4;
        margin: 2cm;
    }

    /* Header for print */
    .print-header {
        display: block !important;
        text-align: center;
        border-bottom: 2px solid #D4AF37;
        padding-bottom: 10pt;
        margin-bottom: 20pt;
    }

    .print-header h1 {
        font-size: 28pt;
        color: #2C3E50;
        margin: 0;
    }

    .print-header .subtitle {
        color: #666;
        font-size: 12pt;
    }

    /* Footer for print */
    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 9pt;
        color: #999;
        padding: 10pt 0;
        border-top: 1px solid #ddd;
    }
}

/* Hide print-only elements on screen */
@media screen {

    .print-header,
    .print-footer,
    .print-only {
        display: none !important;
    }
}