/**
 * Content protection notice — polite popup when right-click / inspector is blocked.
 *
 * @package Manjits_2025
 * @since   1.2.9
 */

.manjits-protection-notice {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.manjits-protection-notice.is-visible {
    opacity: 1;
    visibility: visible;
}

.manjits-protection-notice__panel {
    position: relative;
    width: min(100%, 420px);
    padding: 1.75rem 1.5rem 1.35rem;
    border-radius: 18px;
    text-align: center;
    color: #1f2937;
    background: linear-gradient(165deg, #fffdf8 0%, #f3efe4 48%, #e8e0d0 100%);
    border: 1px solid rgba(212, 168, 83, 0.45);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -3px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.manjits-protection-notice.is-visible .manjits-protection-notice__panel {
    transform: translateY(0) scale(1);
}

.manjits-protection-notice--funny .manjits-protection-notice__panel {
    background: linear-gradient(165deg, #fffbeb 0%, #fef3c7 42%, #fde68a 100%);
    border-color: rgba(245, 158, 11, 0.55);
}

.manjits-protection-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    font-size: 1.65rem;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #ececec 100%);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.manjits-protection-notice--funny .manjits-protection-notice__icon {
    animation: manjits-protection-wiggle 0.55s ease-in-out;
}

@keyframes manjits-protection-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

.manjits-protection-notice__title {
    margin: 0 0 0.55rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #78350f;
    letter-spacing: 0.01em;
}

.manjits-protection-notice__message {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #4b5563;
}

.manjits-protection-notice__close {
    margin-top: 1.15rem;
    padding: 0.62rem 1.35rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1f2937;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    box-shadow:
        0 4px 0 #92400e,
        0 8px 18px rgba(146, 64, 14, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.manjits-protection-notice__close:hover,
.manjits-protection-notice__close:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        0 5px 0 #92400e,
        0 10px 22px rgba(146, 64, 14, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    outline: none;
}

.manjits-protection-notice__close:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #92400e,
        0 4px 10px rgba(146, 64, 14, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
