/**
 * ads.css - AdSense unit styling.
 * Units are injected by js/services/AdsManager.js; this file only styles
 * the containers. Colors come from css/variables.css (dark-mode aware).
 */

/* Top anchor bar: fixed to the viewport top, never the bottom, so the
   editor toolbar is never covered. */
.ads-anchor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--ad-height);
    padding: var(--space-1) var(--space-2);
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.ads-anchor-label {
    flex: 0 0 auto;
    font-size: var(--font-size-xs);
    color: var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ads-anchor-unit {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.ads-anchor-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}

.ads-anchor-close:hover {
    background: var(--color-surface-muted);
    color: var(--color-text);
}

.ads-anchor-close svg {
    display: block;
}

/* In-feed unit injected between template-gallery rows. */
.ads-infeed-unit {
    display: block;
    width: 100%;
    margin: var(--space-3) 0;
}
