/**
 * Right Click Ban - Custom Modal Styles
 * Pro Feature: Custom Modal Popup
 */

/* Modal Overlay/Backdrop */
.rcb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.rcb-modal-overlay.rcb-modal-active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.rcb-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 1000000;
    max-width: 420px;
    width: 90%;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rcb-modal-overlay.rcb-modal-active .rcb-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.rcb-modal-header {
    padding: 24px 24px 0;
    text-align: center;
}

.rcb-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(238, 90, 90, 0.4);
}

.rcb-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modal Body */
.rcb-modal-body {
    padding: 16px 24px 24px;
    text-align: center;
}

.rcb-modal-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modal Footer */
.rcb-modal-footer {
    padding: 0 24px 24px;
    text-align: center;
}

.rcb-modal-btn {
    display: inline-block;
    padding: 14px 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.rcb-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.rcb-modal-btn:active {
    transform: translateY(0);
}

/* Close Button */
.rcb-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    transition: all 0.2s ease;
}

.rcb-modal-close:hover {
    background: #eee;
    color: #333;
}

/* ===========================================
   THEME-SPECIFIC OVERLAY BACKGROUNDS
   Each theme has its own unique backdrop
   =========================================== */

/* Light Theme Overlay (Default) - Soft and clean */
.rcb-modal-overlay.rcb-overlay-light {
    background: rgba(100, 100, 120, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Dark Theme Overlay - Deep and immersive */
.rcb-modal-overlay.rcb-overlay-dark {
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.9) 0%, rgba(30, 20, 50, 0.85) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Minimal Theme Overlay - Subtle and clean */
.rcb-modal-overlay.rcb-overlay-minimal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Glass Theme Overlay - Frosted aesthetic */
.rcb-modal-overlay.rcb-overlay-glass {
    background: linear-gradient(180deg, rgba(200, 200, 255, 0.3) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

/* Gradient Theme Overlay - Colorful purple/pink tint */
.rcb-modal-overlay.rcb-overlay-gradient {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 50%, rgba(246, 79, 89, 0.3) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Neon Theme Overlay - Cyberpunk glow effect */
.rcb-modal-overlay.rcb-overlay-neon {
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, rgba(0, 0, 0, 0.9) 70%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Sunset Theme Overlay - Warm gradient with orange/purple tones */
.rcb-modal-overlay.rcb-overlay-sunset {
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.3) 0%, rgba(45, 27, 61, 0.8) 50%, rgba(26, 26, 46, 0.9) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ===========================================
   THEME STYLES
   =========================================== */

/* Dark Theme */
.rcb-modal.rcb-modal-dark {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.rcb-modal.rcb-modal-dark .rcb-modal-title {
    color: #ffffff;
}

.rcb-modal.rcb-modal-dark .rcb-modal-message {
    color: #a0a0b8;
}

.rcb-modal.rcb-modal-dark .rcb-modal-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    box-shadow: 0 8px 24px rgba(238, 90, 90, 0.3);
}

.rcb-modal.rcb-modal-dark .rcb-modal-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.rcb-modal.rcb-modal-dark .rcb-modal-btn:hover {
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
}

.rcb-modal.rcb-modal-dark .rcb-modal-close {
    background: rgba(255, 255, 255, 0.08);
    color: #888;
}

.rcb-modal.rcb-modal-dark .rcb-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Minimal Theme */
.rcb-modal.rcb-modal-minimal {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.rcb-modal.rcb-modal-minimal .rcb-modal-title {
    color: #1a1a1a;
    font-weight: 500;
}

.rcb-modal.rcb-modal-minimal .rcb-modal-message {
    color: #555;
}

.rcb-modal.rcb-modal-minimal .rcb-modal-icon {
    background: #f8f8f8;
    color: #333;
    box-shadow: none;
    border: 1px solid #eee;
}

.rcb-modal.rcb-modal-minimal .rcb-modal-btn {
    background: #1a1a1a;
    border-radius: 4px;
    box-shadow: none;
}

.rcb-modal.rcb-modal-minimal .rcb-modal-btn:hover {
    background: #333;
    box-shadow: none;
    transform: none;
}

.rcb-modal.rcb-modal-minimal .rcb-modal-close {
    background: transparent;
    border: 1px solid #ddd;
}

.rcb-modal.rcb-modal-minimal .rcb-modal-close:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Glass Theme (True Glassmorphism) */
.rcb-modal.rcb-modal-glass {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.25) 100%);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Glass effect - before pseudo-element for shine/reflection */
.rcb-modal.rcb-modal-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0) 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.rcb-modal.rcb-modal-glass .rcb-modal-icon {
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.3) 0%,
            rgba(118, 75, 162, 0.3) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #5a6fd6;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.rcb-modal.rcb-modal-glass .rcb-modal-title {
    color: #2a2a4a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.rcb-modal.rcb-modal-glass .rcb-modal-message {
    color: rgba(40, 40, 70, 0.85);
}

/* Glass Button - True glass effect */
.rcb-modal.rcb-modal-glass .rcb-modal-btn {
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.4) 0%,
            rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(15px) saturate(1.5);
    -webkit-backdrop-filter: blur(15px) saturate(1.5);
    border: 1px solid rgba(102, 126, 234, 0.4);
    box-shadow:
        0 4px 20px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rcb-modal.rcb-modal-glass .rcb-modal-btn:hover {
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.55) 0%,
            rgba(118, 75, 162, 0.55) 100%);
    box-shadow:
        0 6px 25px rgba(102, 126, 234, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.rcb-modal.rcb-modal-glass .rcb-modal-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.5) 0%,
            rgba(118, 75, 162, 0.5) 100%);
}

.rcb-modal.rcb-modal-glass .rcb-modal-close {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.rcb-modal.rcb-modal-glass .rcb-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Gradient Theme */
.rcb-modal.rcb-modal-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f64f59 100%);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.rcb-modal.rcb-modal-gradient .rcb-modal-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rcb-modal.rcb-modal-gradient .rcb-modal-message {
    color: rgba(255, 255, 255, 0.9);
}

.rcb-modal.rcb-modal-gradient .rcb-modal-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rcb-modal.rcb-modal-gradient .rcb-modal-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #764ba2;
    font-weight: 700;
}

.rcb-modal.rcb-modal-gradient .rcb-modal-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.rcb-modal.rcb-modal-gradient .rcb-modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rcb-modal.rcb-modal-gradient .rcb-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Neon Theme */
.rcb-modal.rcb-modal-neon {
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f18 100%);
    border: 2px solid #00ff88;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.25),
        0 0 80px rgba(0, 255, 136, 0.1),
        inset 0 0 40px rgba(0, 255, 136, 0.03);
    border-radius: 16px;
}

.rcb-modal.rcb-modal-neon .rcb-modal-title {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.7), 0 0 30px rgba(0, 255, 136, 0.3);
    letter-spacing: 1px;
}

.rcb-modal.rcb-modal-neon .rcb-modal-message {
    color: #aabbcc;
}

.rcb-modal.rcb-modal-neon .rcb-modal-icon {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4), inset 0 0 15px rgba(0, 255, 136, 0.1);
}

.rcb-modal.rcb-modal-neon .rcb-modal-btn {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.rcb-modal.rcb-modal-neon .rcb-modal-btn:hover {
    background: #00ff88;
    color: #0a0a0f;
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.7);
    text-shadow: none;
}

.rcb-modal.rcb-modal-neon .rcb-modal-close {
    background: transparent;
    border: 1px solid #333;
    color: #555;
}

.rcb-modal.rcb-modal-neon .rcb-modal-close:hover {
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Sunset Theme */
.rcb-modal.rcb-modal-sunset {
    background: linear-gradient(180deg, #2d1b3d 0%, #1a1a2e 50%, #0f0f1a 100%);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(45, 27, 61, 0.5),
        0 0 80px rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.rcb-modal.rcb-modal-sunset .rcb-modal-title {
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.rcb-modal.rcb-modal-sunset .rcb-modal-message {
    color: #ccbbdd;
}

.rcb-modal.rcb-modal-sunset .rcb-modal-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(247, 147, 30, 0.5);
}

.rcb-modal.rcb-modal-sunset .rcb-modal-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 4px 20px rgba(247, 147, 30, 0.4);
}

.rcb-modal.rcb-modal-sunset .rcb-modal-btn:hover {
    box-shadow: 0 6px 30px rgba(247, 147, 30, 0.6);
    transform: translateY(-2px);
}

.rcb-modal.rcb-modal-sunset .rcb-modal-close {
    background: rgba(255, 215, 0, 0.1);
    color: #aa9988;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.rcb-modal.rcb-modal-sunset .rcb-modal-close:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* Responsive */
@media (max-width: 480px) {
    .rcb-modal {
        max-width: 95%;
        padding: 0;
    }

    .rcb-modal-header {
        padding: 20px 20px 0;
    }

    .rcb-modal-body {
        padding: 12px 20px 20px;
    }

    .rcb-modal-footer {
        padding: 0 20px 20px;
    }

    .rcb-modal-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .rcb-modal-title {
        font-size: 20px;
    }

    .rcb-modal-btn {
        padding: 12px 36px;
        font-size: 14px;
    }
}

/* =========================================
   Animation Variants
   ========================================= */

/* Slide Animation - slides up from bottom */
.rcb-modal.rcb-modal-slide {
    transform: translate(-50%, 100%);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.rcb-modal-overlay.rcb-modal-active .rcb-modal.rcb-modal-slide {
    transform: translate(-50%, -50%);
}

/* Bounce Animation - bouncy spring effect */
.rcb-modal.rcb-modal-bounce {
    transform: translate(-50%, -50%) scale(0.3);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.rcb-modal-overlay.rcb-modal-active .rcb-modal.rcb-modal-bounce {
    transform: translate(-50%, -50%) scale(1);
}

/* Zoom Animation - zoom in with slight rotation */
.rcb-modal.rcb-modal-zoom {
    transform: translate(-50%, -50%) scale(0) rotate(-10deg);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rcb-modal-overlay.rcb-modal-active .rcb-modal.rcb-modal-zoom {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}