/**
 * UWONET Content Protection CSS
 * Prevents text selection and image copying
 */

/* Disable text selection globally */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in form inputs (important for usability) */
input,
textarea,
[contenteditable="true"],
.allow-select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Protect images */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Allow clicking on images that are links */
a img {
    pointer-events: auto;
}

/* Disable selection on headings and important text */
h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Add copyright notice to printed pages */
@media print {
    body::after {
        content: "© UWONET - Uganda Water and Sanitation NGO Network. All Rights Reserved. Unauthorized reproduction prohibited.";
        display: block;
        text-align: center;
        font-size: 12px;
        color: #666;
        margin-top: 30px;
        padding: 20px;
        border-top: 1px solid #ddd;
    }
    
    /* Optionally hide sensitive content when printing */
    /* .sensitive-content {
        display: none;
    } */
}

/* Invisible watermark overlay (optional) */
.uwonet-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 120px;
    color: rgba(0, 0, 0, 0.03);
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    white-space: nowrap;
    font-weight: bold;
}

/* Blur effect when inspect tools detected (optional) */
.blur-content {
    filter: blur(5px);
    transition: filter 0.3s;
}
