/**
 * Simple Content Protector - Public CSS
 * Enhanced protection - only applies when enabled
 * @package Simple_Content_Protector
 * @version 2.0.0
 */

/* ==========================================
   NOTE: User selection is controlled by JavaScript
   This CSS only handles visual aspects
   ========================================== */

/* Allow Selection in Interactive Elements - Always Allow */
input,
textarea,
button,
select,
a,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text !important;
}

/* Buttons and links should be clickable */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a {
    cursor: pointer !important;
}

/* ==========================================
   Premium Alert/Notification Design
   ========================================== */
.scp-protection-alert {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    z-index: 999999999;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    max-width: 450px;
    animation: scpAlertSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes scpAlertSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scpAlertSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.scp-protection-alert.scp-alert-hiding {
    animation: scpAlertSlideOut 0.3s ease-in-out;
}

.scp-protection-alert-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.scp-protection-alert-content {
    flex: 1;
}

.scp-protection-alert-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.scp-protection-alert-message {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.scp-protection-alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.scp-protection-alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ==========================================
   Focus States for Accessibility
   ========================================== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(74, 144, 226, 0.5) !important;
    outline-offset: 2px;
}

/* ==========================================
   Print Protection (Media Query) - Only when enabled by JS
   ========================================== */
@media print {
    /* This will be controlled by JavaScript */
}

/* ==========================================
   Image Styles
   ========================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   Responsive Alert Design
   ========================================== */
@media (max-width: 768px) {
    .scp-protection-alert {
        top: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
        max-width: none;
        padding: 18px 24px;
    }
}

/* ==========================================
   IFRAME Protection
   ========================================== */
iframe {
    /* This will be controlled by JavaScript */
}
