/**
 * TheCoinsPost v2 — CLS-Safe Monetisation & Banner Slots
 */

.tcp-ad-slot {
    position: relative;
    margin: 16px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.tcp-ad-slot__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.tcp-ad-slot--home_top,
.tcp-ad-slot--coin_top {
    min-height: 90px;
}

.tcp-ad-slot--feed_inline {
    min-height: 90px;
    padding: 8px 0;
}

.tcp-ad-slot--sidebar_top,
.tcp-ad-slot--sidebar_sticky {
    min-height: 250px;
}

@media (max-width: 768px) {
    .tcp-ad-slot--home_top,
    .tcp-ad-slot--coin_top,
    .tcp-ad-slot--feed_inline {
        min-height: 100px;
    }
}

.tcp-house-banner {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
}

.tcp-house-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.tcp-house-banner__mobile { display: none; }
@media (max-width: 768px) {
    .tcp-house-banner__desktop { display: none; }
    .tcp-house-banner__mobile { display: block; }
}

/* Mobile Sticky Anchor Ad (z-index: 290, sits above mobile bottom nav) */
.tcp-sticky-anchor-ad {
    display: none;
}

@media (max-width: 768px) {
    .tcp-sticky-anchor-ad {
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--bottom-nav-h);
        z-index: 290;
        background: var(--surface-raised);
        border-top: 1px solid var(--color-border);
        padding: 4px 8px;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .tcp-sticky-anchor-ad.is-dismissed {
        display: none;
    }

    .tcp-sticky-anchor-ad__close {
        position: absolute;
        top: 2px;
        right: 6px;
        border: 0;
        background: transparent;
        color: var(--text-secondary);
        font-size: 16px;
        cursor: pointer;
    }
}

/* Affiliate Exchange CTA Box */
.tcp-exchange-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin: 18px 0;
}

@media (max-width: 600px) {
    .tcp-exchange-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
