/* Jilo Viral AdBlock Popup Styles */

.jiloviral-adblock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

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

.jiloviral-adblock-popup {
    background: #181818;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.jiloviral-popup-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #282828;
}

.jiloviral-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 24px;
    font-weight: 700;
}

.jilo-brand {
    color: #8b5cf6;
}

.viral-brand {
    color: #ffffff;
}

.jiloviral-popup-body {
    padding: 24px;
    position: relative;
}

.video-counter {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.counter-box {
    width: 60px;
    height: 60px;
    background: #282828;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #888;
    border: 2px solid #282828;
    transition: all 0.3s ease;
}

.counter-box.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.popup-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-align: center;
    line-height: 1.4;
}

.popup-info {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.popup-info li {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.popup-info li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-weight: bold;
}

.popup-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.popup-actions button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: #282828;
    color: #ffffff;
    border: 1px solid #404040;
}

.btn-secondary:hover {
    background: #333333;
    border-color: #505050;
}

.close-popup {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #aaaaaa;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-popup:hover {
    background: #282828;
    color: #ffffff;
}

.close-popup svg {
    width: 20px;
    height: 20px;
}

.popup-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #282828;
}

.popup-footer a {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.popup-footer a:hover {
    color: #a78bfa;
    text-decoration: underline;
}

/* Blocking mode - no close button visible */
.jiloviral-adblock-overlay.blocking .close-popup {
    display: none;
}

/* Responsive design */
@media (max-width: 640px) {
    .jiloviral-adblock-popup {
        width: 95%;
        margin: 20px;
    }
    
    .popup-title {
        font-size: 18px;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .counter-box {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .jiloviral-popup-header {
        padding: 20px 20px 12px;
    }
    
    .jiloviral-popup-body {
        padding: 20px;
    }
}

/* Dark theme compatibility */
body.dark .jiloviral-adblock-popup {
    background: #0f0f0f;
}

body.dark .popup-info li {
    color: #999999;
}

body.dark .btn-secondary {
    background: #1a1a1a;
}

/* Animation for counter boxes */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.counter-box.active {
    animation: pulse 0.5s ease-in-out;
}

/* Prevent interaction with page content when blocking */
.jiloviral-adblock-overlay.blocking {
    pointer-events: all;
}

.jiloviral-adblock-overlay.warning {
    pointer-events: all;
}

