/**
 * Anti-Adblock CSS for Bali Report
 * Ensures ads can display properly and detects adblockers
 */

/* Placeholder styles for ad containers */
.adsbygoogle,
.adsterra-ad,
[class*="ad-"],
[id*="ad-"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Prevent adblockers from hiding ad containers */
.advertisement,
.ad-container,
.ad-banner,
.ad-slot {
    display: block !important;
    min-height: 1px !important;
}

/* Recovery message for blocked ads */
.ad-blocked-message {
    display: none;
    padding: 20px;
    margin: 20px 0;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    text-align: center;
    font-size: 14px;
}

.ad-blocked-message.show {
    display: block;
}

.ad-blocked-message h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.ad-blocked-message p {
    margin: 5px 0;
    line-height: 1.5;
}

.ad-blocked-message a {
    color: #004085;
    text-decoration: underline;
    font-weight: 500;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ad-blocked-message {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .ad-blocked-message a {
        color: #63b3ed;
    }
}

/* Ensure ad spaces are reserved to prevent layout shift */
.ad-placeholder {
    min-height: 250px;
    background:
        linear-gradient(135deg, #f5f5f5 25%, transparent 25%),
        linear-gradient(225deg, #f5f5f5 25%, transparent 25%),
        linear-gradient(45deg, #f5f5f5 25%, transparent 25%),
        linear-gradient(315deg, #f5f5f5 25%, #e0e0e0 25%);
    background-size: 20px 20px;
    background-position:
        0 0,
        10px 0,
        10px -10px,
        0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
