/**
 * Faixa de oportunidade no topo (abaixo do header) — Blog Vida 360º
 * Animação suave (sem flash rápido) para respeitar prefers-reduced-motion e WCAG.
 */

.site-opportunity-strip {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(100deg, #1e1b4b 0%, #4c1d95 38%, #5b21b6 72%, #6d28d9 100%);
    color: #fff;
    border-bottom: 2px solid rgba(167, 139, 250, 0.55);
    box-shadow: 0 2px 12px rgba(30, 27, 75, 0.25);
    overflow: hidden;
}

.site-opportunity-strip.is-hidden {
    display: none !important;
}

.site-opportunity-strip__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.55rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    text-align: center;
}

.site-opportunity-strip__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 500;
    flex: 1 1 220px;
    max-width: 100%;
}

.site-opportunity-strip__cta {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-opportunity-strip__cta:hover,
.site-opportunity-strip__cta:focus {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
    outline: none;
}

/* Atenção suave: brilho na borda inferior (não é “pisca-pisca”) */
@media (prefers-reduced-motion: no-preference) {
    .site-opportunity-strip[data-active="true"] {
        animation: opportunity-strip-glow 3.2s ease-in-out infinite;
    }
}

@keyframes opportunity-strip-glow {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(30, 27, 75, 0.2);
        border-bottom-color: rgba(167, 139, 250, 0.45);
    }
    50% {
        box-shadow: 0 2px 20px rgba(124, 58, 237, 0.35);
        border-bottom-color: rgba(196, 181, 253, 0.85);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-opportunity-strip[data-active="true"] {
        animation: none;
    }
}

/* Anel suave no CTA (eco do efeito “ping” do botão flutuante — chama atenção sem exagerar) */
@keyframes blog360-strip-cta-ring {
    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }
    45% {
        opacity: 0.85;
        transform: scale(1.03);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .site-opportunity-strip[data-active="true"] .site-opportunity-strip__cta {
        position: relative;
        overflow: visible;
        z-index: 1;
    }

    .site-opportunity-strip[data-active="true"] .site-opportunity-strip__cta::after {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 10px;
        border: 2px solid rgba(196, 181, 253, 0.65);
        pointer-events: none;
        animation: blog360-strip-cta-ring 2.6s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-opportunity-strip .site-opportunity-strip__cta::after {
        content: none !important;
        animation: none !important;
    }
}
