/* Ads.txt Manager Pro — Frontend Ad Styles */

/* Reserved space wrapper — prevents CLS */
.atm-ad-wrap {
    box-sizing: border-box;
    clear: both;
}

/* Lazy pending: hidden but space already reserved */
.atm-lazy-pending {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Lazy loaded: fade in smoothly */
.atm-lazy-loaded {
    opacity: 1;
    pointer-events: auto;
}

/* Advertisement label */
.atm-ad-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 3px;
    line-height: 1;
    font-family: -apple-system, sans-serif;
}

/* Image ads — responsive by default */
.atm-ad-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Sticky footer bar */
#atm-sticky-footer {
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}
#atm-sticky-footer .atm-ad-wrap {
    margin: 0 auto;
}

/* Between-posts spacing */
.atm-ad-wrap + .atm-ad-wrap {
    margin-top: 8px;
}

/* Mobile: ensure ads don't overflow */
@media (max-width: 600px) {
    .atm-ad-wrap {
        overflow-x: hidden;
    }
}
