/* agent-catalog.css — modal directorio de agentes públicos */

.ac-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: min(860px, 96vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ac-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.ac-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 7px 12px;
    transition: border-color .15s;
}

.ac-search-wrap:focus-within {
    border-color: var(--accent);
}

.ac-search-wrap svg {
    flex-shrink: 0;
    color: var(--ink-3);
}

.ac-search-input {
    flex: 1;
    border: none;
    background: none;
    color: var(--ink);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
}

.ac-search-input::placeholder {
    color: var(--ink-3);
}

.ac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    padding: 16px;
    overflow-y: auto;
}

.ac-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease;
}

.ac-card:hover {
    box-shadow: 0 4px 18px rgba(17, 24, 39, .07);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.ac-card-body {
    padding: 14px 16px 10px;
    flex: 1;
}

.ac-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-card-desc {
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ac-card-footer {
    padding: 8px 16px 12px;
    display: flex;
    justify-content: flex-end;
}

.ac-fork-btn {
    padding: 5px 14px;
    border-radius: var(--radius);
    background: rgba(79, 70, 229, .08);
    color: var(--accent);
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: background .12s, color .12s;
}

.ac-fork-btn:hover {
    background: var(--accent);
    color: #fff;
}

.ac-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--ink-3);
    font-size: 14px;
}
