/**
 * WP Stop IDM — Styles
 * Warning overlay & admin settings styles
 */

/* =============================================================
 * Warning Overlay (Frontend)
 * ============================================================= */

.wpsidm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: wpsidm-fadeIn 0.4s ease-out;
}

@keyframes wpsidm-fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wpsidm-overlay-content {
    text-align: center;
    padding: 30px 40px;
    max-width: 90%;
}

.wpsidm-overlay-icon {
    color: #ff4757;
    margin-bottom: 16px;
    animation: wpsidm-pulse 2s ease-in-out infinite;
}

.wpsidm-overlay-icon svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 0 12px rgba(255, 71, 87, 0.5));
}

@keyframes wpsidm-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.wpsidm-overlay-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, 'Cairo', 'Tajawal', sans-serif;
}

/* =============================================================
 * Black Overlay (Visibility / DevTools / Screenshot)
 * ============================================================= */

.wpsidm-black-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 99998;
    border-radius: 4px;
    animation: wpsidm-fadeIn 0.2s ease-out;
}

/* =============================================================
 * Dynamic Watermark
 * ============================================================= */

.wpsidm-watermark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    pointer-events: none;
    overflow: hidden;
    border-radius: 4px;
}

.wpsidm-wm-line {
    position: absolute;
    color: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
    white-space: nowrap;
    transform: rotate(-25deg);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    animation: wpsidm-wmDrift 20s linear infinite alternate;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.03);
    letter-spacing: 2px;
}

.wpsidm-wm-line:nth-child(2) {
    animation-delay: -4s;
    animation-duration: 25s;
}

.wpsidm-wm-line:nth-child(3) {
    animation-delay: -8s;
    animation-duration: 18s;
}

.wpsidm-wm-line:nth-child(4) {
    animation-delay: -12s;
    animation-duration: 22s;
}

.wpsidm-wm-line:nth-child(5) {
    animation-delay: -16s;
    animation-duration: 30s;
}

@keyframes wpsidm-wmDrift {
    0% {
        transform: rotate(-25deg) translateX(0) translateY(0);
    }

    100% {
        transform: rotate(-25deg) translateX(20px) translateY(10px);
    }
}

/* =============================================================
 * Screen Recording Overlay
 * ============================================================= */

.wpsidm-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: wpsidm-fadeIn 0.4s ease-out;
}

.wpsidm-screen-icon {
    color: #ff6b35;
}

.wpsidm-screen-icon svg {
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.5));
}

/* =============================================================
 * Admin Settings Page
 * ============================================================= */

.wpsidm-admin-wrap {
    max-width: 800px;
}

.wpsidm-admin-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8a 100%);
    color: #fff;
    padding: 24px 30px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.3);
}

.wpsidm-admin-header h1 {
    color: #fff;
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.wpsidm-admin-desc {
    color: rgba(255, 255, 255, 0.85);
    margin: 8px 0 0;
    font-size: 14px;
}

.wpsidm-settings-form {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.wpsidm-settings-form h2 {
    font-size: 18px;
    color: #1e3a5f;
    border-bottom: 2px solid #e8f0fe;
    padding-bottom: 10px;
    margin-top: 20px;
}

.wpsidm-settings-form .form-table th {
    padding: 16px 10px 16px 0;
    font-weight: 500;
    color: #333;
}

.wpsidm-settings-form .form-table td {
    padding: 12px 10px;
}

/* Toggle Switch */
.wpsidm-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.wpsidm-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wpsidm-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpsidm-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wpsidm-toggle input:checked+.wpsidm-toggle-slider {
    background-color: #2c5f8a;
    box-shadow: 0 0 8px rgba(44, 95, 138, 0.3);
}

.wpsidm-toggle input:checked+.wpsidm-toggle-slider::before {
    transform: translateX(22px);
}

.wpsidm-toggle input:focus+.wpsidm-toggle-slider {
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.2);
}

/* Info Card */
.wpsidm-info-card {
    background: #f8fafc;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.wpsidm-info-card h3 {
    color: #1e3a5f;
    margin: 0 0 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpsidm-info-table {
    width: 100%;
    border-collapse: collapse;
}

.wpsidm-info-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #555;
    vertical-align: top;
}

.wpsidm-info-table tr:last-child td {
    border-bottom: none;
}

.wpsidm-info-table td:first-child {
    width: 120px;
    white-space: nowrap;
    color: #1e3a5f;
}

/* Submit Button Enhancement */
.wpsidm-settings-form .submit input[type="submit"] {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8a 100%);
    border: none;
    color: #fff;
    padding: 10px 28px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.wpsidm-settings-form .submit input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.4);
}

/* Responsive */
@media (max-width: 782px) {
    .wpsidm-admin-header {
        padding: 16px 20px;
    }

    .wpsidm-settings-form {
        padding: 16px 20px;
    }

    .wpsidm-overlay-content {
        padding: 20px;
    }

    .wpsidm-overlay-text {
        font-size: 14px;
    }
}