/* ═══════════════════════════════════════════════════════════════════════
   SnapPDF AI — ad-debug.css (diagnostic helpers)
   ─────────────────────────────────────────────────────────────────────
   Visual helpers for the ad-slot system. These rules are scoped tightly
   to .ad-slot to avoid collisions with the main app stylesheet.
   ═══════════════════════════════════════════════════════════════════════ */

.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px auto;
    padding: 8px;
    min-height: 60px;
    max-width: 100%;
    overflow: visible;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.ad-slot iframe {
    display: block;
    max-width: 100%;
    border: 0 !important;
    margin: 0 auto;
}

.ad-slot-top {
    min-height: 100px;
    max-width: 728px;
}

.ad-slot-side {
    min-height: 260px;
    max-width: 300px;
    margin: 16px auto;
}

.ad-slot-bottom {
    min-height: 70px;
    max-width: 468px;
}

.ad-slot-footer {
    min-height: 60px;
    max-width: 100%;
    margin: 16px auto 8px;
}

@media (max-width: 760px) {
    .ad-slot-top,
    .ad-slot-bottom {
        max-width: 100%;
    }
    .ad-slot {
        min-height: 54px;
        margin: 14px auto;
    }
}

/* Prevent ad-blocker detection from breaking layout */
.ad-slot * {
    pointer-events: auto;
}

/* Debug border when ?ad-debug=1 is set */
body[data-ad-debug] .ad-slot {
    outline: 1px dashed #22D3EE;
    outline-offset: 2px;
}

body[data-ad-debug] .ad-slot::before {
    content: 'ad: ' attr(data-zone);
    position: absolute;
    top: -18px;
    left: 0;
    font: 10px/1 monospace;
    color: #22D3EE;
    background: #0F172A;
    padding: 2px 6px;
    border-radius: 3px;
}
