/* ═══════════════════════════════════════════════════════════
   BADGES, CHIPS, SPEC-TAGS, STATUS-DOTS — Signal from Noise
   1:1 aus showcase-signal.css
   ═══════════════════════════════════════════════════════════ */

/* ── Standard Badge ─────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.badge--primary {
    color: var(--teal);
    background: var(--teal-soft);
    border-color: var(--teal-soft);
}

.badge--ai {
    color: var(--indigo);
    background: var(--indigo-soft);
    border-color: var(--indigo-soft);
}

.badge--success {
    color: var(--success);
    background: color-mix(in srgb, var(--success) 12%, transparent);
}

.badge--warning {
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 14%, transparent);
}

.badge--error,
.badge--danger {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 12%, transparent);
}

.badge--neutral {
    color: var(--text-muted);
    background: var(--surface-2);
    border-color: var(--line);
}

/* ── Hex-Badge (Hex-Glyph als Präfix) ───────────────────── */

.hex-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text);
    padding-left: 1.2rem;
}

.hex-badge::before {
    content: '';
    position: absolute;
    left: 0;
    width: 12px;
    aspect-ratio: 1 / 1.1547;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--teal);
}

.hex-badge--ai::before    { background: var(--indigo); }
.hex-badge--muted::before { background: var(--text-muted); }

/* ── Chip (mit Hex-Präfix) ──────────────────────────────── */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    font-family: inherit;
}

.chip::before {
    content: '';
    width: 10px;
    aspect-ratio: 1 / 1.1547;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--teal);
    opacity: 0.55;
    transition: opacity 0.2s, transform 0.25s;
    flex-shrink: 0;
}

.chip:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -8px var(--teal-glow);
}

.chip:hover::before { opacity: 1; transform: scale(1.15); }

.chip--ai::before { background: var(--indigo); }
.chip--ai:hover  { border-color: var(--indigo); color: var(--indigo); }

/* ── Spec-Tag (Mono, klein) ─────────────────────────────── */

.spec-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-soft);
    white-space: nowrap;
}

/* ── Status-Dot ─────────────────────────────────────────── */

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-soft);
}

.status-dot__circle {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
    flex-shrink: 0;
}

.status-dot--busy .status-dot__circle {
    background: var(--warning);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 25%, transparent);
}

.status-dot--offline .status-dot__circle {
    background: var(--text-muted);
    box-shadow: none;
}

.status-dot--pulse .status-dot__circle {
    animation: status-ping 2s ease-in-out infinite;
}

@keyframes status-ping {
    0%, 100% { box-shadow: 0 0 0 0 var(--teal-glow); }
    50%      { box-shadow: 0 0 0 6px transparent; }
}

/* ── Section-Tag (für Section-Header) ───────────────────── */

.section__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    width: fit-content;
    letter-spacing: 0.01em;
}

.section__tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-soft);
    flex-shrink: 0;
}
