/**
 * DevTools Warning Overlay Styles
 * Màu sắc nguy hiểm để cảnh báo Self-XSS
 *
 * @package Ngu_Phap_Tieng_Nhat
 * @since 1.3.5
 */

/* Overlay toàn màn hình */
.nptn-devtools-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nptnWarningFadeIn 0.3s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes nptnWarningFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Content box */
.nptn-devtools-warning-content {
    background: linear-gradient(135deg, #fff 0%, #ffebee 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 100px rgba(255, 0, 0, 0.5),
                inset 0 0 50px rgba(255, 0, 0, 0.1);
    border: 5px solid #ff0000;
    animation: nptnWarningPulse 2s infinite, nptnWarningShake 0.5s ease-in-out;
    position: relative;
}

@keyframes nptnWarningPulse {
    0%, 100% {
        box-shadow: 0 0 100px rgba(255, 0, 0, 0.5),
                    inset 0 0 50px rgba(255, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 150px rgba(255, 0, 0, 0.8),
                    inset 0 0 80px rgba(255, 0, 0, 0.2);
    }
}

@keyframes nptnWarningShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Warning icon */
.nptn-warning-icon {
    font-size: 100px;
    line-height: 1;
    margin-bottom: 20px;
    animation: nptnWarningRotate 3s infinite;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

@keyframes nptnWarningRotate {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.1); }
    50% { transform: rotate(-5deg) scale(1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

/* Title */
.nptn-warning-title {
    font-size: 32px;
    font-weight: 900;
    color: #ff0000;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow:
        3px 3px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        0 0 30px rgba(255, 0, 0, 0.8);
    animation: nptnWarningBlink 1s infinite;
}

@keyframes nptnWarningBlink {
    0%, 49%, 51%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Message */
.nptn-warning-message {
    text-align: center;
    margin: 20px 0;
}

.nptn-warning-main {
    font-size: 24px;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
    color: white;
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: 3px solid #c62828;
    line-height: 1.5;
}

/* Close button */
.nptn-warning-close {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.nptn-warning-close:hover {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

.nptn-warning-close:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
    .nptn-devtools-warning-content {
        padding: 30px 20px;
        max-width: 95%;
    }

    .nptn-warning-icon {
        font-size: 70px;
    }

    .nptn-warning-title {
        font-size: 24px;
    }

    .nptn-warning-main {
        font-size: 18px;
        padding: 15px;
    }

    .nptn-warning-close {
        padding: 12px 30px;
        font-size: 16px;
    }
}
