/* Way2Shaadi Print Stylesheet with Watermarks */

@media print {
    /* Hide non-essential elements */
    .no-print, 
    .navbar, 
    .footer, 
    .btn, 
    .alert-dismissible .btn-close,
    .sidebar,
    .navigation,
    .header-actions,
    .social-links,
    .action-buttons,
    .print-controls,
    .floating-widget,
    nav,
    .pagination,
    .dropdown-menu,
    .modal,
    .toast {
        display: none !important;
    }
    
    /* Page setup */
    @page {
        size: A4;
        margin: 1.5cm;
    }
    
    /* Main watermark - large central */
    body::before {
        content: "Way2Shaadi" !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) rotate(-45deg) !important;
        font-size: 140px !important;
        font-weight: 900 !important;
        color: rgba(233, 30, 99, 0.03) !important;
        z-index: -1 !important;
        pointer-events: none !important;
        white-space: nowrap !important;
        font-family: 'Arial Black', Arial, sans-serif !important;
        text-transform: uppercase !important;
        letter-spacing: 5px !important;
    }
    
    /* Pattern watermark - repeated background */
    body::after {
        content: "" !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: -2 !important;
        pointer-events: none !important;
        opacity: 0.02 !important;
        background-repeat: repeat !important;
        background-size: 300px 200px !important;
        background-position: 0 0, 150px 100px !important;
        background-image: 
            url("data:image/svg+xml,%3Csvg width='300' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50%25' y='30%25' font-family='Arial' font-size='14' font-weight='bold' text-anchor='middle' dy='.3em' transform='rotate(-20 150 60)' fill='%23e91e63' opacity='0.15'%3EWay2Shaadi.com%3C/text%3E%3Ctext x='50%25' y='70%25' font-family='Arial' font-size='12' text-anchor='middle' dy='.3em' transform='rotate(-20 150 140)' fill='%23e91e63' opacity='0.1'%3EMatrimonial%3C/text%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg width='300' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50%25' y='50%25' font-family='Arial' font-size='16' font-weight='bold' text-anchor='middle' dy='.3em' transform='rotate(-25 150 100)' fill='%23e91e63' opacity='0.08'%3EWay2Shaadi%3C/text%3E%3C/svg%3E") !important;
    }
    
    /* Ensure content readability */
    .container, 
    .container-fluid, 
    main, 
    article, 
    .content,
    .biodata-preview,
    .profile-content {
        position: relative !important;
        z-index: 1 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 20px !important;
        margin: 10px 0 !important;
    }
    
    /* Typography adjustments for print */
    body {
        font-size: 12pt !important;
        line-height: 1.4 !important;
        color: #000 !important;
        background: white !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid !important;
    }
    
    h1 {
        font-size: 18pt !important;
        border-bottom: 2px solid #e91e63 !important;
        padding-bottom: 5px !important;
    }
    
    h2 {
        font-size: 16pt !important;
        margin-top: 20px !important;
    }
    
    h3 {
        font-size: 14pt !important;
        margin-top: 15px !important;
    }
    
    /* Tables */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 10px 0 !important;
    }
    
    th, td {
        border: 1px solid #ddd !important;
        padding: 8px !important;
        text-align: left !important;
    }
    
    th {
        background-color: #f8f9fa !important;
        font-weight: bold !important;
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
        border: 1px solid #ddd !important;
        padding: 2px !important;
    }
    
    /* Page breaks */
    .page-break {
        page-break-before: always !important;
    }
    
    .avoid-break {
        page-break-inside: avoid !important;
    }
    
    /* Print-specific branding */
    .print-header {
        display: block !important;
        text-align: center !important;
        margin-bottom: 30px !important;
        padding-bottom: 10px !important;
        border-bottom: 3px solid #e91e63 !important;
    }
    
    .print-footer {
        display: block !important;
        text-align: center !important;
        margin-top: 30px !important;
        padding-top: 10px !important;
        border-top: 1px solid #ddd !important;
        font-size: 10pt !important;
        color: #666 !important;
    }
    
    /* Biodata specific print styles */
    .biodata-traditional,
    .biodata-modern,
    .biodata-minimal {
        background: white !important;
        box-shadow: none !important;
        border: 2px solid #e91e63 !important;
        margin: 0 !important;
        padding: 30px !important;
    }
    
    /* Profile specific print styles */
    .profile-photo {
        max-width: 200px !important;
        max-height: 250px !important;
        border: 2px solid #e91e63 !important;
        padding: 5px !important;
    }
}

/* Print button styles (visible on screen) */
@media screen {
    .print-btn {
        background: linear-gradient(135deg, #e91e63, #9c27b0) !important;
        border: none !important;
        color: white !important;
        padding: 10px 20px !important;
        border-radius: 5px !important;
        font-weight: bold !important;
        transition: all 0.3s ease !important;
    }
    
    .print-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3) !important;
    }
    
    .print-btn i {
        margin-right: 8px !important;
    }
}