﻿/* ========================================================
   NSFW IMAGE BLUR & OVERLAY
   ======================================================== */
.nsfw-locked {
    position: relative;
    overflow: hidden;
}

    .nsfw-locked img {
        filter: blur(25px) saturate(1.5);
        transform: scale(1.1); /* Phóng to nhẹ để che viền mờ */
        transition: filter 0.5s ease, transform 0.5s ease;
    }

/* Lớp phủ đen lên ảnh */
.nsfw-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 3, 28, 0.65); /* Dùng màu var(--background-body) phối trong suốt */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.nsfw-overlay-content i {
    font-size: 32px;
    color: var(--main);
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 0 15px rgba(123, 97, 255, 0.5);
}

.nsfw-overlay-content span {
    color: var(--heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font2);
    text-transform: uppercase;
}

/* ========================================================
   NSFW DIALOG (MAGNIFIC POPUP)
   ======================================================== */
.nsfw-dialog-container {
    background: var(--background-item);
    max-width: 500px;
    margin: 40px auto;
    position: relative;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

    .nsfw-dialog-container h3 {
        color: var(--heading);
        margin-bottom: 15px;
        font-size: 24px;
    }

    .nsfw-dialog-container p {
        color: var(--body);
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

.nsfw-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

    .nsfw-actions button {
        border-radius: 8px;
        padding: 0 25px;
        height: 45px;
        font-size: 15px;
        font-weight: 600;
        text-transform: uppercase;
    }
.nsfw-page-locked {
    filter: blur(25px) saturate(1.2);
    pointer-events: none; /* Không cho click hay bôi đen chữ */
    user-select: none;
    height: 100vh; /* Ngăn cuộn trang xuống dưới */
    overflow: hidden;
}

@media (max-width: 767.98px) {

    /* 1. TỐI ƯU LỚP PHỦ CẢNH BÁO TRÊN ẢNH */
    .nsfw-overlay-content i {
        font-size: 24px; /* Icon cảnh báo nhỏ lại */
        margin-bottom: 5px;
    }

    .nsfw-overlay-content span {
        font-size: 11px; /* Chữ nhỏ lại để vừa với khung ảnh 2 cột trên mobile */
        line-height: 1.3;
    }

    /* 2. TỐI ƯU DIALOG (POPUP ĐIỀU KHOẢN) */
    .nsfw-dialog-container {
        margin: 15px auto;
        padding: 30px 20px; /* Giảm padding 2 bên */
        width: calc(100% - 30px); /* Cách lề trái/phải 15px */
    }

        .nsfw-dialog-container > i {
            font-size: 45px !important; /* Thu nhỏ icon dấu chấm than to ở trên cùng */
            margin-bottom: 15px !important;
        }

        .nsfw-dialog-container h3 {
            font-size: 20px;
            margin-bottom: 10px;
        }

        .nsfw-dialog-container p {
            font-size: 14px;
            margin-bottom: 25px;
        }

    /* 3. XẾP DỌC CÁC NÚT BẤM (CHỐNG BỊ KẸP) */
    .nsfw-actions {
        flex-direction: column-reverse; /* Đảo dọc: Nút "Tôi đồng ý" ở trên, "Từ chối" ở dưới */
        gap: 10px;
    }

        .nsfw-actions button {
            width: 100%; /* Nút trải dài full màn hình cho ngón tay dễ chạm */
            height: 44px;
            font-size: 13px;
            padding: 0;
        }
}