/* AI sticker — top-right on every tool card surface.
   Loaded site-wide from layouts/site.blade.php. */

.ai-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.4;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(99, 102, 241, .38);
    pointer-events: none;   /* never swallow the parent card's click */
    white-space: nowrap;
}

.ai-badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* Larger variant for the tool page hero, where it sits inline rather than
   absolutely positioned. */
.ai-badge-lg {
    position: static;
    font-size: 11.5px;
    padding: 4px 11px 4px 8px;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .32);
}

.ai-badge-lg svg {
    width: 13px;
    height: 13px;
}

/* Inline variant for list rows and table cells, where there is no card box to
   pin a corner badge to. */
.ai-badge-inline {
    position: static;
    vertical-align: middle;
}

/* Cards must be a positioning context for the absolute badge. These selectors
   are the surfaces that render tool cards; adding position:relative is a no-op
   where it is already set. */
.tool-card,
.cat-card,
.related-tool-card,
.favorite-tool-card,
.search-result-item {
    position: relative;
}

/* Keep the badge clear of the hover arrow on homepage/category cards. */
.tool-card .ai-badge + .tool-card-icon { margin-top: 2px; }

@media (max-width: 480px) {
    .ai-badge { top: 6px; right: 6px; font-size: 9px; padding: 2px 6px 2px 4px; }
    .ai-badge svg { width: 9px; height: 9px; }
}
