/* Simple Ad Blocker Detection Styles */

.detection-test {
    margin: 20px 0;
}

.test-areas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.extra-ad-area {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.test-area {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.test-area.passed {
    border-color: #34a853;
    background: #f8fff8;
}

.test-area.failed {
    border-color: #ea4335;
    background: #fff8f8;
}

.test-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Ad Bait Elements - 광고차단기가 숨기려고 하는 요소들 */
.ad-bait {
    width: 100px;
    height: 50px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    margin: 5px;
    padding: 10px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* 일반적으로 차단되는 클래스들 */
.banner-ads, .banner_ads, .textads, .text-ad, .text_ad, .text-ads, .text-ad-links {
    width: 100%;
    height: 50px;
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    margin: 5px 0;
    padding: 10px;
    font-size: 11px;
    color: #0c5460;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Detection Status */
.detection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    justify-content: center;
}

.detection-status.checking {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

.detection-status.blocked {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.detection-status.allowed {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.detection-status.partial {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffb74d;
}

/* Detection Details */
.detection-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.detection-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.progress-item.checking {
    border-color: #ffc107;
    background: #fff8e1;
}

.progress-item.passed {
    border-color: #28a745;
    background: #f8fff8;
}

.progress-item.failed {
    border-color: #dc3545;
    background: #fff8f8;
}

.progress-item .progress-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.progress-item .progress-text {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.progress-item .progress-result {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f8f9fa;
    color: #666;
}

.progress-item.passed .progress-result {
    background: #d4edda;
    color: #155724;
}

.progress-item.failed .progress-result {
    background: #f8d7da;
    color: #721c24;
}

/* Network Test Indicators */
.network-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.network-indicator.success {
    background: #28a745;
}

.network-indicator.failed {
    background: #dc3545;
}

.network-indicator.pending {
    background: #ffc107;
    animation: pulse 1.5s infinite;
}

/* Script Test Results */
.script-result {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    max-height: 100px;
    overflow-y: auto;
}

/* Detection Score */
.detection-score {
    text-align: center;
    margin: 16px 0;
}

.score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.score-circle.high {
    background: #d4edda;
    color: #155724;
    border: 3px solid #28a745;
}

.score-circle.medium {
    background: #fff3cd;
    color: #856404;
    border: 3px solid #ffc107;
}

.score-circle.low {
    background: #f8d7da;
    color: #721c24;
    border: 3px solid #dc3545;
}

.score-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Bait Elements */
#ad-banner, #advertisement, #ads {
    min-width: 300px;
    min-height: 50px;
}

/* Google Ads Specific Tests */
.google-ads-test {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    position: relative;
}

.google-ads-test::before {
    content: "AdChoices";
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 10px;
    color: #999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .test-area, .extra-ad-area {
        min-height: 150px;
        padding: 16px;
    }
    
    .test-areas-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Animation for checking state */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.checking .progress-icon {
    animation: pulse 1.5s infinite;
}