/* Copy-Paste Protection Styles */

/* Disable text selection globally */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection only in specific input areas */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Prevent drag and drop of images */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Re-enable pointer events for interactive images */
img.interactive, .post-card img, .all-post-card img {
    pointer-events: auto;
}

/* Disable text highlighting */
::selection {
    background: transparent;
}

::-moz-selection {
    background: transparent;
}

/* Hide content when developer tools are detected */
.dev-tools-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    color: #fff;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.dev-tools-warning.active {
    display: flex;
}

.dev-tools-warning-content {
    text-align: center;
    padding: 2rem;
}

/* Blur content when copy attempt is detected */
.content-protected {
    filter: blur(5px);
    pointer-events: none;
}

/* Disable console access indicator */
.console-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc2626;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    z-index: 9999;
    font-size: 12px;
}

/* Print protection */
@media print {
    body {
        display: none !important;
    }
    
    .print-warning {
        display: block !important;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #000;
        font-size: 24px;
        text-align: center;
    }
}

.print-warning {
    display: none;
}

/* Screenshot protection overlay (makes content harder to screenshot) */
.screenshot-protection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: transparent;
    opacity: 0;
}

/* Watermark overlay */
.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.05;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(0, 0, 0, 0.1) 50px,
        rgba(0, 0, 0, 0.1) 100px
    );
    background-size: 200px 200px;
}

/* Additional protection for code blocks */
code, pre {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Disable image context menu */
img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide scrollbar to prevent content estimation */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}
