/* استایل‌های افزونه محافظ محتوا */

.sd-watermark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
    user-select: none;
    display: none; /* با جاوااسکریپت فعال می‌شود */
}

.sd-watermark-overlay .sd-wm-row {
    white-space: nowrap;
    transform: rotate(-30deg);
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: #000;
    margin: 40px 0;
    text-align: center;
}

/* غیرفعال کردن انتخاب متن و منوی راست‌کلیک */
body.sd-no-copy,
body.sd-no-copy * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

body.sd-no-copy img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* بلور شدن محتوا هنگام خروج از تب/اپ */
body.sd-blurred #wpcontent,
body.sd-blurred #page,
body.sd-blurred #content,
body.sd-blurred main,
body.sd-blurred body > * {
    filter: blur(var(--sd-blur-amount, 20px));
    transition: filter 0.15s ease-in-out;
}

/* پیام هشدار */
.sd-warning-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: 420px;
    margin: 0 auto;
    background: #1d2327;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
    z-index: 9999999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    direction: rtl;
    text-align: right;
    animation: sd-fade-in 0.4s ease;
}

.sd-warning-toast .sd-close-btn {
    position: absolute;
    top: 6px;
    left: 10px;
    cursor: pointer;
    opacity: 0.7;
    font-size: 16px;
    background: none;
    border: none;
    color: #fff;
}

@keyframes sd-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
