/* ============================================
   ADS - ZELO v1.0 — iPHONE CARTOON PRETO & BRANCO
   Caixas de anúncio visíveis, discretas e
   posicionadas SEM atrapalhar o usuário
   (sempre no fim do scroll de cada página)
   © 2026 LITE STUDIO
   ============================================ */

/* ---------- BLOCO DO ANÚNCIO ---------- */
.st-ad-block {
    margin: 24px 0 8px;
    background: #101010;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(255,255,255,0.07);
    flex-shrink: 0;
}

/* ---------- SELO "PUBLICIDADE" ---------- */
.st-ad-label-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(255,255,255,0.03);
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

.st-ad-label-dot {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.35);
    border-radius: 50%;
    flex-shrink: 0;
}

.st-ad-label-text {
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* ---------- CONTAINER DO ANÚNCIO ---------- */
/* min-height garante que a caixa APARECE mesmo antes de carregar */
.st-ad-container {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
}

/* conteúdo do anúncio nunca estoura a caixa */
.st-ad-container > * { max-width: 100%; }
.st-ad-container img,
.st-ad-container iframe,
.st-ad-container ins,
.st-ad-container iframe { max-width: 100% !important; }

/* ---------- SKELETON ENQUANTO CARREGA ---------- */
.st-ad-container.st-ad-loading::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 16px;
    background: linear-gradient(100deg,
        rgba(255,255,255,0.03) 30%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.03) 70%);
    background-size: 200% 100%;
    animation: stAdShimmer 1.6s linear infinite;
}

.st-ad-container.st-ad-loading::after {
    content: 'CARREGANDO…';
    position: relative;
    z-index: 1;
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.25);
}

@keyframes stAdShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- FALLBACK (anúncio não carregou) ---------- */
.st-ad-fallback {
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    text-align: center;
    padding: 16px;
    width: 100%;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 380px) {
    .st-ad-block { margin: 18px 0 6px; border-radius: 20px; }
    .st-ad-container { min-height: 100px; padding: 10px; }
}

@media (min-width: 600px) {
    .st-ad-container { min-height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
    .st-ad-container.st-ad-loading::before { animation: none; }
}