/* SerialGuard Anti-AdBlock & NoJS Guard — overlay styles. No theme dependency. */

/* Bait element: visually hidden by us, but ad blockers hide it with display:none. */
#sgab-adsbox {
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    visibility: hidden;
    pointer-events: none;
}

/* v1.0.1 extra baits: sized (so 0x0 means collapsed by a filter),
   positioned off-screen and invisible to visitors. */
.sgab-bait.adsbygoogle,
.sgab-bait.ad-banner {
    position: absolute;
    left: 0;
    top: 0;
    width: 300px;
    height: 250px;
    visibility: hidden;
    pointer-events: none;
}

/* AdBlock overlay: hidden until detector.js adds .sgab-show. */
.sgab-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.sgab-overlay.sgab-show {
    display: flex;
}
.sgab-overlay .sgab-card {
    background: #ffffff;
    color: #222222;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 28px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
.sgab-overlay .sgab-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.3;
    color: #111111;
}
.sgab-overlay .sgab-card p {
    margin: 0 0 12px;
}
.sgab-overlay .sgab-steps {
    font-size: 14px;
    background: #f4f4f4;
    border-radius: 8px;
    padding: 12px 14px;
}
.sgab-overlay .sgab-status {
    color: #b3261e;
    font-weight: 600;
    min-height: 1.6em;
}
.sgab-overlay .sgab-status:empty {
    display: none;
}
.sgab-overlay .sgab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.sgab-overlay .sgab-btn {
    cursor: pointer;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #222222;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
}
.sgab-overlay .sgab-btn-primary {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #ffffff;
}
@media (max-width: 480px) {
    .sgab-overlay .sgab-card {
        padding: 20px;
        font-size: 15px;
    }
    .sgab-overlay .sgab-actions .sgab-btn {
        width: 100%;
    }
}

/* NoJS overlay: rendered only inside <noscript>, so it never shows when JS is on. */
.sgab-noscript {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: #111111;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
.sgab-noscript-card {
    background: #1e1e1e;
    border: 1px solid #444444;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    padding: 28px;
    box-sizing: border-box;
}
.sgab-noscript-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #ffffff;
}
.sgab-noscript-card p {
    margin: 0 0 12px;
}
