/**
 * استایل‌های محافظت از کپی
 * این استایل‌ها از انتخاب و کپی محتوا جلوگیری می‌کنند
 * اما محتوا در HTML باقی می‌ماند و برای SEO قابل خواندن است
 */

/* غیرفعال کردن انتخاب متن در محتوای پست */
.blog-content-protected {
    position: relative;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* غیرفعال کردن انتخاب در تمام عناصر داخل محتوا */
.blog-content-protected * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none !important;
    cursor: default !important;
}

/* اما لینک‌ها باید قابل کلیک باشند */
.blog-content-protected a {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* تصاویر باید قابل نمایش باشند اما غیرقابل انتخاب */
.blog-content-protected img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* جلوگیری از انتخاب با ::selection */
.blog-content-protected ::selection {
    background: transparent !important;
    color: inherit !important;
}

.blog-content-protected ::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

/* اضافه کردن overlay نامرئی برای جلوگیری از انتخاب */
.content-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* استایل پیام هشدار */
.copy-protection-message {
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: center;
    white-space: nowrap;
}

/* برای موتورهای جستجو: محتوا باید قابل خواندن باشد */
@media print {
    .blog-content-protected {
        user-select: text !important;
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
    }
    
    .blog-content-protected * {
        user-select: text !important;
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
    }
    
    .content-protection-overlay {
        display: none !important;
    }
}

/* برای screen readers و موتورهای جستجو */
.blog-content-protected {
    /* محتوا در HTML باقی می‌ماند و قابل خواندن است */
    /* فقط انتخاب بصری غیرفعال می‌شود */
}

