/* Ad plug styling — animation + "Offer" badge.
   Referenced by template.wb.plug.video.php and template.wb.plug.thumb.php via
   the classes .plug-card and .plug-badge. This is a starting point; tune the
   colors/timing to taste.

   NOTE: the plug cards carry an inline box-shadow
   (0px 6px 0px 0px rgba(62,66,66,0.24)). A CSS animation overrides inline styles
   for the property it animates, so the keyframes below re-include that base
   shadow as the first layer and animate a second glow layer on top of it. If you
   ever change the inline shadow in the templates, mirror it here too. */

/* --- subtle breathing glow (accent color is a placeholder) --- */
@keyframes plug-glow {
    0%   { box-shadow: 0px 6px 0px 0px rgba(62,66,66,0.24), 0 0 6px 0px rgba(201,162,39,0.25); }
    50%  { box-shadow: 0px 6px 0px 0px rgba(62,66,66,0.24), 0 0 16px 3px rgba(201,162,39,0.65); }
    100% { box-shadow: 0px 6px 0px 0px rgba(62,66,66,0.24), 0 0 6px 0px rgba(201,162,39,0.25); }
}

.plug-card {
    animation: plug-glow 3s ease-in-out infinite;
}

/* --- "Offer" badge, top-right of the media --- */
.plug-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;               /* sits above the video plug's click overlay (z-index:2) */
    pointer-events: none;     /* purely decorative; taps fall through to the plug link */
    padding: 2px 8px;
    border-radius: 999px;
    background-color: rgba(0,0,0,0.55);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* --- honor users who prefer reduced motion: drop the animation, keep the card --- */
@media (prefers-reduced-motion: reduce) {
    .plug-card {
        animation: none;
    }
}
