/**
 * lwd AI Labeling Frontend Badges Styles
 * Lightweight, accessible, zero-dependency.
 */

.lwd-ai-image-wrap,
.lwd-ai-video-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

.lwd-ai-video-wrap {
    display: block;
    width: 100%;
}

.lwd-ai-video-wrap video,
.elementor-wrapper video {
    display: block;
    width: 100%;
    max-width: 100%;
}

.elementor-image,
.elementor-wrapper {
    position: relative;
}

.lwd-has-ai-bg {
    position: relative !important;
}

/* Background image badge rendered strictly via ::after using data attributes */
.lwd-has-ai-bg::after {
    content: "• " attr(data-lwd-ai-bg-label) !important;
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 3px 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.3px !important;
    color: #ffffff !important;
    background: rgba(18, 18, 18, 0.72) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    z-index: 10 !important;
    pointer-events: none !important;
    user-select: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transition: all 0.5s ease, transform 0.2s ease;
}

/* Status-specific dot glow colors matching .lwd-ai-badge-dot exactly */
.lwd-has-ai-bg[data-lwd-ai-bg-status="ai-generated"]::after {
    /* Colored bullet dot at start with matching glow */
    color: #ffffff !important;
    text-shadow: 0 0 4px #b388ff;
}

.lwd-has-ai-bg[data-lwd-ai-bg-status="ai-modified"]::after {
    color: #ffffff !important;
    text-shadow: 0 0 4px #80d8ff;
}

.lwd-has-ai-bg[data-lwd-ai-bg-status="ai-inspection"]::after {
    color: #ffffff !important;
    text-shadow: 0 0 4px #ffd180;
}

/* Standard inline image badges */
.lwd-ai-frontend-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: rgba(18, 18, 18, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 10;
    pointer-events: auto;
    cursor: default;
    transition: all 0.5s ease, transform 0.2s ease;
    user-select: none;
}

.lwd-ai-frontend-badge:hover {
    background: rgba(18, 18, 18, 0.9);
    transform: scale(1.03);
}

.lwd-ai-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.lwd-ai-badge-generated .lwd-ai-badge-dot {
    background-color: #b388ff;
    box-shadow: 0 0 4px #b388ff;
}

.lwd-ai-badge-modified .lwd-ai-badge-dot {
    background-color: #80d8ff;
    box-shadow: 0 0 4px #80d8ff;
}

.lwd-ai-badge-inspection .lwd-ai-badge-dot {
    background-color: #ffd180;
    box-shadow: 0 0 4px #ffd180;
}
