/* scope01 AI Image Marker — frontend badge */

/* The badge is injected as a SIBLING of the <img> (see assets/js/marker.js).
   We do NOT wrap the <img> — that would break parent CSS rules that target
   `img` directly. The JS sets `position: relative` on the host element if it
   isn't already positioned. */

.s01-ai-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    pointer-events: auto;
    user-select: none;
    cursor: help;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    /* Don't let the badge inherit oversized line-heights from rich-content parents */
    white-space: nowrap;
    box-sizing: border-box;
}

.s01-ai-badge:hover,
.s01-ai-badge:focus {
    background: rgba(0, 0, 0, 0.78);
    transform: translateY(-1px);
}

.s01-ai-badge-icon {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    transform: translateY(-0.5px);
}

.s01-ai-badge-text {
    display: inline-block;
}

/* SVG variant: the artwork is self-contained (its own black/white blocks),
   so we drop the badge container's chrome and let the SVG do the talking. */
.s01-ai-badge--svg {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    text-shadow: none;
}

.s01-ai-badge--svg:hover,
.s01-ai-badge--svg:focus {
    background: transparent;
}

.s01-ai-badge-svg {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    user-select: none;
    flex: none;
}

/* Reduced-motion users get no transitions. */
@media (prefers-reduced-motion: reduce) {
    .s01-ai-badge {
        transition: none;
    }
}
