/* retoor <retoor@molodetz.nl> */

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.bot-card {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card-hover);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.bot-card.bot-active {
    border-color: var(--success);
}

.bot-card.bot-idle {
    opacity: 0.6;
}

.bot-shot {
    position: relative;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bot-shot img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.bot-shot-age {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(2px);
    pointer-events: none;
    letter-spacing: 0.02em;
}

.bot-shot-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.bot-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
}

.bot-name {
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.bot-persona {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.bot-action {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .bots-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}
